#ifndef MEX_H_FIGHTER #define MEX_H_FIGHTER #include "structs.h" #include "datatypes.h" #include "obj.h" #include "gx.h" #include "color.h" #include "effects.h" #include "match.h" #include "collision.h" #include "dynamics.h" // Internal IDs typedef enum FighterKind { FTKIND_MARIO, FTKIND_FOX, FTKIND_FALCON, FTKIND_DK, FTKIND_KIRBY, FTKIND_BOWSER, FTKIND_LINK, FTKIND_SHEIK, FTKIND_NESS, FTKIND_PEACH, FTKIND_POPO, FTKIND_NANA, FTKIND_PIKACHU, FTKIND_SAMUS, FTKIND_YOSHI, FTKIND_JIGGLYPUFF, FTKIND_MEWTWO, FTKIND_LUIGI, FTKIND_MARTH, FTKIND_ZELDA, FTKIND_YOUNGLINK, FTKIND_DRMARIO, FTKIND_FALCO, FTKIND_PICHU, FTKIND_GAW, FTKIND_GANONDORF, FTKIND_ROY, FTKIND_MASTERHAND, FTKIND_CRAZYHAND, FTKIND_BOY, FTKIND_GIRL, FTKIND_GIGABOWSER, FTKIND_SANDBAG, } FighterKind; // External IDs typedef enum CharacterKind { CKIND_FALCON, CKIND_DK, CKIND_FOX, CKIND_GAW, CKIND_KIRBY, CKIND_BOWSER, CKIND_LINK, CKIND_LUIGI, CKIND_MARIO, CKIND_MARTH, CKIND_MEWTWO, CKIND_NESS, CKIND_PEACH, CKIND_PIKACHU, CKIND_ICECLIMBERS, CKIND_JIGGLYPUFF, CKIND_SAMUS, CKIND_YOSHI, CKIND_ZELDA, CKIND_SHEIK, CKIND_FALCO, CKIND_YOUNGLINK, CKIND_DRMARIO, CKIND_ROY, CKIND_PICHU, CKIND_GANONDORF, CKIND_MASTERHAND, CKIND_BOY, CKIND_GIRL, CKIND_GIGABOWSER, CKIND_CRAZYHAND, CKIND_SANDBAG, CKIND_POPO, } CharacterKind; typedef enum PlayerKind { PKIND_HMN, PKIND_CPU, PKIND_DEMO, PKIND_NONE, } PlayerKind; typedef enum TeamKind { TEAMKIND_RED, TEAMKIND_BLUE, TEAMKIND_GREEN, TEAMKIND_CPUTRAIN, // cpu in training mode is on team 4 o_o TEAMKIND_5, TEAMKIND_6, TEAMKIND_NUM, } TeamKind; enum CPUType { CPTP_STAY, CPTP_WALK, CPTP_ESCAPE, CPTP_JUMP, CPTP_NORMAL, CPTP_MANUAL, CPTP_NANA, CPTP_DEFENSIVE, CPTP_STRUGGLE, CPTP_FREAK, CPTP_COOPERATE, CPTP_SPLWLINK, CPTP_SPLWSAMUS, CPTP_ONLYITEM, CPTP_EVZELDA, CPTP_NOACT, CPTP_AIR, CPTP_ITEM, }; // fighter callback priorities enum FtPri { FTPRI_HITLAG, FTPRI_ANIM, FTPRI_CPU, FTPRI_IASA, FTPRI_PHYS, FTPRI_5, // nothing FTPRI_ENVCOLL, FTPRI_IK, FTPRI_ACCESSORY, FTPRI_GFX, FTPRI_10, FTPRI_11, FTPRI_GRABCOLL, FTPRI_HITCOLL, FTPRI_DMGAPPLY, FTPRI_15, FTPRI_DYNAMICS, FTPRI_17, FTPRI_CAM, FTPRI_19, FTPRI_20, FTPRI_21, FTPRI_STATS, }; // action state flags #define FIGHTER_FASTFALL_PRESERVE 0x1 #define FIGHTER_GFX_PRESERVE 0x2 #define FIGHTER_HITSTATUS_COLANIM_PRESERVE 0x4 // Preserve full body collision state // #define FIGHTER_HIT_NOUPDATE 0x8 // Keep hitboxes #define FIGHTER_MODEL_NOUPDATE 0x10 // Ignore model state change (?) #define FIGHTER_ANIMVEL_NOUPDATE 0x20 #define FIGHTER_UNK_0x40 0x40 #define FIGHTER_MATANIM_NOUPDATE 0x80 // Ignore switching to character's "hurt" textures (?) // #define FIGHTER_THROW_EXCEPTION_NOUPDATE 0x100 // Resets thrower GObj pointer to NULL if false? // #define FIGHTER_SFX_PRESERVE 0x200 #define FIGHTER_PARASOL_NOUPDATE 0x400 // Ignore Parasol state change // #define FIGHTER_RUMBLE_NOUPDATE 0x800 // Ignore rumble update? // #define FIGHTER_COLANIM_NOUPDATE 0x1000 #define FIGHTER_ACCESSORY_PRESERVE 0x2000 // Keep respawn platform? // #define FIGHTER_CMD_UPDATE 0x4000 // Run all Subaction Events up to the current animation frame // #define FIGHTER_NAMETAGVIS_NOUPDATE 0x8000 #define FIGHTER_PART_HITSTATUS_COLANIM_PRESERVE 0x10000 // Assume this is for individual bones? // #define FIGHTER_SWORDTRAIL_PRESERVE 0x20000 #define FIGHTER_ITEMVIS_NOUPDATE 0x40000 // Used by Ness during Up/Down Smash, I suppose this is what the flag does // #define FIGHTER_SKIP_UNK_0x2222 0x80000 // Skips updating bit 0x20 of 0x2222? // #define FIGHTER_PHYS_UNKUPDATE 0x100000 #define FIGHTER_FREEZESTATE 0x200000 // Sets anim rate to 0x and some other stuff #define FIGHTER_MODELPART_VIS_NOUPDATE 0x400000 #define FIGHTER_METALB_NOUPDATE 0x800000 #define FIGHTER_UNK_0x1000000 0x1000000 #define FIGHTER_ATTACKCOUNT_NOUPDATE 0x2000000 #define FIGHTER_MODEL_FLAG_NOUPDATE 0x4000000 #define FIGHTER_UNK_0x2227 0x8000000 #define FIGHTER_HITSTUN_FLAG_NOUPDATE 0x10000000 #define FIGHTER_ANIM_NOUPDATE 0x20000000 // Keeps current fp animation? #define FIGHTER_UNK_0x40000000 0x40000000 // Unused? #define FIGHTER_UNK_0x80000000 0x80000000 // Unused? enum FtCommonBoneNames { TopN, TransN, XRotN, YRotN, HipN, WaistN, LLegJA, LLegJ, LKneeJ, LFootJA, LFootJ, RLegJA, RLegJ, RKneeJ, RFootJA, RFootJ, WaistN2, BustN, LShoulderN, LShoulderJA, LShoulderJ, LArmJ, LHandN, L1stNa, L1stNb, L2ndNa, L2ndNb, L3rdNa, L3rdNb, L4thNa, L4thNb, LHaveN, LThumbNa, LThumbNb, NeckN, HeadN, RShoulderN, RShoulderJA, RShoulderJ, RArmJ, RHandN, R1stNa, R1stNb, R2ndNa, R2ndNb, R3rdNa, R3rdNb, R4thNa, R4thNb, RHaveN, RThumbNa, RThumbNb, ThrowN, Extra }; // Fighter States enum FtStateNames { ASID_DEADDOWN, ASID_DEADLEFT, ASID_DEADRIGHT, ASID_DEADUP, ASID_DEADUPSTAR, ASID_DEADUPSTARICE, ASID_DEADUPFALL, ASID_DEADUPFALLHITCAMERA, ASID_DEADUPFALLHITCAMERAFLAT, ASID_DEADUPFALLICE, ASID_DEADUPFALLHITCAMERAICE, ASID_SLEEP, ASID_REBIRTH, ASID_REBIRTHWAIT, ASID_WAIT, ASID_WALKSLOW, ASID_WALKMIDDLE, ASID_WALKFAST, ASID_TURN, ASID_TURNRUN, ASID_DASH, ASID_RUN, ASID_RUNDIRECT, ASID_RUNBRAKE, ASID_KNEEBEND, ASID_JUMPF, ASID_JUMPB, ASID_JUMPAERIALF, ASID_JUMPAERIALB, ASID_FALL, ASID_FALLF, ASID_FALLB, ASID_FALLAERIAL, ASID_FALLAERIALF, ASID_FALLAERIALB, ASID_FALLSPECIAL, ASID_FALLSPECIALF, ASID_FALLSPECIALB, ASID_DAMAGEFALL, ASID_SQUAT, ASID_SQUATWAIT, ASID_SQUATRV, ASID_LANDING, ASID_LANDINGFALLSPECIAL, ASID_ATTACK11, ASID_ATTACK12, ASID_ATTACK13, ASID_ATTACK100START, ASID_ATTACK100LOOP, ASID_ATTACK100END, ASID_ATTACKDASH, ASID_ATTACKS3HI, ASID_ATTACKS3HIS, ASID_ATTACKS3S, ASID_ATTACKS3LWS, ASID_ATTACKS3LW, ASID_ATTACKHI3, ASID_ATTACKLW3, ASID_ATTACKS4HI, ASID_ATTACKS4HIS, ASID_ATTACKS4S, ASID_ATTACKS4LWS, ASID_ATTACKS4LW, ASID_ATTACKHI4, ASID_ATTACKLW4, ASID_ATTACKAIRN, ASID_ATTACKAIRF, ASID_ATTACKAIRB, ASID_ATTACKAIRHI, ASID_ATTACKAIRLW, ASID_LANDINGAIRN, ASID_LANDINGAIRF, ASID_LANDINGAIRB, ASID_LANDINGAIRHI, ASID_LANDINGAIRLW, ASID_DAMAGEHI1, ASID_DAMAGEHI2, ASID_DAMAGEHI3, ASID_DAMAGEN1, ASID_DAMAGEN2, ASID_DAMAGEN3, ASID_DAMAGELW1, ASID_DAMAGELW2, ASID_DAMAGELW3, ASID_DAMAGEAIR1, ASID_DAMAGEAIR2, ASID_DAMAGEAIR3, ASID_DAMAGEFLYHI, ASID_DAMAGEFLYN, ASID_DAMAGEFLYLW, ASID_DAMAGEFLYTOP, ASID_DAMAGEFLYROLL, ASID_LIGHTGET, ASID_HEAVYGET, ASID_LIGHTTHROWF, ASID_LIGHTTHROWB, ASID_LIGHTTHROWHI, ASID_LIGHTTHROWLW, ASID_LIGHTTHROWDASH, ASID_LIGHTTHROWDROP, ASID_LIGHTTHROWAIRF, ASID_LIGHTTHROWAIRB, ASID_LIGHTTHROWAIRHI, ASID_LIGHTTHROWAIRLW, ASID_HEAVYTHROWF, ASID_HEAVYTHROWB, ASID_HEAVYTHROWHI, ASID_HEAVYTHROWLW, ASID_LIGHTTHROWF4, ASID_LIGHTTHROWB4, ASID_LIGHTTHROWHI4, ASID_LIGHTTHROWLW4, ASID_LIGHTTHROWAIRF4, ASID_LIGHTTHROWAIRB4, ASID_LIGHTTHROWAIRHI4, ASID_LIGHTTHROWAIRLW4, ASID_HEAVYTHROWF4, ASID_HEAVYTHROWB4, ASID_HEAVYTHROWHI4, ASID_HEAVYTHROWLW4, ASID_SWORDSWING1, ASID_SWORDSWING3, ASID_SWORDSWING4, ASID_SWORDSWINGDASH, ASID_BATSWING1, ASID_BATSWING3, ASID_BATSWING4, ASID_BATSWINGDASH, ASID_PARASOLSWING1, ASID_PARASOLSWING3, ASID_PARASOLSWING4, ASID_PARASOLSWINGDASH, ASID_HARISENSWING1, ASID_HARISENSWING3, ASID_HARISENSWING4, ASID_HARISENSWINGDASH, ASID_STARRODSWING1, ASID_STARRODSWING3, ASID_STARRODSWING4, ASID_STARRODSWINGDASH, ASID_LIPSTICKSWING1, ASID_LIPSTICKSWING3, ASID_LIPSTICKSWING4, ASID_LIPSTICKSWINGDASH, ASID_ITEMPARASOLOPEN, ASID_ITEMPARASOLFALL, ASID_ITEMPARASOLFALLSPECIAL, ASID_ITEMPARASOLDAMAGEFALL, ASID_LGUNSHOOT, ASID_LGUNSHOOTAIR, ASID_LGUNSHOOTEMPTY, ASID_LGUNSHOOTAIREMPTY, ASID_FIREFLOWERSHOOT, ASID_FIREFLOWERSHOOTAIR, ASID_ITEMSCREW, ASID_ITEMSCREWAIR, ASID_DAMAGESCREW, ASID_DAMAGESCREWAIR, ASID_ITEMSCOPESTART, ASID_ITEMSCOPERAPID, ASID_ITEMSCOPEFIRE, ASID_ITEMSCOPEEND, ASID_ITEMSCOPEAIRSTART, ASID_ITEMSCOPEAIRRAPID, ASID_ITEMSCOPEAIRFIRE, ASID_ITEMSCOPEAIREND, ASID_ITEMSCOPESTARTEMPTY, ASID_ITEMSCOPERAPIDEMPTY, ASID_ITEMSCOPEFIREEMPTY, ASID_ITEMSCOPEENDEMPTY, ASID_ITEMSCOPEAIRSTARTEMPTY, ASID_ITEMSCOPEAIRRAPIDEMPTY, ASID_ITEMSCOPEAIRFIREEMPTY, ASID_ITEMSCOPEAIRENDEMPTY, ASID_LIFTWAIT, ASID_LIFTWALK1, ASID_LIFTWALK2, ASID_LIFTTURN, ASID_GUARDON, ASID_GUARD, ASID_GUARDOFF, ASID_GUARDSETOFF, ASID_GUARDREFLECT, ASID_DOWNBOUNDU, ASID_DOWNWAITU, ASID_DOWNDAMAGEU, ASID_DOWNSTANDU, ASID_DOWNATTACKU, ASID_DOWNFOWARDU, ASID_DOWNBACKU, ASID_DOWNSPOTU, ASID_DOWNBOUNDD, ASID_DOWNWAITD, ASID_DOWNDAMAGED, ASID_DOWNSTANDD, ASID_DOWNATTACKD, ASID_DOWNFOWARDD, ASID_DOWNBACKD, ASID_DOWNSPOTD, ASID_PASSIVE, ASID_PASSIVESTANDF, ASID_PASSIVESTANDB, ASID_PASSIVEWALL, ASID_PASSIVEWALLJUMP, ASID_PASSIVECEIL, ASID_SHIELDBREAKFLY, ASID_SHIELDBREAKFALL, ASID_SHIELDBREAKDOWNU, ASID_SHIELDBREAKDOWND, ASID_SHIELDBREAKSTANDU, ASID_SHIELDBREAKSTANDD, ASID_FURAFURA, ASID_CATCH, ASID_CATCHPULL, ASID_CATCHDASH, ASID_CATCHDASHPULL, ASID_CATCHWAIT, ASID_CATCHATTACK, ASID_CATCHCUT, ASID_THROWF, ASID_THROWB, ASID_THROWHI, ASID_THROWLW, ASID_CAPTUREPULLEDHI, ASID_CAPTUREWAITHI, ASID_CAPTUREDAMAGEHI, ASID_CAPTUREPULLEDLW, ASID_CAPTUREWAITLW, ASID_CAPTUREDAMAGELW, ASID_CAPTURECUT, ASID_CAPTUREJUMP, ASID_CAPTURENECK, ASID_CAPTUREFOOT, ASID_ESCAPEF, ASID_ESCAPEB, ASID_ESCAPE, ASID_ESCAPEAIR, ASID_REBOUNDSTOP, ASID_REBOUND, ASID_THROWNF, ASID_THROWNB, ASID_THROWNHI, ASID_THROWNLW, ASID_THROWNLWWOMEN, ASID_PASS, ASID_OTTOTTO, ASID_OTTOTTOWAIT, ASID_FLYREFLECTWALL, ASID_FLYREFLECTCEIL, ASID_STOPWALL, ASID_STOPCEIL, ASID_MISSFOOT, ASID_CLIFFCATCH, ASID_CLIFFWAIT, ASID_CLIFFCLIMBSLOW, ASID_CLIFFCLIMBQUICK, ASID_CLIFFATTACKSLOW, ASID_CLIFFATTACKQUICK, ASID_CLIFFESCAPESLOW, ASID_CLIFFESCAPEQUICK, ASID_CLIFFJUMPSLOW1, ASID_CLIFFJUMPSLOW2, ASID_CLIFFJUMPQUICK1, ASID_CLIFFJUMPQUICK2, ASID_APPEALR, ASID_APPEALL, ASID_SHOULDEREDWAIT, ASID_SHOULDEREDWALKSLOW, ASID_SHOULDEREDWALKMIDDLE, ASID_SHOULDEREDWALKFAST, ASID_SHOULDEREDTURN, ASID_THROWNFF, ASID_THROWNFB, ASID_THROWNFHI, ASID_THROWNFLW, ASID_CAPTURECAPTAIN, ASID_CAPTUREYOSHI, ASID_YOSHIEGG, ASID_CAPTUREKOOPA, ASID_CAPTUREDAMAGEKOOPA, ASID_CAPTUREWAITKOOPA, ASID_THROWNKOOPAF, ASID_THROWNKOOPAB, ASID_CAPTUREKOOPAAIR, ASID_CAPTUREDAMAGEKOOPAAIR, ASID_CAPTUREWAITKOOPAAIR, ASID_THROWNKOOPAAIRF, ASID_THROWNKOOPAAIRB, ASID_CAPTUREKIRBY, ASID_CAPTUREWAITKIRBY, ASID_THROWNKIRBYSTAR, ASID_THROWNCOPYSTAR, ASID_THROWNKIRBY, ASID_BARRELWAIT, ASID_BURY, ASID_BURYWAIT, ASID_BURYJUMP, ASID_DAMAGESONG, ASID_DAMAGESONGWAIT, ASID_DAMAGESONGRV, ASID_DAMAGEBIND, ASID_CAPTUREMEWTWO, ASID_CAPTUREMEWTWOAIR, ASID_THROWNMEWTWO, ASID_THROWNMEWTWOAIR, ASID_WARPSTARJUMP, ASID_WARPSTARFALL, ASID_HAMMERWAIT, ASID_HAMMERWALK, ASID_HAMMERTURN, ASID_HAMMERKNEEBEND, ASID_HAMMERFALL, ASID_HAMMERJUMP, ASID_HAMMERLANDING, ASID_KINOKOGIANTSTART, ASID_KINOKOGIANTSTARTAIR, ASID_KINOKOGIANTEND, ASID_KINOKOGIANTENDAIR, ASID_KINOKOSMALLSTART, ASID_KINOKOSMALLSTARTAIR, ASID_KINOKOSMALLEND, ASID_KINOKOSMALLENDAIR, ASID_ENTRY, ASID_ENTRYSTART, ASID_ENTRYEND, ASID_DAMAGEICE, ASID_DAMAGEICEJUMP, ASID_CAPTUREMASTERHAND, ASID_CAPTUREDAMAGEMASTERHAND, ASID_CAPTUREWAITMASTERHAND, ASID_THROWNMASTERHAND, ASID_CAPTUREKIRBYYOSHI, ASID_KIRBYYOSHIEGG, ASID_CAPTURELEADEAD, ASID_CAPTURELIKELIKE, ASID_DOWNREFLECT, ASID_CAPTURECRAZYHAND, ASID_CAPTUREDAMAGECRAZYHAND, ASID_CAPTUREWAITCRAZYHAND, ASID_THROWNCRAZYHAND, ASID_BARRELCANNONWAIT, }; enum FtAuxillaryAnim { FTAUXANIM_WIN1, FTAUXANIM_WIN2, FTAUXANIM_WIN3, FTAUXANIM_3, FTAUXANIM_4, FTAUXANIM_INTROLEFT, FTAUXANIM_INTRORIGHT, FTAUXANIM_7, FTAUXANIM_WAIT, }; enum FtScriptCmd { FTSCRIPT_END, FTSCRIPT_SYNCTIMER, FTSCRIPT_ASYNCTIMER, FTSCRIPT_3, FTSCRIPT_4, FTSCRIPT_5, FTSCRIPT_6, FTSCRIPT_7, FTSCRIPT_8, FTSCRIPT_9, FTSCRIPT_GFX, FTSCRIPT_HIT, FTSCRIPT_HITDMG, FTSCRIPT_HITSIZE, FTSCRIPT_HITINTERACTION, FTSCRIPT_HITCLEAR, FTSCRIPT_HITCLEARALL, FTSCRIPT_SFX, FTSCRIPT_SFXSMASH, FTSCRIPT_FLAG, FTSCRIPT_FLAG2, FTSCRIPT_FLAG3, FTSCRIPT_FLAG4, FTSCRIPT_FLAG5, FTSCRIPT_FLAG6, FTSCRIPT_SET, FTSCRIPT_VULNALL, FTSCRIPT_VULNUNK, FTSCRIPT_VULNPART, FTSCRIPT_JABFLAG, FTSCRIPT_JABFLAG2, FTSCRIPT_VISSET, FTSCRIPT_VISCLEAR, FTSCRIPT_VISRESET, FTSCRIPT_THROW, FTSCRIPT_ITEMVIS, FTSCRIPT_ITEMVIS2, FTSCRIPT_INVISIBLE, FTSCRIPT_SFXRANDOM, FTSCRIPT_39, FTSCRIPT_EYE, FTSCRIPT_PARTANIM, FTSCRIPT_42, FTSCRIPT_RUMBLE, FTSCRIPT_44, FTSCRIPT_45, FTSCRIPT_COLANIMAPPLY, FTSCRIPT_COLANIMCLEAR, FTSCRIPT_48, FTSCRIPT_AFTERIMAGE, FTSCRIPT_DYNAMICS, FTSCRIPT_DMGSELF, FTSCRIPT_IK, FTSCRIPT_53, FTSCRIPT_STEPSOUND, FTSCRIPT_SFXGFX, FTSCRIPT_SMASH, FTSCRIPT_57, FTSCRIPT_WIND, }; enum Ft_AttackKind { ATKKIND_0, ATKKIND_NONE, ATKKIND_JAB1, ATKKIND_JAB2, ATKKIND_JAB3, ATKKIND_JAB4, ATKKIND_DASH, ATKKIND_FTILT, ATKKIND_UTILT, ATKKIND_DTILT, ATKKIND_FSMASH, ATKKIND_USMASH, ATKKIND_DSMASH, ATKKIND_NAIR, ATKKIND_FAIR, ATKKIND_BAIR, ATKKIND_UAIR, ATKKIND_DAIR, ATKKIND_SPECIALN, ATKKIND_SPECIALS, ATKKIND_SPECIALHI, ATKKIND_SPECIALLW, ATKKIND_22, ATKKIND_23, ATKKIND_24, ATKKIND_25, ATKKIND_26, ATKKIND_27, ATKKIND_28, ATKKIND_29, ATKKIND_30, ATKKIND_31, ATKKIND_32, ATKKIND_33, ATKKIND_34, ATKKIND_35, ATKKIND_36, ATKKIND_37, ATKKIND_38, ATKKIND_39, ATKKIND_40, ATKKIND_41, ATKKIND_42, ATKKIND_43, ATKKIND_44, ATKKIND_45, ATKKIND_46, ATKKIND_47, ATKKIND_48, ATKKIND_49, ATKKIND_DOWNATTACKU, ATKKIND_DOWNATTACKD, ATKKIND_PUMMEL, ATKKIND_FTHROW, ATKKIND_BTHROW, ATKKIND_UPTHROW, ATKKIND_DTHROW, ATKKIND_57, ATKKIND_58, ATKKIND_59, ATKKIND_60, ATKKIND_61, ATKKIND_62, ATKKIND_63, ATKKIND_64, ATKKIND_65, ATKKIND_66, ATKKIND_67, ATKKIND_68, ATKKIND_69, ATKKIND_70, ATKKIND_71, ATKKIND_72, ATKKIND_73, ATKKIND_74, ATKKIND_75, ATKKIND_76, ATKKIND_77, ATKKIND_78, ATKKIND_79, ATKKIND_80, ATKKIND_81, ATKKIND_82, ATKKIND_83, ATKKIND_84, ATKKIND_85, ATKKIND_86, ATKKIND_87, }; typedef enum FtStateKind { FTSTATEKIND_FREE, // generally actionable states, like wait, run, jump FTSTATEKIND_DEFENSE, // shield, roll, airdodge FTSTATEKIND_ATTACK, // common attacks like jabs, tilts, and ledge attacks FTSTATEKIND_SPECIAL, // any special state FTSTATEKIND_4, // FTSTATEKIND_DAMAGE, // damage states, including, mewtwo confuse, shield break, FTSTATEKIND_DOWNED, // downed animations, incuding downbound, downback/forward, downattack, FTSTATEKIND_PASSIVE, // tech animations, such as in place, left, right, walltech, and ceiling tech FTSTATEKIND_REFLECTWALL, // but also passing through a platform?? FTSTATEKIND_LEDGE, // FTSTATEKIND_CATCH, // any grab/throw related state, like catch, catchdash, catchwait, throwf FTSTATEKIND_CAPTURE, // any state related to being grabbed, like capture, thrown, etc FTSTATEKIND_12, // entry animation, respawn animation, damagesong, bury FTSTATEKIND_DEAD, // dead states, including star and screen ko } FtStateKind; typedef enum FtHurtKind { FTHURTKIND_VULN, // vulnerable FTHURTKIND_INTANGIBLE, // cannot be hit FTHURTKIND_INVINCIBLE, // can be hit, does not take damage } FtHurtKind; /*** Structs ***/ struct Playerblock { int state; // 0x00 = not present, 0x02 = HMN, 0x03 = CPU int c_kind; // external ID int p_kind; // (0x00 is HMN, 0x01 is CPU, 0x02 is Demo, 0x03 n/a) u8 isTransformed[2]; // 0xC, 1 indicates the fighter that is active Vec3 tagPos; // 0x10 Vec3 spawnPos; // 0x1C Vec3 respawnPos; // 0x28 int x34; int x38; int x3C; float initialFacing; // 0x40 u8 costume; // 0x44 u8 color_accent; // 0x45, will correspond to port color when ffa and team color when teams u8 tint; // 0x46 u8 team; // 0x47 u8 controller; // 0x48 u8 cpuLv; // 0x49 u8 cpuKind; // 0x4a u8 handicap; // 0x4b u8 x4c; // 0x4c u8 kirby_copy; // 0x4d, index of kirby copy ability u8 x4e; // 0x4e u8 x4f; // 0x4f float attack; // 0x50 float defense; // 0x54 float scale; // 0x58 u16 damage; // 0x5c u16 initialDamage; // 0x5e u16 stamina; // 0x60 int falls[2]; // 0x68 int ko[6]; // 0x70 int match_frame_count; u16 selfDestructs; u8 stocks; int coins_curr; int coins_total; int x98; int x9c; int stickSmashes[2]; int tag; struct { u8 b0 : 1; u8 is_multispawn : 1; u8 b2 : 1; u8 b3 : 1; u8 b4 : 1; u8 is_metal : 1; u8 b6 : 1; u8 b7 : 1; } flags; // 0xac u8 xad; // 0xad u8 xae; // 0xae u8 xaf; // 0xaf GOBJ *gobj[2]; // 0xb0 void *cb_subft_init; // 0xb8, function executed on subfighter after creating them @ 80031c84 struct // 0xbc, stale moves { // int cur; // Zero-Indexed. Rolls over after 9. Increments after each write. s16 queue[10]; // array of attack indices } stale_moves; // struct // 0xE8 { // u8 x0[0xcb4]; // 0x0 int killer_ply; // 0xcb8, 6 == none u8 xcbc[0x60]; // struct // 0xd1c { // int running; // 0xd1c int airborne; // int grounded; // } time; // } stats; }; struct PlayerData { // byte 0x0 u8 c_kind; // 0x0 u8 p_kind; // 0x1 u8 stocks; // 0x2 u8 costume; // 0x3 // 0x4 u8 portNumberOverride; u8 spawnPointOverride; u8 facingDirection; u8 subcolor; // 0x8 u8 handicap; u8 team; u8 nametag; u8 xb; // 0xC unsigned char isRumble : 1; unsigned char isEntry : 1; unsigned char unk2 : 6; // 0xD unsigned char xd_80 : 1; unsigned char is_black_stock : 1; // 0xD, 0x40, makes the stock icon completely black unsigned char xd_20 : 1; unsigned char always_show_indicator : 1; // 0xD, 0x10, will always display player indicator (p1, p2, ally heart, etc) unsigned char xd_3f : 4; // 0xD, 0x0F // 0xE u8 cpuKind; // 0xF u8 cpuLevel; // 0x10 u16 damage_spawn; u16 damage_respawn; // 0x12 u16 stamina_spawn; // 0x14 float attack; // 0x18 float defense; // 0x1C float scale; // 0x20 }; struct FtCreateDesc // { int ft_kind; // 0x0 u8 ply; // 0x4 u8 x5; // 0x5 u8 ms; // 0x6 int x8; // 0x8 u8 xc_80 : 1; // 0xc u8 xc_40 : 1; // 0xc }; struct FighterBone { JOBJ *joint; // 0x0 JOBJ *joint2; // 0x4, used for interpolation int is_dynamic : 1; // 0x8, 0x80 int is_active : 1; // 0x8, 0x40 int x8_20 : 1; // 0x8, 0x20, related to it being a runtime bone? is checked at 8006f544 int is_unk : 1; // 0x8, 0x10, function 80074ee8 sets this flag on TransN, XRotN, YRotN, ThrowN int is_unk_2 : 1; // 0x8, 0x08, function 80074ee8 sets this flag on TransN, Extra int no_anim : 1; // 0x8, 0x04, will not animate the bone when set int x8_03FFFFFF : 26; // 0x8, unk int depth : 8; // 0xC, 0xFF000000, number of parents to get to root int dobj_start : 7; // 0xC, 0x00FE0000, first dobj belonging to this joint. (most every dobj belongs to joint 0, so this is usually equal to the total number of dobjs for subsequent joints) int xC_0001 : 1; // 0xC, 0x00010000 int xC_0000FFFF : 16; // 0xC, 0x0000FFFF, unk }; struct DynamicsDesc { int root_bone; // bone index; void *params; // dynamics params; int num; // number of children bones to make dynamic float xc; float x10; float x14; }; struct DynamicsHitDesc { int bone; // bone index int x4; // unk Vec3 x8; // unk }; struct DynamicsBehave { int num; // number of dynamic bones to animate in the boneset }; struct IKParam { u8 legr_index; // 0x0 u8 legl_index; // 0x1 float leg_param; // 0x4 u8 kneer_index; // 0x8 u8 kneel_index; // 0x9 float knee_param; // 0xC u8 footr_index; // 0x10 u8 footl_index; // 0x11 float foot_param1; float foot_param2; u8 shoulderr_index; u8 shoulderl_index; float shoulder_param; u8 armr_index; u8 arml_index; float arm_param1; float arm_param2; }; struct FtVis { s8 prev_value; // value before changed, used to restore original visibility s8 index; // displays the index's dobjs. -1 = hides all dobjs in this table /* Fighter Visibility Update @ 80074b6c - Clears hidden flag on all dobjs in the tables - Sets hidden flag on all dobjs in all non-current tables */ }; struct FtDynamicBoneset { int apply_anim_num; // if this is 256, dyanmics are not processed DynamicBoneset boneset; // 0x4 }; struct FtSFXArr { int num; int *sfx_ids; }; struct FtSFX { FtSFXArr *smash; // 0x0 int death; // 0x4 int metal_box; // 0x8 int star_ko; // 0xc int jump; // 0x10 int jump_air; // 0x14 int escape; // 0x18 FtSFXArr *light_hit; // 0x1c FtSFXArr *heavy_hit; // 0x20 int tech; // 0x24 int cliffcatch; // 0x28 int heavy_lift; // 0x2c int item_catch; // 0x30 int cheer; // 0x34 }; struct FtCollDesc { u16 ecb_bone_top; // 0x0 u16 ecb_bone_arm_left; // 0x2 u16 ecb_bone_arm_right; // 0x4 u16 ecb_bone_leg_left; // 0x6 u16 ecb_bone_leg_right; // 0x8 u16 ecb_bone_center; // 0xA float ecb_size_mult; // 0xC float cliffgrab_width; // 0x10 float cliffgrab_y_offset; // 0x14 float cliffgrab_height; // 0x18 }; struct ftData { int *common_attr; // 0x0 int *ext_attr; // 0x4 u8 *modelLookup; // 0x8 FtAction *ftaction; // 0xC int animDynamics; // 0x10 int x14; int x18; int x1C; int x20; int x24; int x28; ftDynamics *dynamics; // 0x2C int hurtbox; // 0x30 int *center_bubble; // 0x34 int x38; int x3C; int x40; FtCollDesc *coll; ItemDesc **items; FtSFX *sfx; int x50; int x54; IKParam *ik_param; }; struct ftChkDevice // 80459a68 { int x0; int x4; int x8; int xc; int x10; int x14; int x18; int x1c; int x20; GOBJ *gobj; int hazard_kind; void *check; }; struct FtState { int action_id; int flags; char move_id; char bitflags1; void *animation_callback; void *iasa_callback; void *physics_callback; void *collision_callback; void *camera_callback; }; struct FtAction { char *anim_symbol; // ptr to the symbol name for this animation int anim_offset; // offset of the anim data in plxxaj int anim_size; // size of the animation data void *script; // pointer to the script data for this action int flags; // void *anim_data; // pointer to the animation data in ARAM }; struct Figatree // this is the data contained in PlyX5K_Share_ACTION_X_figatree.dat (which is stored in the AJ file in ARAM, confusing i know) { int kind; // 0x0 int x4; // 0x4 float frame_num; // 0x8, total number of frames in this animation void *nodes; // 0xC void *tracks; // 0x10 }; struct ReflectDesc { int bone; int max_damage; Vec3 pos; float radius; float damage_mult; float velocity_mult; int flags; }; struct ShieldDesc { int bone; int max_damage; Vec3 pos; float radius; float damage_mult; float velocity_mult; int flags; }; struct AbsorbDesc { int bone; // x00 Vec3 pos; // x04 float radius; // x10 }; struct AfterImageDesc { float x0; // 0x0 float x4; // 0x4 u8 start_alpha; // 0x8 u8 end_alpha; // 0x8 u8 in_col[4]; // 0xA u8 out_col[4]; // 0xE u8 x12; // 0x12 u8 x13; // 0x13 int bone_index; // 0x14 float offset_bottom; // 0x18 float offset_top; // 0x1C }; struct FtDmgLog { float direction; // 0x1844, 0x0 int kb_angle; // 0x1848, 0x4 int hurt_kind; // 0x184c, 0x8. 0 = low, 1 = mid, 2 = hi (previously was called damaged_hurtbox) float force_applied; // 0x1850, 0xc, to get kb magnitude, multiply by 0.03 Vec3 collpos; // 0x1854, 0x10 int attribute; // 0x1860, 0x1c int x1864; // 0x1864, 0x20 GOBJ *source; // 0x1868, 0x24 float percent; // 0x186c, 0x28 }; struct HitVictim { void *data; // userdata of the object that was hit int timer; // items use this to wait until hitting this gobj again }; struct ftHit { int active; // 0x0 int x4; // 0x4 int dmg; // 0x8 float dmg_f; // 0xc Vec3 offset; // 0x10 float size; // 0x1c int angle; // 0x20 int kb_growth; // 0x24 int wdsk; // 0x28 int kb; // 0x2c int attribute; // 0x30 int shield_dmg; // 0x34 int hitsound_severity; // 0x38. hurtbox interaction. 0 = none, 1 = grounded, 2 = aerial, 3 = both int hitsound_kind; // 0x3c char x40; // 0x40 char x41; // 0x41 unsigned char x421 : 1; // 0x42 0x80 unsigned char x422 : 1; // 0x42 0x40 unsigned char x423 : 1; // 0x42 0x20 unsigned char x424 : 1; // 0x42 0x10 unsigned char no_hurt : 1; // 0x42 0x08 ignore hurtbox unsigned char no_reflect : 1; // 0x42 0x04 ignore reflect? unsigned char x427 : 1; // 0x42 0x02 unsigned char x428 : 1; // 0x42 0x01 unsigned char x431 : 1; // 0x43 0x80 unsigned char x432 : 1; // 0x43 0x40 unsigned char hit_all : 1; // 0x43 0x20 unsigned char x434 : 1; // 0x43 0x10 unsigned char x435 : 1; // 0x43 0x08 unsigned char x436 : 1; // 0x43 0x04 unsigned char x437 : 1; // 0x43 0x02 unsigned char x438 : 1; // 0x43 0x01 u8 x44; // 0x44 u8 victim_num; // 0x45 JOBJ *bone; // 0x48 Vec3 pos; // 0x4c Vec3 pos_prev; // 0x58 Vec3 pos_coll; // 0x64 position of hurt collision float coll_distance; // 0x70 Distance From Collding FtHurt (Used for phantom hit collision calculation) HitVictim victims[24]; // 0x74 int x134; // 0x134, flags of some sort }; struct FtHurt { FtHurtKind state; // 0x0, whether or not this hurtbox can be hit Vec3 hurt1_offset; // 0x4 Vec3 hurt2_offset; // 0x10 float scale; // 0x1c JOBJ *jobj; // 0x20 unsigned char is_updated : 1; // 0x24, if enabled, wont update position unsigned char x24_2 : 1; // 0x24 0x40 unsigned char x24_3 : 1; // 0x24 0x20 unsigned char x24_4 : 1; // 0x24 0x10 unsigned char x24_5 : 1; // 0x24 0x08 unsigned char x24_6 : 1; // 0x24 0x04 unsigned char x24_7 : 1; // 0x24 0x02 unsigned char x24_8 : 1; // 0x24 0x01 Vec3 hurt1_pos; // 0x28 Vec3 hurt2_pos; // 0x34 int bone_index; // 0x40 int hurt_kind; // 0x44. 0 = low, 1 = mid, 2 = high int is_grabbable; // 0x48 }; struct FtCoin { float size; // 0x0 JOBJ *jobj; // 0x4 Vec3 pos_cur; // 0x8 Vec3 pos_prev; // 0x14 Vec3 coll_pos; // 0x20 }; struct FtAfterImageKey { Vec3 pos; Vec3 rot; }; struct CPULeaderLog { int x0; // 0x0, 0xfc u8 x4; // 0x4, 0x100 u8 x5; // 0x3, 0x101 u8 x6; // 0x6, 0x102 u8 x7; // 0x7, 0x103 int x8; // 0x8, 0x104 Vec3 pos; // 0xc, 0x108 float facing_direction; // 0x18, 0x114 }; struct CPU { int held; // 0x0 s8 lstickX; // 0x4 s8 lstickY; // 0x5 s8 cstickX; // 0x6 s8 cstickY; // 0x7 u8 ltrigger; // 0x8 u8 rtrigger; // 0x9 int ai; // 0xc, 25 of these, function table at 800a1090 int level; // 0x10 int x14; // 0x14 int scenario_id; // 0x18 int x1c; // 0x1c int x20; // 0x20 int x24; // 0x24 int x28; // 0x28 int x2c; // 0x2c int x30; // 0x30 int x34; // 0x34 float x38; // 0x38 float x3c; // 0x3c float x40; // 0x40 void *x44; // 0x44 void *x48; // 0x48 int x4c; // 0x4c int x50; // 0x50 float x54; // 0x54 float x58; // 0x58 float x5c; // 0x5c int x60; // 0x60 int x64; // 0x64 int x68; // 0x68 int x6c; // 0x6c int x70; // 0x70 int x74; // 0x74 int proc_num; // 0x78, number of times it updated CPU logic in any capacity int scenario_check_num; // 0x7c, number of times it tried to update CPU scenario int x80; // 0x80 int x84; // 0x84 int x88; // 0x88 int x8c; // 0x8c int x90; // 0x90 int x94; // 0x94 int x98; // 0x98 int x9c; // 0x9c int xa0; // 0xa0 int xa4; // 0xa4 int xa8; // 0xa8 int xac; // 0xac int xb0; // 0xb0 int xb4; // 0xb4 int xb8; // 0xb8 int xbc; // 0xbc int xc0; // 0xc0 int xc4; // 0xc4 u8 xc8; // 0xc8 int xcc; // 0xcc int xd0; // 0xd0CPULeaderLog int xd4; // 0xd4 int xd8; // 0xd8 int xdc; // 0xdc int xe0; // 0xe0 int xe4; // 0xe4 int xe8; // 0xe8 u8 xec; // 0xec int xf0; // 0xf0 int xf4; // 0xf4 int xf8; // 0xf8, flags | 0x00000100 is the "isCopy" flag (uses leaders inputs) CPULeaderLog leader_log[30]; // 0xfc, contains a log of per frame data about the followers leader void *unk_curr; // 0x444 void *scenario_curr; // 0x448, cpu scenario not updated if this contains a pointer @ 800b27b8 void *scenario_curr2; // 0x44c, cpu scenario not updated if this contains a pointer @ 800b27c4 void *x450; // 0x450 u8 cmdscript_queue[256]; // 0x454, list of command ids for the follower to execute void *cmdscript_curr; // 0x554, points to a command in the cmdscript queue }; struct FtDmgVibrateDesc { Vec2 *offsets; int num; }; struct ftCommonBone { u8 *x0; u8 *x4; int bone_num; }; struct ftCommonData { float x0; // 0x0 float x4; // 0x4 float x8; // 0x8 float xc; // 0xc float x10; // 0x10 float x14; // 0x14 float x18; // 0x18 int meteor_lockout; // 0x1c float lstick_tilt; // 0x20 float x24; // 0x24 float walk_anim_mid_percentage; // 0x28 float walk_anim_fast_percentage; // 0x2c float x30; // 0x30 float x34; // 0x34 float x38; // 0x38 float dash_min_stick; // 0x3c int dash_min_stick_tilt; // 0x40 float x44; // 0x44 float x48; // 0x48 float x4c; // 0x4c float x50; // 0x50 float x54; // 0x54 float x58; // 0x58 float x5c; // 0x5c float x60; // 0x60 float x64; // 0x64 float x68; // 0x68 float friction_mult; // 0x6c float jumpaerial_lsticky; // 0x70 int jumpaerial_lsticktimer; // 0x74 float jumpaerial_back_tilt; // 0x78 float x7c; // 0x7c float x80; // 0x80 float x84; // 0x84 float x88; // 0x88 float x8c; // 0x8c float lstick_rebirthfall; // 0x90 float x94; // 0x94 float x98; // 0x98 float x9c; // 0x9c float xa0; // 0xa0 float xa4; // 0xa4 float xa8; // 0xa8 float xac; // 0xac float xb0; // 0xb0 float xb4; // 0xb4 float xb8; // 0xb8 float xbc; // 0xbc float xc0; // 0xc0 float xc4; // 0xc4 float xc8; // 0xc8 float xcc; // 0xcc float xd0; // 0xd0 float xd4; // 0xd4 float xd8; // 0xd8 float xdc; // 0xdc float xe0; // 0xe0 float xe4; // 0xe4 float xe8; // 0xe8 float xec; // 0xec float xf0; // 0xf0 float xf4; // 0xf4 float xf8; // 0xf8 float xfc; // 0xfc float force_applied_to_kb_mag_multiplier; // 0x100, multiplied with force_applied to get the knockback vector's magnitude float armor_min; // 0x104, kb reduction via armor cant go below this value float x108; // 0x108 float x10c; // 0x10c float x110; // 0x110 float x114; // 0x114 float x118; // 0x118 float x11c; // 0x11c float x120; // 0x120 float kb_reduction_crouch; // 0x124 float x128; // 0x128 float x12c; // 0x12c float x130; // 0x130 float x134; // 0x134 float x138; // 0x138 float x13c; // 0x13c float x140; // 0x140 float kb_sakurai_angle_aerial; // 0x144, sakurai angle becomes this angle when the victim is airborne, in degrees float kb_sakurai_angle_grounded; // 0x148, sakurai angle becomes this angle when the victim is grounded, in degrees float kb_grounded_sakurai_angle_threshold; // 0x14c, when knockback force is less than this and victim is grounded, it uses angle 0, in degrees float x150; // 0x150, float x154; // 0x154 float x158; // 0x158 float x15c; // 0x15c float x160; // 0x160 float kb_maxVelX; // 0x164 float hitlag_mult; // 0x168 float hitlag_base; // 0x16c, is 0 in vanilla float x170; // 0x170 float x174; // 0x174 float x178; // 0x178 float x17c; // 0x17c float x180; // 0x180 float x184; // 0x184 float x188; // 0x188 float x18c; // 0x18c float x190; // 0x190 float hitlag_max; // 0x194 float x198; // 0x198 float x19c; // 0x19c float x1a0; // 0x1a0 float hitlag_elec; // 0x1a4 float tdi_maxAngle; // 0x1a8 float x1ac; // 0x1ac float x1b0; // 0x1b0 float x1b4; // 0x1b4 float x1b8; // 0x1b8 float kb_bounceDecay; // 0x1bc float x1c0; // 0x1c0 float x1c4; // 0x1c4 float x1c8; // 0x1c8 float x1cc; // 0x1cc float x1d0; // 0x1d0 float x1d4; // 0x1d4 float x1d8; // 0x1d8 float x1dc; // 0x1dc float x1e0; // 0x1e0 float x1e4; // 0x1e4 float x1e8; // 0x1e8 float x1ec; // 0x1ec float x1f0; // 0x1f0 float x1f4; // 0x1f4 float x1f8; // 0x1f8 float x1fc; // 0x1fc float x200; // 0x200 float kb_frameDecay; // 0x204 float x208; // 0x208 float x20c; // 0x20c float x210; // 0x210 float x214; // 0x214 float x218; // 0x218 float x21c; // 0x21c float x220; // 0x220 float x224; // 0x224 float x228; // 0x228 float x22c; // 0x22c float x230; // 0x230 float x234; // 0x234 float x238; // 0x238 float x23c; // 0x23c float x240; // 0x240 float x244; // 0x244 float x248; // 0x248 float x24c; // 0x24c float x250; // 0x250 float x254; // 0x254 float x258; // 0x258 float x25c; // 0x25c float x260; // 0x260 float x264; // 0x264 float x268; // 0x268 float x26c; // 0x26c float x270; // 0x270 float x274; // 0x274 float x278; // 0x278 float x27c; // 0x27c float x280; // 0x280 float x284; // 0x284 float x288; // 0x288 float x28c; // 0x28c float x290; // 0x290 float x294; // 0x294 float x298; // 0x298 float x29c; // 0x29c float x2a0; // 0x2a0 float x2a4; // 0x2a4 float x2a8; // 0x2a8 float x2ac; // 0x2ac float x2b0; // 0x2b0 float x2b4; // 0x2b4 float x2b8; // 0x2b8 float x2bc; // 0x2bc float x2c0; // 0x2c0 float x2c4; // 0x2c4 float x2c8; // 0x2c8 float x2cc; // 0x2cc float x2d0; // 0x2d0 float x2d4; // 0x2d4 float x2d8; // 0x2d8 float x2dc; // 0x2dc float x2e0; // 0x2e0 float x2e4; // 0x2e4 float x2e8; // 0x2e8 float x2ec; // 0x2ec float x2f0; // 0x2f0 float x2f4; // 0x2f4 float x2f8; // 0x2f8 float x2fc; // 0x2fc float x300; // 0x300 float x304; // 0x304 float x308; // 0x308 float x30c; // 0x30c float x310; // 0x310 float x314; // 0x314 float x318; // 0x318 float x31c; // 0x31c float x320; // 0x320 float x324; // 0x324 float x328; // 0x328 float x32c; // 0x32c float x330; // 0x330 float x334; // 0x334 float escapeair_vel; // 0x338 float escapeair_veldecaymult; // 0x33c float x340; // 0x340 float x344; // 0x344 float x348; // 0x348 float x34c; // 0x34c float x350; // 0x350 float grab_mash_min; // 0x354 float grab_mash_per_handicap; // 0x358 float grab_max_handicap; // 0x35c float grab_placing_mult; // 0x360 float grab_placing_max; // 0x364 float grab_mash_mult; // 0x368 float x36c; // 0x36c float x370; // 0x370 float x374; // 0x374 float x378; // 0x378 float x37c; // 0x37c float x380; // 0x380 float x384; // 0x384 float x388; // 0x388 float x38c; // 0x38c float x390; // 0x390 float x394; // 0x394 float x398; // 0x398 float x39c; // 0x39c float x3a0; // 0x3a0 float grab_mash_per_frame; // 0x3a4 float grab_mash_per_input; // 0x3a8 float x3ac; // 0x3ac float grab_wiggle_per_input; // 0x3b0 float grab_wiggle_rate; // 0x3b4 float x3b8; // 0x3b8 float x3bc; // 0x3bc float x3c0; // 0x3c0 float x3c4; // 0x3c4 float x3c8; // 0x3c8 float x3cc; // 0x3cc float x3d0; // 0x3d0 float x3d4; // 0x3d4 float x3d8; // 0x3d8 float x3dc; // 0x3dc float x3e0; // 0x3e0 float x3e4; // 0x3e4 float x3e8; // 0x3e8 float x3ec; // 0x3ec float x3f0; // 0x3f0 float x3f4; // 0x3f4 float x3f8; // 0x3f8 float x3fc; // 0x3fc float x400; // 0x400 float x404; // 0x404 float x408; // 0x408 float x40c; // 0x40c float x410; // 0x410 float x414; // 0x414 float x418; // 0x418 float x41c; // 0x41c float x420; // 0x420 float x424; // 0x424 float x428; // 0x428 float x42c; // 0x42c float x430; // 0x430 float x434; // 0x434 float x438; // 0x438 float x43c; // 0x43c float x440; // 0x440 float x444; // 0x444 float x448; // 0x448 float x44c; // 0x44c float x450; // 0x450 float zjostle_frame; // 0x45c float zjostle_max; // 0x460 float ms_zjostle_frame; // 0x45c float ms_zjostle_max; // 0x460 float x464; // 0x464 float x468; // 0x468 float x46c; // 0x46c float x470; // 0x470 float x474; // 0x474 float x478; // 0x478 float x47c; // 0x47c float x480; // 0x480 float x484; // 0x484 float x488; // 0x488 float x48c; // 0x48c float x490; // 0x490 float ledge_drop_thresh; // 0x494 float x498; // 0x498 int cliff_invuln_time; // 0x49c float x4a0; // 0x4a0 float x4a4; // 0x4a4 float x4a8; // 0x4a8 float x4ac; // 0x4ac float asdi_mag; // 0x4b0 float x4b4; // 0x4b4 float x4b8; // 0x4b8 float asdi_units; // 0x4bc float x4c0; // 0x4c0 float x4c4; // 0x4c4 float x4c8; // 0x4c8 float x4cc; // 0x4cc float x4d0; // 0x4d0 float x4d4; // 0x4d4 float x4d8; // 0x4d8 float x4dc; // 0x4dc float x4e0; // 0x4e0 float x4e4; // 0x4e4 float x4e8; // 0x4e8 float x4ec; // 0x4ec float x4f0; // 0x4f0 float x4f4; // 0x4f4 float x4f8; // 0x4f8 float x4fc; // 0x4fc int dead_timer; // 0x500 float x504; // 0x504 float x508; // 0x508 float x50c; // 0x50c float x510; // 0x510 float x514; // 0x514 float x518; // 0x518 float x51c; // 0x51c float x520; // 0x520 float x524; // 0x524 float x528; // 0x528 float x52c; // 0x52c float x530; // 0x530 float x534; // 0x534 float x538; // 0x538 float x53c; // 0x53c float x540; // 0x540 float x544; // 0x544 float x548; // 0x548 float x54c; // 0x54c float x550; // 0x550 float x554; // 0x554 float x558; // 0x558 float x55c; // 0x55c float x560; // 0x560 float x564; // 0x564 float x568; // 0x568 float x56c; // 0x56c float x570; // 0x570 float x574; // 0x574 float x578; // 0x578 float x57c; // 0x57c float x580; // 0x580 float x584; // 0x584 float x588; // 0x588 float x58c; // 0x58c float x590; // 0x590 float x594; // 0x594 float x598; // 0x598 float x59c; // 0x59c float x5a0; // 0x5a0 float x5a4; // 0x5a4 float x5a8; // 0x5a8 float x5ac; // 0x5ac float x5b0; // 0x5b0 float x5b4; // 0x5b4 float x5b8; // 0x5b8 float x5bc; // 0x5bc float x5c0; // 0x5c0 float x5c4; // 0x5c4 float x5c8; // 0x5c8 float x5cc; // 0x5cc float x5d0; // 0x5d0 float x5d4; // 0x5d4 float x5d8; // 0x5d8 float x5dc; // 0x5dc float x5e0; // 0x5e0 float x5e4; // 0x5e4 float x5e8; // 0x5e8 float x5ec; // 0x5ec float x5f0; // 0x5f0 float x5f4; // 0x5f4 float x5f8; // 0x5f8 float x5fc; // 0x5fc float x600; // 0x600 float x604; // 0x604 float x608; // 0x608 float x60c; // 0x60c float x610; // 0x610 float x614; // 0x614 float x618; // 0x618 float x61c; // 0x61c float x620; // 0x620 float x624; // 0x624 float x628; // 0x628 float x62c; // 0x62c float x630; // 0x630 float x634; // 0x634 float x638; // 0x638 float x63c; // 0x63c float x640; // 0x640 float x644; // 0x644 float x648; // 0x648 float x64c; // 0x64c float x650; // 0x650 float x654; // 0x654 float x658; // 0x658 float x65c; // 0x65c float x660; // 0x660 float x664; // 0x664 float x668; // 0x668 float x66c; // 0x66c float x670; // 0x670 float x674; // 0x674 float x678; // 0x678 float x67c; // 0x67c float x680; // 0x680 float x684; // 0x684 float x688; // 0x688 float x68c; // 0x68c float x690; // 0x690 float x694; // 0x694 float x698; // 0x698 float x69c; // 0x69c float x6a0; // 0x6a0 float x6a4; // 0x6a4 float x6a8; // 0x6a8 float x6ac; // 0x6ac float x6b0; // 0x6b0 float x6b4; // 0x6b4 float x6b8; // 0x6b8 float x6bc; // 0x6bc float x6c0; // 0x6c0 float x6c4; // 0x6c4 float x6c8; // 0x6c8 float x6cc; // 0x6cc float x6d0; // 0x6d0 float x6d4; // 0x6d4 float x6d8; // 0x6d8 float x6dc; // 0x6dc float x6e0; // 0x6e0 float x6e4; // 0x6e4 float x6e8; // 0x6e8 float x6ec; // 0x6ec float metal_armor; // 0x6f0 float x6f4; // 0x6f4 float x6f8; // 0x6f8 float x6fc; // 0x6fc float x700; // 0x700 float x704; // 0x704 float x708; // 0x708 float x70c; // 0x70c float x710; // 0x710 float x714; // 0x714 float kb_reduction_ice; // 0x718 float x71c; // 0x71c float x720; // 0x720 float x724; // 0x724 float x728; // 0x728 float x72c; // 0x72c float x730; // 0x730 float x734; // 0x734 float x738; // 0x738 float x73c; // 0x73c float x740; // 0x740 float x744; // 0x744 float x748; // 0x748 float x74c; // 0x74c float x750; // 0x750 float x754; // 0x754 float x758; // 0x758 float x75c; // 0x75c float x760; // 0x760 float x764; // 0x764 float x768; // 0x768 float x76c; // 0x76c float x770; // 0x770 float x774; // 0x774 float x778; // 0x778 float x77c; // 0x77c float x780; // 0x780 float x784; // 0x784 float x788; // 0x788 float x78c; // 0x78c float x790; // 0x790 float x794; // 0x794 float x798; // 0x798 float x79c; // 0x79c float x7a0; // 0x7a0 float x7a4; // 0x7a4 float tip_overlap_max; // 0x7a8 (phantom hit threshold) float x7ac; // 0x7ac float x7b0; // 0x7b0 float x7b4; // 0x7b4 float x7b8; // 0x7b8 float x7bc; // 0x7bc float x7c0; // 0x7c0 float kb_reduction_smashcharge; // 0x7c4 float x7c8; // 0x7c8 float x7cc; // 0x7cc float x7d0; // 0x7d0 float x7d4; // 0x7d4 float x7d8; // 0x7d8 float x7dc; // 0x7dc float x7e0; // 0x7e0 float x7e4; // 0x7e4 int meteor_angle_min; // 0x7e8 int meteor_angle_max; // 0x7ec int meteor_delay; // 0x7f0, immediate delay before any action can occur float x7f4; // 0x7f4 float x7f8; // 0x7f8 float x7fc; // 0x7fc float x800; // 0x800 float x804; // 0x804 float x808; // 0x808 float x80c; // 0x80c float x810; // 0x810 }; struct FighterData { GOBJ *fighter; // 0x0 int kind; // 0x4 int spawn_num; // 0x8 char ply; // 0xC char xd; // 0xD char xe; // 0xE char xf; // 0xF int state_id; // 0x10 int action_id; // 0x14 int common_state_num; // 0x18 FtState *ftstates_common; // 0x1C FtState *ftstates_special; // 0x20 FtAction *ftaction; // 0x24 u16 *dynamics_data; // 0x28 float facing_direction; // 0x2C float facing_direction_prev; // 0x30 Vec3 scale; // 0x34 int x40; // 0x40 Mtx temp_mtx; // 0x44 struct phys // 0x74 { // Vec3 anim_vel; // 0x74 Vec3 self_vel; // 0x80 Vec3 kb_vel; // 0x8C Vec3 atk_shield_kb_vel; // 0x98 Vec3 xA4; // 0xA4 Vec3 pos; // 0xB0 Vec3 pos_prev; // 0xBC Vec3 pos_delta; // 0xC8 Vec3 xD4; // 0xD4 int air_state; // 0xE0 float horzitonal_velocity_queue_will_be_added_to_0xec; // 0xE4 float vertical_velocity_queue_will_be_added_to_0xec; // 0xE8 Vec3 self_vel_ground; // 0xEC Vec2 nudge_vel; // 0xF8 int x100; // 0x100 } phys; // void *x104; // 0x104 JOBJDesc *costume_jobjdesc; // 0x108 ftData *ftData; // 0x10C struct attr // 0x110 { // float walk_initial_velocity; // 0x110 float walk_acceleration; // 0x114 float walk_maximum_velocity; // 0x118 float slow_walk_max; // 0x11C float mid_walk_point; // 0x120 float fast_walk_min; // 0x124 float ground_friction; // 0x128 float dash_initial_velocity; // 0x12C float dashrun_acceleration_a; // 0x130 float dashrun_acceleration_b; // 0x134 float dashrun_terminal_velocity; // 0x138 float run_animation_scaling; // 0x13C float max_runbrake_frames; // 0x140 float grounded_max_horizontal_velocity; // 0x144 float jump_startup_time; // 0x148 float jump_h_initial_velocity; // 0x14C float jump_v_initial_velocity; // 0x150 float ground_to_air_jump_momentum_multiplier; // 0x154 float jump_h_max_velocity; // 0x158 float hop_v_initial_velocity; // 0x15C float air_jump_v_multiplier; // 0x160 float air_jump_h_multiplier; // 0x164 int max_jumps; // 0x168 float gravity; // 0x16C float terminal_velocity; // 0x170 float aerial_drift_stick_mult; // 0x174 float aerial_drift_base; // 0x178, minimum amount of drift, stick mult is added on top of this float aerial_drift_max; // 0x17C float aerial_friction; // 0x180 float fastfall_velocity; // 0x184 float horizontal_air_mobility_constant; // 0x188 int jab_2_input_window; // 0x18C int jab_3_input_window; // 0x190 int frames_to_change_direction_on_standing_turn; // 0x194 float weight; // 0x198 float model_scaling; // 0x19C float initial_shield_size; // 0x1A0 float shield_break_initial_velocity; // 0x1A4 int rapid_jab_window; // 0x1A8 float rebound_frames; // 0x1AC int x1B0; // 0x1B0 int x1B4; // 0x1B4 float ledge_jump_horizontal_velocity; // 0x1B8 float ledge_jump_vertical_velocity; // 0x1BC float item_throw_velocity_multiplier; // 0x1C0 float item_discard_vel_mult; // 0x1C4 int x1C8; // 0x1C8 int x1CC; // 0x1CC int x1D0; // 0x1D0 int x1D4; // 0x1D4 int x1D8; // 0x1D8 int x1DC; // 0x1DC int x1E0; // 0x1E0 int x1E4; // 0x1E4 int x1E8; // 0x1E8 float kirby_star_scaling; // 0x1EC float kirby_b_star_damage; // 0x1F0 float normal_landing_lag; // 0x1F4 float n_air_landing_lag; // 0x1F8 float f_air_landing_lag; // 0x1FC float b_air_landing_lag; // 0x200 float u_air_landing_lag; // 0x204 float d_air_landing_lag; // 0x208 float nametag_height; // 0x20C float wall_tech_x_offset; // 0x210 float wall_jump_horizontal_velocity; // 0x214 float wall_jump_vertical_velocity; // 0x218 int x21C; // 0x21C float trophy_scale; // 0x220 Vec3 bunny_hood_left_offset; // 0x224 Vec3 bunny_hood_right_offset; // 0x230 float bunny_hood_scale; // 0x23C Vec3 head_flower_offset; // 0x240 float head_flower_scale; // 0x24C int x250; // 0x250 int x254; // 0x254 int unk_walljump; // 0x258, float bubble_ratio; // 0x25C int x260; // 0x260 int x264; // 0x264 int x268; // 0x268 int x26C; // 0x26C float respawn_platform_scale; // 0x270 int x274; // 0x274 int x278; // 0x278 int camera_zoom_target_bone; // 0x27C int x280; // 0x280 int x284; // 0x284 int x288; // 0x288 int special_jump_action___1; // 0x28C int weight_dependent_throw_speed_flags; // 0x290 } attr; // struct { Vec2 ground_light_offset; // 0x294 Vec2 ground_light_size; // 0x29C Vec2 ground_heavy_offset; // 0x2A4 Vec2 ground_heavy_size; // 0x2AC Vec2 air_light_offset; // 0x2B4 Vec2 air_light_size; // 0x2BC } itpickup; float jostle_offset; // 0x2C4 float jostle_range; // 0x2C8 int x2CC; // 0x2CC FtMultiJumpDesc *multi_jump_desc; // 0x2D0 void *special_attributes; // 0x2D4 void *special_attributes2; // 0x2D8 struct // 0x2DC, anim_length_lookup { // float walkslow; // 0x2DC float walkmiddle; // 0x2E0 float walkfast; // 0x2E4 float guardon; // 0x2E8 float landing; // 0x2EC } anim_length_lookup; // FtDynamicBoneset dynamics_boneset[10]; // 0x2f0 int dynamics_num; // 0x3E0 struct script // 0x3E4 { // float script_event_timer; // 0x3E4 float script_frame_timer; // 0x3E8 int *script_current; // 0x3EC int script_loop_num; // 0x3F0 int *script_return; // 0x3F4 } script; // int unk; // 0x3F8 int unk3FC; // 0x3FC int pointer_to_0x460; // 0x400 int pointer_to_0x3c0; // 0x404 ColorOverlay color[3]; // 0x408 LOBJ *LObj; // 0x588 int anim_num; // 0x58C Figatree *figatree_curr; // 0x590, pointer to the FtAnim struct struct // 0x594 { u32 transn_phys_update : 1; // 0x80000000, gives fighter speed based on transN offset u32 loop_anim : 1; // 0x40000000, loops animation u32 x20000000 : 1; // 0x20000000 u32 x10000000 : 1; // 0x10000000 u32 no_dynamics : 1; // 0x08000000 u32 x04000000 : 1; // 0x04000000 u32 transn_use_model_scale : 1; // 0x02000000 u32 x01c00000 : 3; // 0x01C00000 u32 x003ffe00 : 13; // 0x003ffe00 u32 disable_blend_bone_index : 4; // 0x000001e0 u32 kind : 5; // 0x0000001f, ft kind, used in vanilla melee to determine thrown boneset or ft boneset } action_flags; void *anim_requested; // 0x598 void *anim_cache_curr; // 0x59C void *anim_cache_persist; // 0x5A0 void *anim_curr_ARAM; // 0x5A4 void *anim_persist_ARAM; // 0x5A8 int dobj_toggle_num; // 0x5AC int x5B0; // 0x5B0 int x5B4; // 0x5B4 int x5B8; // 0x5B8 int x5BC; // 0x5BC int x5C0; // 0x5C0 int x5C4; // 0x5C4 int x5C8; // 0x5C8 int texanim_num; // 0x5CC, number of texture anims this fighter has int x5D0; // 0x5D0 int x5D4; // 0x5D4 int x5D8; // 0x5D8 int x5DC; // 0x5DC int x5E0; // 0x5E0 int x5E4; // 0x5E4 FighterBone *bones; // 0x5E8 int bone_num; // 0x5EC DOBJ **dobj_lookup; // 0x5F0 FtVis dobj_toggle[12]; // 0x5f4 Effect *gfx; // 0x60C int x610; // 0x610 int x614; // 0x614 char pad_index; // 0x618 char costume_id; // 0x619 char color_overlay_id; // 0x61A u8 team; // 0x61B char x61C; // 0x61C char x61D; // 0x61D /* fp+61E */ u8 filler_x61E[0x620 - 0x61E]; struct input // input data { // Vec2 lstick; // 0x620 Vec2 lstick_prev; // 0x628 int x630; // 0x630 int x634; // 0x634 Vec2 cstick; // 0x638 Vec2 cstick_prev; // 0x640 int x648; // 0x648 int x64C; // 0x64C float trigger; // 0x650 float trigger_prev; // 0x654 int x658; // 0x658 int held; // 0x65C int held_prev; // 0x660 int x664; // 0x664 int down; // 0x668 int x66C; // 0x66C char timer_lstick_tilt_x; // 0x670 char timer_lstick_tilt_y; // 0x671 char timer_trigger_analog; // 0x672 char timer_lstick_smash_x; // 0x673 char timer_lstick_smash_y; // 0x674 char timer_trigger_digital; // 0x675 char timer_lstick_any_x; // 0x676 char timer_lstick_any_y; // 0x677 char timer_trigger_any; // 0x678 char x679; // 0x679 char x67A; // 0x67A char x67B; // 0x67B char timer_a; // 0x67C char timer_b; // 0x67D char timer_xy; // 0x67E char timer_trigger_any_ignore_hitlag; // 0x67F char timer_LR; // 0x680 char timer_padup; // 0x681 char timer_paddown; // 0x682 char timer_item_release; // 0x683 char since_rapid_lr; // 0x684 char timer_jump; // 0x685 char timer_specialhi; // 0x686 char timer_speciallw; // 0x687 char timer_specials; // 0x688 char timer_specialn; // 0x689 char timer_jump_lockout; // 0x68A char timer_specialhi_lockout; // 0x68B } input; // Vec3 transN_pos; // x68c Vec3 transN_pos_prev; // 0x698 Vec3 transN_offset; // 0x6A4 Vec3 transN_offset_prev; // 0x6B0 float input_stickangle; // 0x6BC int x6C0; // 0x6C0 int x6C4; // 0x6C4 int x6C8; // 0x6C8 int x6CC; // 0x6CC int x6D0; // 0x6D0 int x6D4; // 0x6D4 int x6D8; // 0x6D8 int x6DC; // 0x6DC int x6E0; // 0x6E0 int x6E4; // 0x6E4 int x6E8; // 0x6E8 int x6EC; // 0x6EC CollData coll_data; // 0x6F0 -> 0x88C CmSubject *camera_subject; // 0x890 struct state { float frame; // 0x894, current frame of the animation int x898; // 0x898 float rate; // 0x89C, current speed rate of the animation int x8a0; // 0x8a0 float blend; // 0x8a4, current interpolation value of the animation float current_blend; // 0x8a8 } state; JOBJ *anim_skeleton; // 0x8ac int x8b0; // 0x8b0 int x8b4; // 0x8b4 int x8b8; // 0x8b8 int x8bc; // 0x8bc int curr_hold_anim; // 0x8c0 int x8c4; // 0x8c4 int x8c8; // 0x8c8 int x8cc; // 0x8cc int x8d0; // 0x8d0 int x8d4; // 0x8d4 int x8d8; // 0x8d8 int x8dc; // 0x8dc int x8e0; // 0x8e0 int x8e4; // 0x8e4 int x8e8; // 0x8e8 int x8ec; // 0x8ec int x8f0; // 0x8f0 int x8f4; // 0x8f4 int x8f8; // 0x8f8 int x8fc; // 0x8fc int x900; // 0x900 int x904; // 0x904 int x908; // 0x908 int x90c; // 0x90c int x910; // 0x910 ftHit hitbox[4]; // 0x914 ftHit throw_hitbox[2]; // 0xdf4, ftHit thrown_hitbox; // 0x1064 u8 team_unk; // 0x119c, friendly fire related u8 grabber_ply; // 0x119D, slot ID of the person grabbing this fighter u8 hurt_num; // 0x119E, number of hurtboxes FtHurt hurtbox[15]; // 0x11A0 FtCoin coinbox[2]; // 0x1614 int dynamics_hit_num; // 0x166c DynamicHit dynamics_hit[11]; // 0x1670 float x1828; // 0x1828 struct dmg // 0x182c { // int behavior; // 0x182c float percent; // 0x1830 int x1834; // 0x1834 float percent_temp; // 0x1838 int applied; // 0x183c int x1840; // 0x1840 FtDmgLog hit_log; // 0x1844, info regarding the last solid hit FtDmgLog tip_log; // 0x1870, info regarding the last phantom hit float tip_hitlag; // 0x189c, hitlag is stored here during phantom hits @ 8006d774 float tip_force_applied; // 0x18a0, used to check if a tip happened this frame float kb_mag; // 0x18a4 kb magnitude int x18a8; // 0x18a8 int time_since_hit; // 0x18ac in frames float armor_unk; // 0x18b0, is prioritized over the armor below float armor; // 0x18b4, used by yoshi double jump Vec2 vibrate_offset; // 0x18b8 int x18c0; // 0x18c0 int source_ply; // 0x18c4 damage source ply number int x18c8; // 0x18c8 int x18cc; // 0x18cc int x18d0; // 0x18d0 int x18d4; // 0x18d4 int x18d8; // 0x18d8 int x18dc; // 0x18dc int x18e0; // 0x18e0 int x18e4; // 0x18e4 int x18e8; // 0x18e8 u16 atk_instance_hurtby; // 0x18ec. Last Attack Instance This Player Was Hit by, int x18f0; // 0x18f0 int x18f4; // 0x18f4 u8 vibrate_index; // 0x18f8, which dmg vibration values to use u8 x18f9; // 0x18f9 u16 vibrate_timer; // 0x18fa u8 vibrate_index_cur; // 0x18fc, index of the current offset u8 vibrate_offset_num; // 0x18fd, number of different offsets for this dmg vibration index Vec2 ground_slope; // 0x1900 int x1908; // 0x1908 void *random_sfx_table; // 0x190c, contains a ptr to an sfx table when requesting a random sfx int offscreen_damage_timer; // 0x1910, counts up to 60, then player takes 1 percent int x1914; // 0x1914 struct // aka clank { // int dmg_dealt; // 0x1918, float dmg_based_rate_mult; // 0x191c, updated @ 80077aec (when hitting projectile). is equal to 3 + (damageDealt * 0.3) float dir; // 0x1920, direction the rebound/clank occured in } rebound; // int x1924; // 0x1924 int x1928; // 0x1928 int x192c; // 0x192c struct // 0x1930 { // Vec3 pos_prev; // 0x1930 Vec3 pos_cur; // 0x193c } footstool; // int x1948; // 0x1948 int x194c; // 0x194c int x1950; // 0x1950 float x1954; // 0x1954, float hitlag_env_frames; // 0x1958, Environment Hitlag Counter (used for peachs castle switches) float hitlag_frames; // 0x195c float vibrate_mult; // 0x1960 float x1964; // 0x1964 } dmg; // struct jump // 0x1968 { // char jumps_used; // 0x1968 char walljumps_used; // 0x1969 } jump; // float hitlag_mult; // 0x196c int x1970; // 0x1970 GOBJ *item_held; // 0x1974 GOBJ *x1978; // 0x1978 int x197c; // 0x197c GOBJ *item_head; // 0x1980 GOBJ *item_held_spec; // 0x1984, special held item struct hurt // 0x1988 { // int kind_script; // 0x1988, hurtkind set by action script int kind_game; // 0x198c, hurtkind set directly by game code (respawn, ledge, etc) struct // { // int ledge; // 0x1990 int respawn; // 0x1994 } intang_frames; // amount of intangibility frames remaining } hurt; // struct shield // melee only logs the highest damage dealing shield attack for that frame { float health; // 0x1998 float lightshield_amt; // 0x199c int dmg_taken; // 0x19a0, seems to be all damage taken during the frame, is reset at the end of the frame int dmg_taken2; // 0x19a4, idk there so many of these GOBJ *dmg_source; // 0x19a8, points to the entity that hit the shield float hit_direction; // 0x19ac int hit_attr; // 0x19b0, attribute of the hitbox that collided float x19b4; // 0x19b4 float x19b8; // 0x19b8 int dmg_taken3; // 0x19bc, seems to be the most recent amount of damage taken } shield; struct shield_bubble // 0x19c0 { JOBJ *bone; // 0x19c0 unsigned char is_checked : 1; // 0x19d0 0x80. is checked for collision when 0 Vec3 pos; // 19d4 Vec3 offset; // 0x19d4 float size_mult; // 0x19e0 } shield_bubble; struct reflect_bubble // 0x19e4 { JOBJ *bone; // 0x19e4 unsigned char is_checked : 1; // 0x19d0 0x80. is checked for collision when 0 Vec3 pos; // 0x19d4 Vec3 offset; // 0x19f8 float size_mult; // 0x1a04 } reflect_bubble; struct absorb_bubble // 0x1a08 { JOBJ *bone; // 0x1a08 unsigned char is_checked : 1; // 0x1a0c 0x80. is checked for collision when 0 Vec3 pos; // 0x1a10 Vec3 offset; // 0x1a1c float size_mult; // 0x1a28 } absorb_bubble; struct reflect_hit // 0x1a2c { // float hit_direction; // 0x1a2c int max_dmg; // 0x1a30 float dmg_mult; // 0x1a34 int is_break; // 0x1a38 } reflect_hit; // struct absorb_hit // 0x1a40 { // int x1a3c; // 0x1a3c float hit_direction; // 0x1a40 int dmg_taken; // 0x1a44 int hits_taken; // 0x1a48 } absorb_hit; // struct grab // 0x1a4c { // float grab_timer; // 0x1a4c int x1a50; // 0x1a50 int x1a54; // 0x1a54 GOBJ *victim; // 0x1a58 GOBJ *attacker; // 0x1a5c GOBJ *item; // 0x1a60 int x1a64; // 0x1a64 u16 x1a68; // 0x1a68 u16 vuln; // 0x1a6a int x1a6c; // 0x1a6c int x1a70; // 0x1a70 Vec2 release_pos; // 0x1a74, this is determined when instantiating the player, its actually the offset of XRotN from TopN (800690d0) int x1a7c; // 0x1a7c int x1a80; // 0x1a80 int x1a84; // 0x1a84 } grab; // CPU cpu; // 0x1a88 int x1fe0; // 0x1fe0 int x1fe4; // 0x1fe4 int x1fe8; // 0x1fe8 int x1fec; // 0x1fec int x1ff0; // 0x1ff0 int x1ff4; // 0x1ff4 int x1ff8; // 0x1ff8 int x1ffc; // 0x1ffc int x2000; // 0x2000 int x2004; // 0x2004 int x2008; // 0x2008 int x200c; // 0x200c int x2010; // 0x2010 int x2014; // 0x2014 int x2018; // 0x2018 int x201c; // 0x201c int x2020; // 0x2020 int x2024; // 0x2024 int metal_timer; // 0x2028 int metal_health; // 0x202c int x2030; // 0x2030 int x2034; // 0x2034 int x2038; // 0x2038 int x203c; // 0x203c int x2040; // 0x2040 int x2044; // 0x2044 int x2048; // 0x2048 int x204c; // 0x204c int x2050; // 0x2050 int x2054; // 0x2054 int x2058; // 0x2058 int x205c; // 0x205c int x2060; // 0x2060 int ledge_cooldown; // 0x2064 int atk_kind; // 0x2068, non attacks have id 1 int x206c; // 0x206c u8 x2070; // 0x2070 u8 state_kind : 4; // 0x2071, 0xf0 u8 x2071_x0f : 4; // 0x2071, 0x0f u8 x2072; // 0x2072 u8 x2073; // 0x2073 int x2074; // 0x2074, this is the start of some struct... present in items as well @ 0xd94 int x2078; // 0x2078 int x207c; // 0x207c int x2080; // 0x2080 int x2084; // 0x2084 u16 atk_instance; // 0x2088, Contains an ID unique to the current move instance. e.g, if two dairs are done back to back, this ID will differ to tell them apart from each other. It is stored to 0x18EC of the victim upon colliding with someone. int x208c; // 0x208c u16 combo_count; // 0x2090 u16 x2092; // 0x2092 GOBJ *victim; // 0x2094 u16 x2098; // 0x2098 u16 is_hide_player_indicator; // 0x209a int x209c; // 0x209c JOBJ *accessory; // 0x20a0 int x20a4; // 0x20a4 void *shadow; // 0x20a8, ASSERTS @ 8037f7b8, describes multiple struct members int x20ac; // 0x20ac struct afterimage // { // struct FtAfterImageKey key[3]; // 0x20b0 float afterimage_bottom; // 0x20f8 float afterimage_top; // 0x20fc u8 afterimage_state; // 0x2100 unsigned char afterimage_num : 7; // 0x2101 } afterimage; // int x2104; // 0x2104 int x2108; // 0x2108 struct // 0x210c { // s8 timer; // 0x210c, Set to 0 when contact with a wall (other conditions necessary) float direction; // 0x2110 } wall; // struct smash // 0x2114 { // int state; // 0x2114 0 = none, 1 = pre-charge, 2 = charging, 3 = release int frame; // 0x2118 number of frames fighter has charged for float hold_frame; // 0x211c frame that charge begins/ends float dmg_mult; // 0x2120 damage multiplier float speed_mult; // 0x2124 speed multiplier? int x2128; // 0x2128 int x212c; // 0x212c int is_sfx_played; // 0x2130 bool for smash sfx? u8 vibrate_frame; // 0x2134 u8 x22135; // 0x2135 float since_hitbox; // 0x2138 } smash; // int x213c; // 0x213c int x2140; // 0x2140 int x2144; // 0x2144 int x2148; // 0x2148 int x214c; // 0x214c int x2150; // 0x2150 int x2154; // 0x2154 int x2158; // 0x2158 int x215c; // 0x215c int x2160; // 0x2160 int x2164; // 0x2164 int x2168; // 0x2168 int x216c; // 0x216c int x2170; // 0x2170 Vec3 thrown_origin; // 0x2174, offset of child from parent, used for placing the child when the grab breaks int x2180; // 0x2180 int x2184; // 0x2184 int screen_pixel_x; // 0x2188, current pixel the fighter occupies on screen int screen_pixel_y; // 0x218c, current pixel the fighter occupies on screen struct cb { void (*OnGrabFighter_Self)(GOBJ *fighter); // 0x2190 void (*x2194)(GOBJ *fighter); // 0x2194, i think this is on grabbed items void (*OnGrabFighter_Victim)(GOBJ *victim, GOBJ *self); // 0x2198 int (*IASA)(GOBJ *fighter); // 0x219C void (*Anim)(GOBJ *fighter); // 0x21A0 void (*Phys)(GOBJ *fighter); // 0x21a4 void (*Coll)(GOBJ *fighter); // 0x21a8 void (*Cam)(GOBJ *fighter); // 0x21ac void (*Accessory1)(GOBJ *fighter); // 0x21b0 void (*Accessory_Persist)(GOBJ *fighter); // 0x21b4, persists across states while the fighter is alive, death clears this ptr, so re-init on Respawn cb. phys position is copied to tonp and fighter jobj matrices are updated after this cb runs void (*Accessory_Freeze)(GOBJ *fighter); // 0x21b8, only runs during hitlag void (*Accessory4)(GOBJ *fighter); // 0x21bc void (*OnGiveDamage)(GOBJ *fighter); // 0x21c0 void (*OnShieldHit)(GOBJ *fighter); // 0x21c4 void (*OnReflectHit)(GOBJ *fighter); // 0x21c8 void (*x21cc)(GOBJ *fighter); // 0x21cc void (*EveryHitlag)(GOBJ *fighter); // 0x21d0 void (*EnterHitlag)(GOBJ *fighter); // 0x21d4 void (*ExitHitlag)(GOBJ *fighter); // 0x21d8 void (*OnTakeDamage)(GOBJ *fighter); // 0x21dc void (*OnDeath_Persist)(GOBJ *fighter); // 0x21e0 void (*OnDeath_State)(GOBJ *fighter); // 0x21e4, internally Dead_Proc as evidenced by 800f5430 void (*OnDeath3)(GOBJ *fighter); // 0x21e8 void (*OnStateChange)(GOBJ *fighter); // 0x21ec void (*OnTakeDamage2)(GOBJ *fighter); // 0x21f0 void (*OnHurtboxDetect)(GOBJ *fighter); // 0x21f4 void (*OnSpin)(GOBJ *fighter); // 0x21f8 } cb; unsigned char x21fc_1 : 1; // 0x80 - x21fc_ unsigned char show_center_sphere : 1; // 0x40 - x21fc_ unsigned char show_item_pickup : 1; // 0x20 - x21fc_ unsigned char show_cpu_ai : 1; // 0x10 - x21fc_ unsigned char show_footstool : 1; // 0x8 - x21fc_ unsigned char show_dynamics : 1; // 0x4 - x21fc_ unsigned char show_hit : 1; // 0x2 - x21fc_ unsigned char show_model : 1; // 0x1 - x21fc_ struct ftcmd_var // 0x2200 { // int flag0; // 0x2200 int flag1; // 0x2204 int flag2; // 0x2208 int flag3; // 0x220C } ftcmd_var; // struct flags // 0x2210 { // unsigned char throw_1 : 1; // 0x80 - x2210 unsigned char throw_2 : 1; // 0x40 - x2210 unsigned char throw_3 : 1; // 0x20 - x2210 unsigned char throw_release : 1; // 0x10 - x2210. also used to change users direction during aerial attacks unsigned char throw_turn : 1; // 0x8 - x2210 unsigned char throw_6 : 1; // 0x4 - x2210 unsigned char throw_7 : 1; // 0x2 - x2210 unsigned char throw_8 : 1; // 0x1 - x2210 char x2211; // x2211 char x2212; // x2212 char x2213; // x2213 // float throw_timerval; // 0x2214 - equal to script_event_timer of the attacker char x2214; // x2214 char x2215; // x2215 unsigned char x2216_x80 : 1; // 0x80 - x2216 unsigned char x2216_x40 : 1; // 0x40 - x2216 unsigned char is_throwing : 1; // 0x20 - x2216 unsigned char x2216_x10 : 1; // 0x10 - x2216. also used to change users direction during aerial attacks unsigned char x2216_x08 : 1; // 0x8 - x2216 unsigned char x2216_x04 : 1; // 0x4 - x2216 unsigned char x2216_x02 : 1; // 0x2 - x2216 unsigned char x2216_x01 : 1; // 0x1 - x2216 char x2217; // x2217 unsigned char past_iasa : 1; // 0x80 - x2218 unsigned char x2218_2 : 1; // 0x40 - x2218 unsigned char has_rapid_jab : 1; // 0x20 - x2218 unsigned char reflect_enable : 1; // 0x10 - x2218 unsigned char reflect_nochangeowner : 1; // 0x8 - x2218 unsigned char x2218_6 : 1; // 0x4 - x2218 unsigned char absorb_enable : 1; // 0x2 - x2218 unsigned char absorb_unk : 1; // 0x1 - x2218 unsigned char persistent_gfx : 1; // 0x80 is shielding bool. 0x80 - 0x2219 unsigned char immune : 1; // 0x40 - 0x2219, will skip all hit collision logic when raised (8006cbbc) unsigned char is_ignore_death : 1; // 0x20 - 0x2219 unsigned char hitbox_active : 1; // 0x10 - 0x2219 unsigned char x2219_5 : 1; // 0x8 - 0x2219 unsigned char freeze : 1; // 0x4 - 0x2219 unsigned char hitlag_unk : 1; // 0x2 - 0x2219 unsigned char hitlag_unk2 : 1; // 0x1 - 0x2219 unsigned char x221a_1 : 1; // 0x80 - 0x221a unsigned char x221a_2 : 1; // 0x40 - 0x221a unsigned char hitlag : 1; // 0x20 - 0x221a unsigned char hitlag_victim : 1; // 0x10 - 0x221a unsigned char is_fastfall : 1; // 0x8 - 0x221a unsigned char no_hurt_script : 1; // 0x4 - 0x221a unsigned char x221a_7 : 1; // 0x2 - 0x221a unsigned char gfx_persist : 1; // 0x1 - 0x221a unsigned char shield_enable : 1; // 0x80 - 0x221b unsigned char shield_x40 : 1; // 0x40 - 0x221b unsigned char shield_x20 : 1; // 0x20 - 0x221b unsigned char shield_x10 : 1; // 0x10 - 0x221b unsigned char shield_x8 : 1; // 0x8 - 0x221b unsigned char x221b_grab : 1; // 0x4 - 0x221b, is checked at 80079304, skips some logic unsigned char x221b_7 : 1; // 0x2 - 0x221b unsigned char attacker_attached_to_victim : 1; // 0x1 - 0x221b, used for determining which player the anchor is during throw release unsigned char hit_by_grabber : 1; // 0x80 - 0x221c, is enabled when grab victim is being hit by its grabbers hitbox, signals no damage state for this frame (still grabbed) (set @ 8007a6ec, checked @ 8008edfc) unsigned char x221c_2 : 1; // 0x40 - 0x221c unsigned char is_powershield : 1; // 0x20 - 0x221c unsigned char x221c_4 : 1; // 0x10 - 0x221c unsigned char x221c_5 : 1; // 0x8 - 0x221c unsigned char x221c_6 : 1; // 0x4 - 0x221c unsigned char hitstun : 1; // 0x2 - 0x221c unsigned char ik_orientation : 1; // 0x1 = 0x221c unsigned char ik_rfoot : 1; // 0x80 - 0x221d unsigned char ik_lfoot : 1; // 0x40 - 0x221d unsigned char ftvis_reqrevert : 1; // 0x20 - 0x221d, request all ftvis revert to default next state change unsigned char input_enable : 1; // 0x10 - 0x221d unsigned char x221d_5 : 1; // 0x8 - 0x221d unsigned char nudge_disable : 1; // 0x4 - 0x221d unsigned char ground_ignore : 1; // 0x2 - 0x221d unsigned char x221d_8 : 1; // 0x1 - 0x221d unsigned char invisible : 1; // 0x80 - 0x221e unsigned char x221e_2 : 1; // 0x40 - 0x221e unsigned char x221e_3 : 1; // 0x20 - 0x221e unsigned char item_visible : 1; // 0x10 - 0x221e unsigned char item_head_visible : 1; // 0x8 - 0x221e, head items are visible when this is enabled unsigned char invisible_script : 1; // 0x4 - 0x221e unsigned char x221e_7 : 1; // 0x2 - 0x221e unsigned char x221e_8 : 1; // 0x1 - 0x221e unsigned char is_offscreen : 1; // 0x80 - 0x221f unsigned char dead : 1; // 0x40 - 0x221f unsigned char x221f_3 : 1; // 0x20 - 0x221f, hides player indicator unsigned char sleep : 1; // 0x10 - 0x221f unsigned char ms : 1; // 0x08 - 0x221f, ms = master/slave. is 1 when the player is a slave unsigned char x221f_6 : 1; unsigned char x221f_7 : 1; unsigned char x221f_8 : 1; char can_input_multijump; // 0x2220 char flags_2221; // 0x2221 unsigned char x2222_1 : 1; // 0x80 - 0x2222 unsigned char is_multijump : 1; // 0x40 - 0x2222 unsigned char x2222_grab : 1; // 0x20 - 0x2222 unsigned char ceilko_nokb : 1; // 0x10 - 0x2222, allow death off top without any Y KB unsigned char x2222_5 : 1; // 0x08 - 0x2222 unsigned char has_follower : 1; // 0x04 - 0x2222, this makes the subcharacter enter sleep when the main char dies unsigned char x2222_skip_phys_update : 1; // 0x02 - 0x2222 unsigned char x2222_8 : 1; // 0x01 - 0x2222 unsigned char x2223_1 : 1; // 0x80 - 0x2223 unsigned char x2223_2 : 1; // 0x40 - 0x2223 unsigned char x2223_3 : 1; // 0x20 - 0x2223 unsigned char x2223_4 : 1; // 0x10 - 0x2223 unsigned char x2223_5 : 1; // 0x8 - 0x2223 unsigned char x2223_6 : 1; // 0x4 - 0x2223, footstool related? checked @ 800808dc unsigned char is_always_metal : 1; // 0x2 - 0x2223 unsigned char is_metal : 1; // 0x1 - 0x2223 unsigned char x2224_1 : 1; // 0x80 - 0x2224 unsigned char x2224_2 : 1; // 0x40 - 0x2224 unsigned char stamina_dead : 1; // 0x20 - 0x2224 unsigned char x2224_4 : 1; // 0x10 - 0x2224 unsigned char x2224_5 : 1; // 0x8 - 0x2224 unsigned char x2224_6 : 1; // 0x4 - 0x2224 unsigned char x2224_7 : 1; // 0x2 - 0x2224 unsigned char can_walljump : 1; // 0x1 - 0x2224 unsigned char x2225_1 : 1; // 0x80 - 0x2225 unsigned char x2225_2 : 1; // 0x40 - 0x2225 unsigned char has_model_addition : 1; // 0x20 - 0x2225 bool for if fighter has a model addition, like kirby copy ability and puff hat unsigned char x2225_4 : 1; // 0x10 - 0x2225 unsigned char x2225_5 : 1; // 0x8 - 0x2225 unsigned char x2225_6 : 1; // 0x4 - 0x2225 unsigned char is_mute_voice : 1; // 0x2 - 0x2225 unsigned char is_stamina : 1; // 0x1 - 0x2225 unsigned char x2226_1 : 1; // 0x80 - 0x2226 unsigned char x2226_2 : 1; // 0x40 - 0x2226 unsigned char is_robj_child : 1; // 0x20 - 0x2226, might actually be for skipping grab collision unsigned char x2226_x10 : 1; // 0x10 - 0x2226 unsigned char cloak1 : 1; // 0x8 - 0x2226 unsigned char cloak2 : 1; // 0x4 - 0x2226 unsigned char x2226_7 : 1; // 0x2 - 0x2226 unsigned char x2226_8 : 1; // 0x1 - 0x2226 char flags_2227; // 0x2227 char x2228_1 : 1; // 0x80 - 0x2228 char x2228_2 : 1; // 0x40 - 0x2228 char use_sandbag_logic : 1; // 0x20 - 0x2228, only sandbag uses this! ignores death and forces missed tech @ 80097d58 char x2228_4 : 1; // 0x10 - 0x2228 char x2228_5 : 1; // 0x08 - 0x2228 char is_ignore_death3 : 1; // 0x04 - 0x2228 char used_tether : 1; // 0x02 - 0x2228 char last_lstick_x_dir: 1; // 0x01 - 0x2228, last stick x direction outside of deadzone. 1 to right, 0 to left. unsigned char x2229_1 : 1; // 0x80 - 0x2229 unsigned char x2229_2 : 1; // 0x40 - 0x2229 unsigned char x2229_3 : 1; // 0x20 - 0x2229 unsigned char is_ignore_offscreen : 1; // 0x10 - 0x2229 unsigned char skip_coin_collcheck : 1; // 0x8 - 0x2229, this is toggled every frame, checks half of the players every frame to save on cpu unsigned char x2229_6 : 1; // 0x4 - 0x2229 unsigned char x2229_7 : 1; // 0x2 - 0x2229 unsigned char no_reaction_always : 1; // 0x1 - 0x2229 unsigned char x222a_x80 : 1; // 0x80 - 0x222a unsigned char is_ignore_death2 : 1; // 0x40 - 0x222a unsigned char x222a_x20 : 1; // 0x20 - 0x222a unsigned char x222a_x10 : 1; // 0x10 - 0x222a unsigned char x222a_x08 : 1; // 0x08 - 0x222a unsigned char x222a_x04 : 1; // 0x04 - 0x222a unsigned char x222a_x02 : 1; // 0x02 - 0x222a unsigned char x222a_x01 : 1; // 0x01 - 0x222a char flags_222B; // 0x222B } flags; // struct fighter_var // 0x222c { // int ft_var1; // 0x222c int ft_var2; // 0x2230 int ft_var3; // 0x2234 int ft_var4; // 0x2238 int ft_var5; // 0x223c int ft_var6; // 0x2240 int ft_var7; // 0x2244 int ft_var8; // 0x2248 int ft_var9; // 0x224c int ft_var10; // 0x2250 int ft_var11; // 0x2254 int ft_var12; // 0x2258 int ft_var13; // 0x225c int ft_var14; // 0x2260 int ft_var15; // 0x2264 int ft_var16; // 0x2268 int ft_var17; // 0x226c int ft_var18; // 0x2270 int ft_var19; // 0x2274 int ft_var20; // 0x2278 int ft_var21; // 0x227c int ft_var22; // 0x2280 int ft_var23; // 0x2284 int ft_var24; // 0x2288 int ft_var25; // 0x228c int ft_var26; // 0x2290 int ft_var27; // 0x2294 int ft_var28; // 0x2298 int ft_var29; // 0x229c int ft_var30; // 0x22a0 int ft_var31; // 0x22a4 int ft_var32; // 0x22a8 int ft_var33; // 0x22ac int ft_var34; // 0x22b0 int ft_var35; // 0x22b4 int ft_var36; // 0x22b8 int ft_var37; // 0x22bc int ft_var38; // 0x22c0 int ft_var39; // 0x22c4 int ft_var40; // 0x22c8 int ft_var41; // 0x22cc int ft_var42; // 0x22d0 int ft_var43; // 0x22d4 int ft_var44; // 0x22d8 int ft_var45; // 0x22dc int ft_var46; // 0x22e0 int ft_var47; // 0x22e4 int ft_var48; // 0x22e8 int ft_var49; // 0x22ec int ft_var50; // 0x22f0 int ft_var51; // 0x22f4 int ft_var52; // 0x22f8 } fighter_var; int x22fc; // 0x22fc int x2300; // 0x2300 int x2304; // 0x2304 int x2308; // 0x2308 int x230c; // 0x230c u16 x2310; // 0x2310 u16 x2312; // 0x2312 float x2314; // 0x2314 float x2318; // 0x2318 float x231c; // 0x231c int x2320; // 0x2320 int stage_internal; // 0x2324 so stupid, used for decrementing hazard immunity int line_damage_immunity; // 0x2328, frames in which fighter is immune to line damage int ftchkdevice_immunity; // 0x232c, frames in which fighter is immune to chkdevice damage (brinstar lava) int x2330; // 0x2330 int x2334; // 0x2334 int x2338; // 0x2338 int x233c; // 0x233c struct state_var // 0x2340 { // int state_var1; // 0x2340 int state_var2; // 0x2344 int state_var3; // 0x2348 int state_var4; // 0x234c int state_var5; // 0x2350 int state_var6; // 0x2354 int state_var7; // 0x2358 int state_var8; // 0x235c int state_var9; // 0x2360 int state_var10; // 0x2364 int state_var11; // 0x2368 int state_var12; // 0x236c int state_var13; // 0x2370 int state_var14; // 0x2374 int state_var15; // 0x2378 int state_var16; // 0x237c int state_var17; // 0x2380 int state_var18; // 0x2384 } state_var; // int x2388; // 0x2388 int x238c; // 0x238c int x2390; // 0x2390 int x2394; // 0x2394 int x2398; // 0x2398 int x239c; // 0x239c int x23a0; // 0x23a0 int x23a4; // 0x23a4 int x23a8; // 0x23a8 int x23ac; // 0x23ac int x23b0; // 0x23b0 int x23b4; // 0x23b4 int x23b8; // 0x23b8 int x23bc; // 0x23bc int x23c0; // 0x23c0 int x23c4; // 0x23c4 int x23c8; // 0x23c8 int x23cc; // 0x23cc int x23d0; // 0x23d0 int x23d4; // 0x23d4 int x23d8; // 0x23d8 int x23dc; // 0x23dc int x23e0; // 0x23e0 int x23e4; // 0x23e4 int x23e8; // 0x23e8 // The following structs are extensions to the vanilla FighterData struct // to help modding. The upstream m-ex repo has added more fields here, // but for now it will stay the same to avoid breaking delicate ASM code in // strange ways. It should be possible to add to the end of the TM struct // without breaking things. Any future changes to these structs must be // reflected in ASM/m-ex/Header.s: // - Add a symbol for the new field at the bottom: '.set YOUR_SYMBOL, PREV_SYMBOL + sizeof(PREV_SYMBOL)' // - Change the size of the struct in the 'Fighter Data Sizes' section // // the per frame data in struct TM is updated in // ASM/training-mode/Onscreen Display/Additional Playerblock Variables/StatesAndTimers/ struct MEX // 0x23ec { // int anim_owner; // 0x23ec GOBJ *kb_abilitysource; // 0x23f0 u8 ucf_stick_x[3]; // 0x23f4 } MEX; // struct TM // 0x23f8 { // s16 state_frame; // 0x23f8, how many frames the player has been in this state s16 shield_frame; // 0x23fa, how many frames the player has been shielding u16 state_prev[6]; // 0x23fc, u16 state_prev_frames[6]; // 0x2408, u16 last_move_hurt; // 0x2414, Previous Move Instance Hit By u16 vuln_frames; // 0x2416, how many frames the fighter has been vulnerable u16 can_fastfall_frames; // 0x2418, how many frames the fighter has been able to fast fall u16 iasa_frames; // 0x241a, Aitch: added this for use in lab overlays int post_hitstun_frames; // 0x241c, frames fighter has been out of hitstun GOBJ *fighter_hurt_shield; // 0x2420, pointer to the fighter who's shield this fighter hit void *cb_anim; // 0x2424, additional animation callback union { struct { float airdodge_angle; u32 hop_type; } wavedash; struct { u16 successful_sdi_inputs; u16 total_sdi_inputs; } sdi; } tm_union; // 0x2428 struct { u16 buttons; // use HSD_BUTTON_* to lookup s8 stick_x; s8 stick_y; s8 cstick_x; s8 cstick_y; u8 ltrigger; u8 rtrigger; } inputs[32]; // 0x2430 } TM; }; struct FtMultiJumpDesc // exists in fighters special attributes { int turn_frames; // turn frame length float turn_stick_x_min; // min x value on left stick to trigger aerial turn float vel_stick_x_mult; // jump x velocity = left stick x * this float aerial_drift_stick_mult_mult; // 0xC, multipler for the value in the fighter attribute float aerial_drift_max_mult; // 0x10, multipler for the value in the fighter attribute float jump_vel_y[5]; // 0x14 subsequemt jumps Y velocities int jump_num; // 0x28, number of total aerial jumps int jump_state_start; // 0x2C, state index for first aerial jump int x30; // 0x30, }; struct FtParts // is in the fighter data { int num; // 0x2240 DOBJ **dobj; // 0x2244 array of dobjs for the ftpar void *x8; // 0x2248 void *xc; // 0x224C }; struct FtPartsDesc { int model_num; // 0x2250 FtPartsLookup *lookups; }; struct FtPartsLookup { FtParts *x0; void *x4; void *x8; void *xc; void *x10; }; struct FtPartsVis // is in the fighter data { int num; // 0x0 u8 x4[5]; // 0x4 array of bools? FtPartsVisLookup *highpoly_table; // 0x0C FtPartsVisLookup *lowpoly_table; // 0x10 FtPartsVisLookup *metalpoly_table; // 0x14 FtPartsVisLookup *metalmain_table; // 0x18 FtPartsVisLookup *x1C; // 0x1C }; struct FtSymbolLookup { FtSymbols *archives; u8 num; }; struct FtSymbols { JOBJ *joint; // 0x0 void *matanim_joint; // 0x4 void *x8; // 0x8 void *xc; // 0xc void *x10; // 0x10 HSD_Archive *costume; // 0x14 }; struct FtDatNameLookup { char *filename; char *symbol; }; struct FtKindDesc // this is really CKindDesc...? { s8 ft_main; // main fighter ft_kind s8 ft_sub; // sub fighter ft_kind, -1 if none s8 no_spawn_together; // }; /** State Structs **/ struct FtCliffCatch { int ledge_index; float fall_timer; int timer; }; struct FtDamage { float hitstun; // 0x2340 int x2344; int x2348; int x234c; int x2350; float x2354; u8 x2358; u8 hit_env_kind; // 0x2359, 0 = none, 1 = ground 2 = wall, 3 = ceiling u8 is_meteor; // 0x235a u8 meteor_lockout; // 0x235b }; struct FtLanding { int can_interrupt; // 0x2340 }; struct FtDead { int timer; }; struct FtEntry { int delay_frames; }; /** Script Structs **/ struct FtScript { unsigned opcode : 6; union { struct { unsigned frames : 26; } timer_sync; // 2 struct { unsigned frame : 26; } timer_async; // 3 struct { unsigned bone : 8; unsigned use_common_bone_id : 1; unsigned destroy_on_state_change : 1; unsigned unk1 : 16; unsigned id : 16; unsigned unk2 : 16; unsigned offset_z : 16; unsigned offset_y : 16; unsigned offset_x : 16; unsigned range_z : 16; unsigned range_y : 16; unsigned range_x : 16; } gfx; // 10 struct { unsigned id : 3; unsigned hit_group : 3; unsigned only_hit_grabbed_fighter : 1; unsigned bone : 8; unsigned use_common_bone_id : 1; unsigned dmg : 10; unsigned size : 16; unsigned offset_z : 16; unsigned offset_y : 16; unsigned offset_x : 16; unsigned angle : 9; unsigned kb_growth : 9; unsigned wdsk : 9; unsigned is_hit_items : 1; unsigned ignore_thrown_fighter : 1; unsigned ignore_fighter_scale : 1; unsigned clank_pri : 2; unsigned base_kb : 9; unsigned attribute : 5; unsigned shield_dmg : 8; unsigned hit_sfx_severity : 3; // weak, moderate, strong unsigned hit_sfx_kind : 5; // none, punch, kick, sword, coin, bat, fan, elec, fire, yoshi chew, shell hit, energy, peach item, ice unsigned is_hit_grounded_fighter : 1; unsigned is_hit_aerial_fighter : 1; } hit; // 11 struct { unsigned id : 3; unsigned dmg : 23; } hit_update_dmg; // 12 struct { unsigned id : 3; unsigned size : 23; } hit_update_size; // 13 struct { unsigned id : 26; } hit_clear; // 15 struct { unsigned null : 26; } hit_clear_all; // 16 struct { unsigned behavior : 8; unsigned unk : 18; unsigned id : 32; unsigned unk2 : 16; // padding? unsigned volume : 8; unsigned pan : 8; } sfx; // 17 struct { unsigned kind : 26; // 0 = normal, 1 = invuln, 2 = intang } vuln; // 26 struct { unsigned do_second : 1; unsigned mat_index1 : 7; unsigned mat_index2 : 7; unsigned mat_frame : 11; } eye; // 40 struct { unsigned flag : 1; unsigned value1 : 12; unsigned value2 : 13; } rumble; // 43 struct { unsigned id : 8; unsigned time : 18; } colanimapply; // 46 struct { unsigned unk : 26; } ik; // 52 } __attribute__((__packed__)) u; } __attribute__((__packed__)); /* struct FtScriptTimerSync { unsigned opcode : 6; unsigned time : 26; }; // 2 struct FtScriptTimerAsync { unsigned opcode : 6; unsigned time : 26; }; // 3 struct FtScriptGFX { unsigned opcode : 6; unsigned bone : 8; unsigned use_common_bone_id : 1; unsigned destroy_on_state_change : 1; unsigned unk1 : 16; unsigned id : 16; unsigned unk2 : 16; unsigned offset_z : 16; unsigned offset_y : 16; unsigned offset_x : 16; unsigned range_z : 16; unsigned range_y : 16; unsigned range_x : 16; }; // 10 struct FtScriptHit { unsigned opcode : 6; unsigned id : 3; unsigned hit_group : 3; unsigned only_hit_grabbed_fighter : 1; unsigned bone : 8; unsigned use_common_bone_id : 1; unsigned dmg : 10; unsigned size : 16; unsigned offset_z : 16; unsigned offset_y : 16; unsigned offset_x : 16; unsigned angle : 9; unsigned kb_growth : 9; unsigned wdsk : 9; unsigned is_hit_items : 1; unsigned ignore_thrown_fighter : 1; unsigned ignore_fighter_scale : 1; unsigned clank_pri : 2; unsigned base_kb : 9; unsigned element : 5; unsigned shield_dmg : 8; unsigned hit_sfx_severity : 3; // weak, moderate, strong unsigned hit_sfx_kind : 5; // none, punch, kick, sword, coin, bat, fan, elec, fire, yoshi chew, shell hit, energy, peach item, ice unsigned is_hit_grounded_fighter : 1; unsigned is_hit_aerial_fighter : 1; }; // 11 struct FtScriptHitClear { unsigned opcode : 6; unsigned null : 26; }; // 16 struct FtScriptSFX { unsigned opcode : 6; unsigned behavior : 8; unsigned unk : 18; unsigned id : 32; unsigned unk2 : 16; // padding? unsigned volume : 8; unsigned pan : 8; }; // 17 struct FtScriptVuln { unsigned opcode : 6; unsigned kind : 26; // 0 = normal, 1 = invuln, 2 = intang }; // 26 struct FtScriptEye { unsigned opcode : 6; unsigned do_second : 1; unsigned mat_index1 : 7; unsigned mat_index2 : 7; unsigned mat_frame : 11; }; // 40 struct FtScriptRumble { unsigned opcode : 6; unsigned flag : 1; unsigned value1 : 12; unsigned value2 : 13; }; // 43 struct FtScriptColAnimApply { unsigned opcode : 6; unsigned id : 8; unsigned time : 18; }; // 46 struct FtScriptIK { unsigned opcode : 6; unsigned unk : 26; }; // 52 */ /** Static Variables **/ static ftCommonBone ***stc_ftbone = R13_OFFSET(-0x515C); static ftCommonData **stc_ftcommon = R13_OFFSET(-0x514C); static ColAnimDesc **stc_plco_colanimdesc = (void *)0x804D653C; static GXColor **stc_shieldcolors = R13_OFFSET(-0x5194); static FtDmgVibrateDesc **stc_dmg_vibrate_desc = R13_OFFSET(-0x5170); static int *stc_ft_hitlog = R13_OFFSET(-0x5148); // used as semi-local variables remembering if a solid hit occured @ 8006cbc4 static int *stc_ft_tiplog = R13_OFFSET(-0x5144); // used as semi-local variables remembering if a tip hit occured @ 8006cbc4 /*** Functions ***/ GOBJ *Fighter_Create(PlayerData *pd); GOBJ *Fighter_Create2(PlayerData *pd); void Fighter_EnterAerial(GOBJ *fighter, int aerialState); void ActionStateChange(float startFrame, float animSpeed, float animBlend, GOBJ *fighter, int stateID, int flags1, GOBJ *alt_state_source); void FrameSpeedChange(GOBJ *f, float speed); void Fighter_UpdateAnim(GOBJ *f); // 8006a360 void Fighter_UpdateIASA(GOBJ *f); // 8006ad10 void Fighter_UpdatePhys(GOBJ *f); // 8006b82c void Fighter_UpdateEnvColl(GOBJ *f); // 8006c27c void Fighter_UpdateAccessory(GOBJ *f); // 8006c624 void Fighter_UpdateGFX(GOBJ *f); // 8006c80c void Fighter_UpdateAllHitboxPos(GOBJ *f); void Fighter_UpdateBonePos(FighterData *fighter_data, int unk); void Fighter_SubactionFastForward(GOBJ *fighter); FtAction *Fighter_GetFtAction(FighterData *fighter, int action_id); // returns the desired ft action entry stored in the dat file Figatree *Fighter_GetAnimData(FighterData *fighter, int action_id); // this will request the anim data from the AJ file in ARAM and overwrite the current animation! float Fighter_GetAnimLength(Figatree *ft_anim); void Fighter_EnterLightThrow(GOBJ *fighter, int stateID); void Fighter_EnterDamageFall(GOBJ *fighter); void Fighter_EnterWait(GOBJ *fighter); void Fighter_EnterAirCatch(GOBJ *fighter); void Fighter_EnterFall(GOBJ *fighter); void Fighter_EnterFallAerial(GOBJ *fighter); void Fighter_EnterSpecialFall(GOBJ *fighter, int can_fastfall, int no_soft_landing, int can_interrupt_landing, float air_drift_multiplier, float landing_frames); void Fighter_EnterLanding(GOBJ *fighter); void Fighter_EnterSpecialLanding(GOBJ *fighter, int unk, float state_length); void Fighter_EnterSleep(GOBJ *fighter, int ms); void Fighter_EnterEntry(GOBJ *fighter); void Fighter_EnterDownBound(GOBJ *f); void Fighter_EnterDownWait(GOBJ *f); void Fighter_EnterJumpAerial(GOBJ *f); void Fighter_EnterDeadDown(GOBJ *f); void Fighter_EnterDeadUp(GOBJ *f); void Fighter_EnterDeadLeft(GOBJ *f); void Fighter_EnterDeadRight(GOBJ *f); int Fighter_CheckNearbyLedges(GOBJ *fighter); int Fighter_CheckForOtherFighterOnLedge(GOBJ *fighter); void Fighter_EnterCliffCatch(GOBJ *fighter); void Fighter_EnterCliffWait(GOBJ *fighter); void Fighter_EnterCliffJumpSlow2(GOBJ *fighter, float y_velocity); void Fighter_EnterRebirth(GOBJ *fighter); void Fighter_EnterRebirthWait(GOBJ *fighter); void Fighter_UpdateRebirthPlatformPos(GOBJ *fighter); void Fighter_MoveToCliff(GOBJ *fighter); GOBJ *Fighter_GetGObj(int ply); GOBJ *Fighter_GetSubcharGObj(int ply, int ms); Playerblock *Fighter_GetPlayerblock(int ply); void Fighter_Playerblock_UpdateDamage(int ply, int ms, int percent); void Fighter_Playerblock_Init(int ply); void Fighter_Playerblock_ResetStaleMoves(int ply); void Fighter_SetSlotType(int ply, int slot); int Fighter_GetControllerPort(int ply); int Fighter_GetTeam(int ply); int *Fighter_GetStaleMoveTable(int ply); void Fighter_SetInitialPosition(int ply, Vec3 *pos); void Fighter_SetPosition(int ply, int ms, Vec3 *pos); void Fighter_GetPosition(int ply, Vec3 *pos); void Fighter_SetDirection(int ply, float dir); float Fighter_GetDirection(int ply); void Fighter_ApplyIntang(GOBJ *fighter, int duration); int Fighter_GetSlotType(int index); // returns 0x0 for HMN, 0x1 for CPU, 0x2 for Demo, 0x3 for not present int Fighter_GetStocks(int ply); void Fighter_SetStocks(int ply, int stocks); void Fighter_LoseStock(int ply); void Fighter_DeathLogic(GOBJ *f); void Fighter_RunOnDeathCallbacks(GOBJ *f); int Fighter_GetStaminaHP(int ply); void Fighter_SetStaminaHP(int ply, int hp); int Fighter_CheckStaminaMode(int ply); void Fighter_SetStaminaMode(int ply, int is_stamina); void Fighter_SetFallNum(int index, int ms, int falls); int Fighter_GetFallNum(int index, int ms); void Fighter_EnableCollUpdate(FighterData *fighter); void Fighter_EnterDamageState(GOBJ *fighter, int stateID, float new_facing_dir); // new_facing_dir = 0 to use current s8 Fighter_BoneLookup(FighterData *fighter, int boneID); void Fighter_GiveDamage(FighterData *fighter, float damage); void Fighter_GiveHeal(FighterData *fighter, int heal); float Fighter_StaleDamage(FighterData *fighter, float dmg, int atk_kind, int atk_instance); void Fighter_SetHUDDamage(int player, u16 damage); void Fighter_RunOnHitCallbacks(GOBJ *fighter); void Fighter_ExitHitlag(GOBJ *fighter); int FrameTimerCheck(GOBJ *fighter); void Fighter_EnterMiscPassState(float start_frame, GOBJ *fighter, int state, int flags); int Fighter_CollGround_PassLedge(GOBJ *fighter); void Fighter_CollGround_PassLedgeCB(GOBJ *fighter, void *callback); int Fighter_CollGround_StopLedge(GOBJ *fighter); // returns is_grounded void Fighter_CollGround_StopLedge_EnterFall(GOBJ *fighter); int Fighter_CollAir_GrabFacingLedgeWalljump(GOBJ *fighter, void *perFrame, void *onLand); // this will handle entering cliffcatch / walljump. all in one collision func int Fighter_CollAir_GrabBothLedgesWalljump(GOBJ *fighter, void *onLand); // this will handle entering cliffcatch / walljump. all in one collision func int Fighter_CollAir_CheckLedge(GOBJ *fighter, int grab_direction); // this will only check for ledges, you still need to call the cliffcatch/walljump IASA function after void Fighter_CollAir_IgnoreLedge(GOBJ *fighter, void *callback); int Fighter_CollAir_IgnoreLedge_NoCB(GOBJ *fighter); int Fighter_CollAir_SoftLanding(GOBJ *fighter); int Fighter_CollAir_DefineECB(GOBJ *fighter, ECBSize *ecb); int Fighter_Coll_DamageState(GOBJ *fighter); int Fighter_Coll_CheckToPass(GOBJ *fighter, int floor_type); // usually used as a callback, pass = fall through platform int Fighter_IASACheck_CliffCatch(GOBJ *fighter); int Fighter_IASACheck_WallJump(GOBJ *fighter); int Fighter_IASACheck_TechRoll(GOBJ *fighter); int Fighter_IASACheck_TechInPlace(GOBJ *fighter); int Fighter_IASACheck_StaminaDead(GOBJ *fighter); int Fighter_IASACheck_WallTechJump(GOBJ *fighter); int Fighter_IASACheck_CeilingTech(GOBJ *fighter); int Fighter_IASACheck_WallCeilingReflect(GOBJ *fighter); int Fighter_IASACheck_JumpAerial(GOBJ *fighter); int Fighter_IASACheck_JumpF(GOBJ *fighter); int Fighter_IASACheck_PassConditions(GOBJ *fighter); int Fighter_IASACheck_Turn(GOBJ *fighter); int Fighter_IASACheck_AllGrounded(GOBJ *fighter); int Fighter_IASACheck_AllAerial(GOBJ *fighter); void Fighter_PhysGround_ApplyFriction(GOBJ *fighter); void Fighter_PhysGround_ApplyCustomFriction(FighterData *fighter, float friction); void Fighter_PhysGround_ApplyVelocity(GOBJ *fighter); void Fighter_PhysAir_CheckFastfall(FighterData *fighter); void Fighter_PhysAir_ApplyGravityDecayX(GOBJ *); void Fighter_PhysAir_ApplyGravityFastfall(GOBJ *); void Fighter_PhysAir_ApplyGravity(FighterData *fighter, float gravity, float limit); void Fighter_PhysAir_ApplyAerialDrift(FighterData *fighter); void Fighter_PhysAir_ApplyCustomAerialDrift(FighterData *fighter, float unk, float speed, float limit); void Fighter_PhysAir_SetAerialDrift(FighterData *fp, float curr_x_vel, float this_frame_drift, float x_vel_limit, float aerial_friction); // this func name sucks but i just need to link it lol void Fighter_PhysAir_DecayXVelocity(FighterData *fighter, float aerial_friction); void Fighter_PhysAir_LimitXVelocity(FighterData *fighter); void Fighter_Phys_UseAnimYVelocity(GOBJ *fighter); void Fighter_Phys_UseAnimPos(GOBJ *fighter); void Fighter_Phys_UseAnimPosAndStick(GOBJ *fighter); void Fighter_SetGrounded(FighterData *fighter); void Fighter_SetGrounded2(FighterData *fighter); void Fighter_SetAirborne(FighterData *fighter); // locks ecb for 10 frames void Fighter_SetAirborneNoJumps(FighterData *fighter_data); // locks ecb for 5 frames void Fighter_LoseGroundJump(FighterData *fighter_data); void Fighter_KillAllVelocity(GOBJ *fighter); void Fighter_AdvanceScript(GOBJ *fighter); void Fighter_GFXRemoveAll(GOBJ *fighter); void Fighter_EnableReflectUpdate(GOBJ *fighter); void Fighter_CreateReflect(GOBJ *fighter, ReflectDesc *reflect, void *cb_OnReflectHit); float Fighter_GetBoneRotX(FighterData *fighter, int bone); float Fighter_GetBoneRotY(FighterData *fighter, int bone); void Fighter_SetBoneRotX(FighterData *fighter, int bone, float angle); void Fighter_SetBoneRotY(FighterData *fighter, int bone, float angle); void Fighter_SetBoneRotZ(FighterData *fighter, int bone, float angle); void Fighter_PlayPositionalSFX(FighterData *fp, int sfxID, int volume, int balance); void Fighter_PlayVoiceSFX(FighterData *fighter, int sfxID, int volume, int balance); void Fighter_PlayVoiceSFX2(FighterData *fighter, int sfxID, int volume, int balance); void Fighter_DestroyVoiceSFX(FighterData *fighter); void Fighter_ColAnim_Apply(FighterData *fighter_data, int colanim_kind, int unk); // will apply the color_anim specified void Fighter_ColAnim_Remove(FighterData *fighter_data, int colanim_kind); // will remove the color_anim specified void Fighter_ColAnim_Update(GOBJ *fighter); // fighter gobj callback, will step colanim logic forward one frame. (you probably dont need to call this!) void Fighter_DisableBlend(GOBJ *fighter, int animd_id); void Fighter_UpdateDynamics(GOBJ *fighter, u16 *dynamic_struct); void Fighter_ZeroCPUInputs(FighterData *fighter_data); void Fighter_CreateShieldGFX(GOBJ *fighter); void Fighter_UpdateShieldGFX(GOBJ *fighter, float size); int Fighter_GetShieldColorIndex(int ply); int Fighter_GetExternalID(int ply); int Fighter_GetCostumeID(int ply); int Fighter_GetHandicap(int ply); float Fighter_GetBaseScale(FighterData *fighter); void Fighter_SetScale(GOBJ *fighter, float scale); void Fighter_ProcDynamics(GOBJ *fighter); void Fighter_CheckToEnableDynamics(FighterData *fp, u16 *dynamics_data); void Fighter_FreeAllDynamics(FighterData *fighter_data); float Fighter_GetKnockbackAngle(FighterData *fighter_data); void Fighter_UpdateCameraBox(GOBJ *fighter); void Fighter_SetAllHurtboxesNotUpdated(GOBJ *fighter); void Fighter_UpdateHurtboxes(FighterData *fighter_data); void Fighter_UpdateIK(GOBJ *fighter); void Fighter_CPUInitialize(FighterData *fighter_data, int cpu_kind, int cpu_level, int unk); int Fighter_GetCPUKind(int ply); int Fighter_SetCPUKind(int ply, int cpu_kind); int Fighter_GetCPULevel(int ply); int Fighter_SetCPULevel(int ply, int cpu_level); char *Fighter_GetName(int external_id); void Fighter_InitPObj(); void Fighter_InitPObj2(); void Fighter_IndexFtPartsDObjs(GOBJ *fighter, JOBJ *copy_model, FtParts *ftparts); // inits the dobj array in ftpartsmodel void Fighter_InitFtPartsModel(FtPartsDesc *ftpartsdesc, FtPartsVis *unk, int index, FtParts *ftparts, FtParts *ftparts2); int Fighter_CheckUnlocked(int ext_id); void Fighter_UpdateDObjFlags(void *ftparts1, int r4, void *bone_info); void Fighter_UpdateDObjFlags2(void *ftparts1, int r4, void *bone_info); void Fighter_UpdateOnscreenBool(GOBJ *fighter); void Fighter_SetFacingToStickDirection(FighterData *fighter_data); int Fighter_CheckToIgnorePlatform(GOBJ *fighter); int Hitbox_CheckIfPreviouslyHit(void *victim_data, ftHit *hitbox); void Hitbox_SetAsPreviouslyHit(ftHit *hitbox, int unk, void *victim_data); void Fighter_HitboxDisableAll(GOBJ *fighter); int Fighter_CountPlayers(); void Fighter_InitData(GOBJ *f); void Fighter_InitInputs(GOBJ *fighter); void Fighter_InitInputTimers(GOBJ *fighter); void Fighter_BreakGrabUnk(GOBJ *victim); void Fighter_BreakGrab(GOBJ *fighter, GOBJ *victim); void Fighter_InitGrab(FighterData *fighter, int is_enable, void *on_grabber, void *on_item, void *on_victim); void Fighter_SetCharacterFlags(GOBJ *fighter, int, int); void Fighter_GetECBPosition(GOBJ *fighter, Vec3 *position); void Fighter_Phys_AnimationFriction(GOBJ *fighter); void Fighter_CollAir_IgnoreGround(GOBJ *fighter); void Fighter_SetFacingToStickDirection(FighterData *fighter_data); void Fighter_ClampHorizontalVelocity(FighterData *fighter_data, float max_vel); void Fighter_ClampFallSpeed(FighterData *fighter_data, float max_vel); void Fighter_QueueAllowXDrift(FighterData *fighter_data, float unk, float accel, float max_vel); void Fighter_AllowXDrift(FighterData *fighter_data, float unk, float accel, float max_vel); void Fighter_AddClampYPosition(FighterData *fighter_data, float amt, float max); void Fighter_ClampHorizontalGroundVelocity(FighterData *, float); void Fighter_Phys_ApplyVerticalAirFriction(FighterData *fighter_data); void Fighter_GetVisGroupDefault(GOBJ *fighter, int vis_group); void Fighter_SetVisGroupDefault(GOBJ *fighter, int vis_group, s8 index); // sets the default value for this vis group (-1 = hide all) void Fighter_SetVisGroupCurrent(GOBJ *fighter, int vis_group, s8 index); // sets the current active value for this vis group (-1 = hide all) void Fighter_RevertAllVisGroups(GOBJ *fighter); // sets all vis groups to their default values (specified by Fighter_SetVisGroupDefault) void Fighter_HideAllVisGroups(GOBJ *fighter); // hides all dobjs in all vis group (sets default and current to -1) int Fighter_CheckVisible(GOBJ *fighter); void Fighter_GiveItem(GOBJ *fighter, GOBJ *item); void Fighter_ReleaseItemUnk(int ply, int ms, GOBJ *item); void Fighter_InitDamageVibrate(FighterData *fp, int dmg_attr, int dmg, float mult, int pre_hurt_state, int air_state); float Fighter_CalcHitlagFrames(int dmg, int state_id, float mult); void Fighter_LoadAnimation(FighterData *fp, FighterData *fp_source, int anim_id); void Fighter_ApplyAnimation(GOBJ *f, float start_frame, float speed, float blend); void Fighter_UpdateStateFrameInfo(GOBJ *f); void Fighter_ScriptUpdate(GOBJ *f); void Fighter_ScriptFastForward(GOBJ *f); void Fighter_DropCrate(GOBJ *f); void Fighter_GrabBreakCheck(GOBJ *f); void Fighter_ThrownAttach(FighterData *anchor_data, FighterData *attachee_data); void Fighter_ThrownRelease_UpdateUnk(GOBJ *thrower, GOBJ *victim); void Fighter_ThrownRelease_NoUpdateUnk(GOBJ *thrower, GOBJ *victim); void Fighter_ThrownRelease(GOBJ *thrower, GOBJ *victim, int is_update_unk); void Fighter_ThrownApplyKnockback(GOBJ *victim, GOBJ *hit_exception, int is_enter_dmgflytop); void Fighter_ThrownApplyKnockbackNoTDI(GOBJ *victim, float frame); void Fighter_AddStaleIncCombo(GOBJ *thrower, GOBJ *victim, float dmg); // 8007891c void Fighter_SetAllHurtboxState(GOBJ *f, int state); // 8007b0c0 void Fighter_SetHurtboxState(GOBJ *f, int bone_index, int state); // 8007b128 void Fighter_SetScriptHurtStatus(GOBJ *f, int state); // 8007b62c int Fighter_GetIntangibleFrames(GOBJ *f); // 8007b868 void Fighter_IncPercent(GOBJ *f, float *dmg); // 80076640 float Fighter_KnockbackCalculate(float match_dmg_ratio, float ft_attk_ratio, float ft_def_ratio, float unk, FighterData *fp, ftHit *hit, int dmg); float Fighter_GetAttackRatio(int ply); // 800338f4 float Fighter_GetDefenseRatio(int ply); // 800339e0 void Fighter_SetDamageSource(GOBJ *attacker, GOBJ *victim, float *dmg_direction); // 80078710 void Fighter_SetDamageSourceGrab(GOBJ *attacker, GOBJ *victim, int unk); // 80078754 void Fighter_DamageRumble(FighterData *fp, int dmg); // 8007ee0c void Fighter_RumbleExecute(FighterData *fp, int strength, int unk); void Fighter_CheckKnockbackModifiers(FighterData *fp); // 8008d930 int Fighter_GetCurrentPlacing(int ply); void Fighter_StoreGrabBreakout(FighterData *fp, int flag, float amt); int Fighter_CheckGrabBreakout(FighterData *fp, float mash_amt); // returns 1 if inputted something void Fighter_SetAnimRate(GOBJ *f, float rate); int Fighter_CheckJumpInput(GOBJ *f); void Fighter_SetEyeTexture(GOBJ *f, int material_index, float frame); void Fighter_GetECBCenter(GOBJ *f, Vec3 *center_pos); void Fighter_ApplyPartAnim(GOBJ *f, int part_id, int anim_id); void Fighter_SetHoldKind(GOBJ *f, int r4, int r5); void Fighter_ApplyHandAnim(GOBJ *f, int r4); void Fighter_CheckToRespawn(int ply, int ms); void Fighter_Respawn(GOBJ *f, int ms); void Fighter_CreateAbsorb(GOBJ *fighter_gobj, AbsorbDesc *absorb_desc); void Fighter_EnableAbsorbUpdate(GOBJ *fighter_gobj); void Fighter_PlaySFX(FighterData *fp, int sfxid, int volume, int pitch); void SFX_StopAllFighterSFX(FighterData *fighter_data); void Fighter_EnterFallOrWait(GOBJ *fighter_gobj); void Fighter_EnterTech(GOBJ *gobj); int Fighter_CheckTechInput(GOBJ *f); void Fighter_EnterSpecialFallLoseJumps(GOBJ *fighter_gobj, int can_fastfall, int can_not_noimpactland, int can_not_interrupt, float aerial_drift_mult, float landing_lag, float blend); void Fighter_RumbleController(GOBJ *f, int unk1, int unk2); void Fighter_GetLeftStick(GOBJ *fighter_gobj, float *stick_x, float *stick_y); void Fighter_ClampMaxAirDrift(FighterData *fighter_gobj); void Fighter_UpdateHitboxDamage(ftHit *hit, int dmg, GOBJ *f); void Fighter_GetCollisionSlope(GOBJ *fighter, Vec3 *position); void Fighter_ThrowVictim(GOBJ *f, GOBJ *victim, int param_3); void Fighter_StoreAccessoryJObj(FighterData *fd, JOBJDesc *jobj_desc); void Fighter_ResetModelScale(GOBJ *fighter); void Fighter_AddPlayerException(FighterData *fd, GOBJ *target); void Fighter_EnterCaptureCut(GOBJ *fighter); void Fighter_EnterCatchCut(GOBJ *fighter, int victim_enter_capturecut); void Fighter_SetGrabbableFlag(GOBJ *fighter, int); float Fighter_GetDistanceFromPointSquared(GOBJ *fighter, Vec3 *position); int Fighter_CheckNotWalkInput(GOBJ *fighter); int Fighter_CheckWalkInput(GOBJ *fighter); void GXLink_Fighter(GOBJ *f, int pass); void Fighter_MultiJump_TurnThink(FighterData *fp, int turn_frames); int Fighter_CheckFootstool(GOBJ *f); float Fighter_GetSoftLandVelocity(FighterData *fp); void Fighter_Transform(GOBJ *f, void *EnterStateCallback); void Fighter_InitCameraBox(FighterData *fp); // 80076064 void Fighter_SetSelfDamageSource(GOBJ *f); // 800788d4 float Fighter_CalcForceApplied(FighterData *fp, void *unk); // 80079ea8 void Fighter_UpdateModelShift(GOBJ *f); // updates the offsets of the model during hitlag and smash charge void Fighter_GivePersistentIntangibility(GOBJ *f, int frames); void Fighter_TDI(FighterData *fp); void Fighter_PlayQueuedDamageSounds(FighterData *fp); GXColor Fighter_GetPlyHUDColor(int ply); // used for lupe, pokemon stadium text color, results viewport broder void FSmash_GetASForAnalogAngle(GOBJ *ft); #endif