fork/training-mode-ce
git clone https://git.julia.blue/fork/training-mode-ce
edda55f
techchase-camera
1#ifndef MEX_H_FIGHTER 2#define MEX_H_FIGHTER 3 4#include "structs.h" 5#include "datatypes.h" 6#include "obj.h" 7#include "gx.h" 8#include "color.h" 9#include "effects.h" 10#include "match.h" 11#include "collision.h" 12#include "dynamics.h" 13 14// Internal IDs 15typedef enum FighterKind 16{ 17FTKIND_MARIO , 18FTKIND_FOX , 19FTKIND_FALCON , 20FTKIND_DK , 21FTKIND_KIRBY , 22FTKIND_BOWSER , 23FTKIND_LINK , 24FTKIND_SHEIK , 25FTKIND_NESS , 26FTKIND_PEACH , 27FTKIND_POPO , 28FTKIND_NANA , 29FTKIND_PIKACHU , 30FTKIND_SAMUS , 31FTKIND_YOSHI , 32FTKIND_JIGGLYPUFF , 33FTKIND_MEWTWO , 34FTKIND_LUIGI , 35FTKIND_MARTH , 36FTKIND_ZELDA , 37FTKIND_YOUNGLINK , 38FTKIND_DRMARIO , 39FTKIND_FALCO , 40FTKIND_PICHU , 41FTKIND_GAW , 42FTKIND_GANONDORF , 43FTKIND_ROY , 44FTKIND_MASTERHAND , 45FTKIND_CRAZYHAND , 46FTKIND_BOY , 47FTKIND_GIRL , 48FTKIND_GIGABOWSER , 49FTKIND_SANDBAG , 50}FighterKind ; 51 52// External IDs 53typedef enum CharacterKind 54{ 55CKIND_FALCON , 56CKIND_DK , 57CKIND_FOX , 58CKIND_GAW , 59CKIND_KIRBY , 60CKIND_BOWSER , 61CKIND_LINK , 62CKIND_LUIGI , 63CKIND_MARIO , 64CKIND_MARTH , 65CKIND_MEWTWO , 66CKIND_NESS , 67CKIND_PEACH , 68CKIND_PIKACHU , 69CKIND_ICECLIMBERS , 70CKIND_JIGGLYPUFF , 71CKIND_SAMUS , 72CKIND_YOSHI , 73CKIND_ZELDA , 74CKIND_SHEIK , 75CKIND_FALCO , 76CKIND_YOUNGLINK , 77CKIND_DRMARIO , 78CKIND_ROY , 79CKIND_PICHU , 80CKIND_GANONDORF , 81CKIND_MASTERHAND , 82CKIND_BOY , 83CKIND_GIRL , 84CKIND_GIGABOWSER , 85CKIND_CRAZYHAND , 86CKIND_SANDBAG , 87CKIND_POPO , 88}CharacterKind ; 89typedef enum PlayerKind 90{ 91PKIND_HMN , 92PKIND_CPU , 93PKIND_DEMO , 94PKIND_NONE , 95}PlayerKind ; 96typedef enum TeamKind 97{ 98TEAMKIND_RED , 99TEAMKIND_BLUE , 100TEAMKIND_GREEN , 101TEAMKIND_CPUTRAIN ,// cpu in training mode is on team 4 o_o 102TEAMKIND_5 , 103TEAMKIND_6 , 104TEAMKIND_NUM , 105}TeamKind ; 106enum CPUType 107{ 108CPTP_STAY , 109CPTP_WALK , 110CPTP_ESCAPE , 111CPTP_JUMP , 112CPTP_NORMAL , 113CPTP_MANUAL , 114CPTP_NANA , 115CPTP_DEFENSIVE , 116CPTP_STRUGGLE , 117CPTP_FREAK , 118CPTP_COOPERATE , 119CPTP_SPLWLINK , 120CPTP_SPLWSAMUS , 121CPTP_ONLYITEM , 122CPTP_EVZELDA , 123CPTP_NOACT , 124CPTP_AIR , 125CPTP_ITEM , 126}; 127 128// fighter callback priorities 129enum FtPri 130{ 131FTPRI_HITLAG , 132FTPRI_ANIM , 133FTPRI_CPU , 134FTPRI_IASA , 135FTPRI_PHYS , 136FTPRI_5 ,// nothing 137FTPRI_ENVCOLL , 138FTPRI_IK , 139FTPRI_ACCESSORY , 140FTPRI_GFX , 141FTPRI_10 , 142FTPRI_11 , 143FTPRI_GRABCOLL , 144FTPRI_HITCOLL , 145FTPRI_DMGAPPLY , 146FTPRI_15 , 147FTPRI_DYNAMICS , 148FTPRI_17 , 149FTPRI_CAM , 150FTPRI_19 , 151FTPRI_20 , 152FTPRI_21 , 153FTPRI_STATS , 154}; 155 156// action state flags 157#define FIGHTER_FASTFALL_PRESERVE 0x1 158#define FIGHTER_GFX_PRESERVE 0x2 159#define FIGHTER_HITSTATUS_COLANIM_PRESERVE 0x4 // Preserve full body collision state // 160#define FIGHTER_HIT_NOUPDATE 0x8 // Keep hitboxes 161#define FIGHTER_MODEL_NOUPDATE 0x10 // Ignore model state change (?) 162#define FIGHTER_ANIMVEL_NOUPDATE 0x20 163#define FIGHTER_UNK_0x40 0x40 164#define FIGHTER_MATANIM_NOUPDATE 0x80 // Ignore switching to character's "hurt" textures (?) // 165#define FIGHTER_THROW_EXCEPTION_NOUPDATE 0x100 // Resets thrower GObj pointer to NULL if false? // 166#define FIGHTER_SFX_PRESERVE 0x200 167#define FIGHTER_PARASOL_NOUPDATE 0x400 // Ignore Parasol state change // 168#define FIGHTER_RUMBLE_NOUPDATE 0x800 // Ignore rumble update? // 169#define FIGHTER_COLANIM_NOUPDATE 0x1000 170#define FIGHTER_ACCESSORY_PRESERVE 0x2000 // Keep respawn platform? // 171#define FIGHTER_CMD_UPDATE 0x4000 // Run all Subaction Events up to the current animation frame // 172#define FIGHTER_NAMETAGVIS_NOUPDATE 0x8000 173#define FIGHTER_PART_HITSTATUS_COLANIM_PRESERVE 0x10000 // Assume this is for individual bones? // 174#define FIGHTER_SWORDTRAIL_PRESERVE 0x20000 175#define FIGHTER_ITEMVIS_NOUPDATE 0x40000 // Used by Ness during Up/Down Smash, I suppose this is what the flag does // 176#define FIGHTER_SKIP_UNK_0x2222 0x80000 // Skips updating bit 0x20 of 0x2222? // 177#define FIGHTER_PHYS_UNKUPDATE 0x100000 178#define FIGHTER_FREEZESTATE 0x200000 // Sets anim rate to 0x and some other stuff 179#define FIGHTER_MODELPART_VIS_NOUPDATE 0x400000 180#define FIGHTER_METALB_NOUPDATE 0x800000 181#define FIGHTER_UNK_0x1000000 0x1000000 182#define FIGHTER_ATTACKCOUNT_NOUPDATE 0x2000000 183#define FIGHTER_MODEL_FLAG_NOUPDATE 0x4000000 184#define FIGHTER_UNK_0x2227 0x8000000 185#define FIGHTER_HITSTUN_FLAG_NOUPDATE 0x10000000 186#define FIGHTER_ANIM_NOUPDATE 0x20000000 // Keeps current fp animation? 187#define FIGHTER_UNK_0x40000000 0x40000000 // Unused? 188#define FIGHTER_UNK_0x80000000 0x80000000 // Unused? 189 190enum FtCommonBoneNames 191{ 192TopN , 193TransN , 194XRotN , 195YRotN , 196HipN , 197WaistN , 198LLegJA , 199LLegJ , 200LKneeJ , 201LFootJA , 202LFootJ , 203RLegJA , 204RLegJ , 205RKneeJ , 206RFootJA , 207RFootJ , 208WaistN2 , 209BustN , 210LShoulderN , 211LShoulderJA , 212LShoulderJ , 213LArmJ , 214LHandN , 215L1stNa , 216L1stNb , 217L2ndNa , 218L2ndNb , 219L3rdNa , 220L3rdNb , 221L4thNa , 222L4thNb , 223LHaveN , 224LThumbNa , 225LThumbNb , 226NeckN , 227HeadN , 228RShoulderN , 229RShoulderJA , 230RShoulderJ , 231RArmJ , 232RHandN , 233R1stNa , 234R1stNb , 235R2ndNa , 236R2ndNb , 237R3rdNa , 238R3rdNb , 239R4thNa , 240R4thNb , 241RHaveN , 242RThumbNa , 243RThumbNb , 244ThrowN , 245Extra 246}; 247 248// Fighter States 249enum FtStateNames 250{ 251ASID_DEADDOWN , 252ASID_DEADLEFT , 253ASID_DEADRIGHT , 254ASID_DEADUP , 255ASID_DEADUPSTAR , 256ASID_DEADUPSTARICE , 257ASID_DEADUPFALL , 258ASID_DEADUPFALLHITCAMERA , 259ASID_DEADUPFALLHITCAMERAFLAT , 260ASID_DEADUPFALLICE , 261ASID_DEADUPFALLHITCAMERAICE , 262ASID_SLEEP , 263ASID_REBIRTH , 264ASID_REBIRTHWAIT , 265ASID_WAIT , 266ASID_WALKSLOW , 267ASID_WALKMIDDLE , 268ASID_WALKFAST , 269ASID_TURN , 270ASID_TURNRUN , 271ASID_DASH , 272ASID_RUN , 273ASID_RUNDIRECT , 274ASID_RUNBRAKE , 275ASID_KNEEBEND , 276ASID_JUMPF , 277ASID_JUMPB , 278ASID_JUMPAERIALF , 279ASID_JUMPAERIALB , 280ASID_FALL , 281ASID_FALLF , 282ASID_FALLB , 283ASID_FALLAERIAL , 284ASID_FALLAERIALF , 285ASID_FALLAERIALB , 286ASID_FALLSPECIAL , 287ASID_FALLSPECIALF , 288ASID_FALLSPECIALB , 289ASID_DAMAGEFALL , 290ASID_SQUAT , 291ASID_SQUATWAIT , 292ASID_SQUATRV , 293ASID_LANDING , 294ASID_LANDINGFALLSPECIAL , 295ASID_ATTACK11 , 296ASID_ATTACK12 , 297ASID_ATTACK13 , 298ASID_ATTACK100START , 299ASID_ATTACK100LOOP , 300ASID_ATTACK100END , 301ASID_ATTACKDASH , 302ASID_ATTACKS3HI , 303ASID_ATTACKS3HIS , 304ASID_ATTACKS3S , 305ASID_ATTACKS3LWS , 306ASID_ATTACKS3LW , 307ASID_ATTACKHI3 , 308ASID_ATTACKLW3 , 309ASID_ATTACKS4HI , 310ASID_ATTACKS4HIS , 311ASID_ATTACKS4S , 312ASID_ATTACKS4LWS , 313ASID_ATTACKS4LW , 314ASID_ATTACKHI4 , 315ASID_ATTACKLW4 , 316ASID_ATTACKAIRN , 317ASID_ATTACKAIRF , 318ASID_ATTACKAIRB , 319ASID_ATTACKAIRHI , 320ASID_ATTACKAIRLW , 321ASID_LANDINGAIRN , 322ASID_LANDINGAIRF , 323ASID_LANDINGAIRB , 324ASID_LANDINGAIRHI , 325ASID_LANDINGAIRLW , 326ASID_DAMAGEHI1 , 327ASID_DAMAGEHI2 , 328ASID_DAMAGEHI3 , 329ASID_DAMAGEN1 , 330ASID_DAMAGEN2 , 331ASID_DAMAGEN3 , 332ASID_DAMAGELW1 , 333ASID_DAMAGELW2 , 334ASID_DAMAGELW3 , 335ASID_DAMAGEAIR1 , 336ASID_DAMAGEAIR2 , 337ASID_DAMAGEAIR3 , 338ASID_DAMAGEFLYHI , 339ASID_DAMAGEFLYN , 340ASID_DAMAGEFLYLW , 341ASID_DAMAGEFLYTOP , 342ASID_DAMAGEFLYROLL , 343ASID_LIGHTGET , 344ASID_HEAVYGET , 345ASID_LIGHTTHROWF , 346ASID_LIGHTTHROWB , 347ASID_LIGHTTHROWHI , 348ASID_LIGHTTHROWLW , 349ASID_LIGHTTHROWDASH , 350ASID_LIGHTTHROWDROP , 351ASID_LIGHTTHROWAIRF , 352ASID_LIGHTTHROWAIRB , 353ASID_LIGHTTHROWAIRHI , 354ASID_LIGHTTHROWAIRLW , 355ASID_HEAVYTHROWF , 356ASID_HEAVYTHROWB , 357ASID_HEAVYTHROWHI , 358ASID_HEAVYTHROWLW , 359ASID_LIGHTTHROWF4 , 360ASID_LIGHTTHROWB4 , 361ASID_LIGHTTHROWHI4 , 362ASID_LIGHTTHROWLW4 , 363ASID_LIGHTTHROWAIRF4 , 364ASID_LIGHTTHROWAIRB4 , 365ASID_LIGHTTHROWAIRHI4 , 366ASID_LIGHTTHROWAIRLW4 , 367ASID_HEAVYTHROWF4 , 368ASID_HEAVYTHROWB4 , 369ASID_HEAVYTHROWHI4 , 370ASID_HEAVYTHROWLW4 , 371ASID_SWORDSWING1 , 372ASID_SWORDSWING3 , 373ASID_SWORDSWING4 , 374ASID_SWORDSWINGDASH , 375ASID_BATSWING1 , 376ASID_BATSWING3 , 377ASID_BATSWING4 , 378ASID_BATSWINGDASH , 379ASID_PARASOLSWING1 , 380ASID_PARASOLSWING3 , 381ASID_PARASOLSWING4 , 382ASID_PARASOLSWINGDASH , 383ASID_HARISENSWING1 , 384ASID_HARISENSWING3 , 385ASID_HARISENSWING4 , 386ASID_HARISENSWINGDASH , 387ASID_STARRODSWING1 , 388ASID_STARRODSWING3 , 389ASID_STARRODSWING4 , 390ASID_STARRODSWINGDASH , 391ASID_LIPSTICKSWING1 , 392ASID_LIPSTICKSWING3 , 393ASID_LIPSTICKSWING4 , 394ASID_LIPSTICKSWINGDASH , 395ASID_ITEMPARASOLOPEN , 396ASID_ITEMPARASOLFALL , 397ASID_ITEMPARASOLFALLSPECIAL , 398ASID_ITEMPARASOLDAMAGEFALL , 399ASID_LGUNSHOOT , 400ASID_LGUNSHOOTAIR , 401ASID_LGUNSHOOTEMPTY , 402ASID_LGUNSHOOTAIREMPTY , 403ASID_FIREFLOWERSHOOT , 404ASID_FIREFLOWERSHOOTAIR , 405ASID_ITEMSCREW , 406ASID_ITEMSCREWAIR , 407ASID_DAMAGESCREW , 408ASID_DAMAGESCREWAIR , 409ASID_ITEMSCOPESTART , 410ASID_ITEMSCOPERAPID , 411ASID_ITEMSCOPEFIRE , 412ASID_ITEMSCOPEEND , 413ASID_ITEMSCOPEAIRSTART , 414ASID_ITEMSCOPEAIRRAPID , 415ASID_ITEMSCOPEAIRFIRE , 416ASID_ITEMSCOPEAIREND , 417ASID_ITEMSCOPESTARTEMPTY , 418ASID_ITEMSCOPERAPIDEMPTY , 419ASID_ITEMSCOPEFIREEMPTY , 420ASID_ITEMSCOPEENDEMPTY , 421ASID_ITEMSCOPEAIRSTARTEMPTY , 422ASID_ITEMSCOPEAIRRAPIDEMPTY , 423ASID_ITEMSCOPEAIRFIREEMPTY , 424ASID_ITEMSCOPEAIRENDEMPTY , 425ASID_LIFTWAIT , 426ASID_LIFTWALK1 , 427ASID_LIFTWALK2 , 428ASID_LIFTTURN , 429ASID_GUARDON , 430ASID_GUARD , 431ASID_GUARDOFF , 432ASID_GUARDSETOFF , 433ASID_GUARDREFLECT , 434ASID_DOWNBOUNDU , 435ASID_DOWNWAITU , 436ASID_DOWNDAMAGEU , 437ASID_DOWNSTANDU , 438ASID_DOWNATTACKU , 439ASID_DOWNFOWARDU , 440ASID_DOWNBACKU , 441ASID_DOWNSPOTU , 442ASID_DOWNBOUNDD , 443ASID_DOWNWAITD , 444ASID_DOWNDAMAGED , 445ASID_DOWNSTANDD , 446ASID_DOWNATTACKD , 447ASID_DOWNFOWARDD , 448ASID_DOWNBACKD , 449ASID_DOWNSPOTD , 450ASID_PASSIVE , 451ASID_PASSIVESTANDF , 452ASID_PASSIVESTANDB , 453ASID_PASSIVEWALL , 454ASID_PASSIVEWALLJUMP , 455ASID_PASSIVECEIL , 456ASID_SHIELDBREAKFLY , 457ASID_SHIELDBREAKFALL , 458ASID_SHIELDBREAKDOWNU , 459ASID_SHIELDBREAKDOWND , 460ASID_SHIELDBREAKSTANDU , 461ASID_SHIELDBREAKSTANDD , 462ASID_FURAFURA , 463ASID_CATCH , 464ASID_CATCHPULL , 465ASID_CATCHDASH , 466ASID_CATCHDASHPULL , 467ASID_CATCHWAIT , 468ASID_CATCHATTACK , 469ASID_CATCHCUT , 470ASID_THROWF , 471ASID_THROWB , 472ASID_THROWHI , 473ASID_THROWLW , 474ASID_CAPTUREPULLEDHI , 475ASID_CAPTUREWAITHI , 476ASID_CAPTUREDAMAGEHI , 477ASID_CAPTUREPULLEDLW , 478ASID_CAPTUREWAITLW , 479ASID_CAPTUREDAMAGELW , 480ASID_CAPTURECUT , 481ASID_CAPTUREJUMP , 482ASID_CAPTURENECK , 483ASID_CAPTUREFOOT , 484ASID_ESCAPEF , 485ASID_ESCAPEB , 486ASID_ESCAPE , 487ASID_ESCAPEAIR , 488ASID_REBOUNDSTOP , 489ASID_REBOUND , 490ASID_THROWNF , 491ASID_THROWNB , 492ASID_THROWNHI , 493ASID_THROWNLW , 494ASID_THROWNLWWOMEN , 495ASID_PASS , 496ASID_OTTOTTO , 497ASID_OTTOTTOWAIT , 498ASID_FLYREFLECTWALL , 499ASID_FLYREFLECTCEIL , 500ASID_STOPWALL , 501ASID_STOPCEIL , 502ASID_MISSFOOT , 503ASID_CLIFFCATCH , 504ASID_CLIFFWAIT , 505ASID_CLIFFCLIMBSLOW , 506ASID_CLIFFCLIMBQUICK , 507ASID_CLIFFATTACKSLOW , 508ASID_CLIFFATTACKQUICK , 509ASID_CLIFFESCAPESLOW , 510ASID_CLIFFESCAPEQUICK , 511ASID_CLIFFJUMPSLOW1 , 512ASID_CLIFFJUMPSLOW2 , 513ASID_CLIFFJUMPQUICK1 , 514ASID_CLIFFJUMPQUICK2 , 515ASID_APPEALR , 516ASID_APPEALL , 517ASID_SHOULDEREDWAIT , 518ASID_SHOULDEREDWALKSLOW , 519ASID_SHOULDEREDWALKMIDDLE , 520ASID_SHOULDEREDWALKFAST , 521ASID_SHOULDEREDTURN , 522ASID_THROWNFF , 523ASID_THROWNFB , 524ASID_THROWNFHI , 525ASID_THROWNFLW , 526ASID_CAPTURECAPTAIN , 527ASID_CAPTUREYOSHI , 528ASID_YOSHIEGG , 529ASID_CAPTUREKOOPA , 530ASID_CAPTUREDAMAGEKOOPA , 531ASID_CAPTUREWAITKOOPA , 532ASID_THROWNKOOPAF , 533ASID_THROWNKOOPAB , 534ASID_CAPTUREKOOPAAIR , 535ASID_CAPTUREDAMAGEKOOPAAIR , 536ASID_CAPTUREWAITKOOPAAIR , 537ASID_THROWNKOOPAAIRF , 538ASID_THROWNKOOPAAIRB , 539ASID_CAPTUREKIRBY , 540ASID_CAPTUREWAITKIRBY , 541ASID_THROWNKIRBYSTAR , 542ASID_THROWNCOPYSTAR , 543ASID_THROWNKIRBY , 544ASID_BARRELWAIT , 545ASID_BURY , 546ASID_BURYWAIT , 547ASID_BURYJUMP , 548ASID_DAMAGESONG , 549ASID_DAMAGESONGWAIT , 550ASID_DAMAGESONGRV , 551ASID_DAMAGEBIND , 552ASID_CAPTUREMEWTWO , 553ASID_CAPTUREMEWTWOAIR , 554ASID_THROWNMEWTWO , 555ASID_THROWNMEWTWOAIR , 556ASID_WARPSTARJUMP , 557ASID_WARPSTARFALL , 558ASID_HAMMERWAIT , 559ASID_HAMMERWALK , 560ASID_HAMMERTURN , 561ASID_HAMMERKNEEBEND , 562ASID_HAMMERFALL , 563ASID_HAMMERJUMP , 564ASID_HAMMERLANDING , 565ASID_KINOKOGIANTSTART , 566ASID_KINOKOGIANTSTARTAIR , 567ASID_KINOKOGIANTEND , 568ASID_KINOKOGIANTENDAIR , 569ASID_KINOKOSMALLSTART , 570ASID_KINOKOSMALLSTARTAIR , 571ASID_KINOKOSMALLEND , 572ASID_KINOKOSMALLENDAIR , 573ASID_ENTRY , 574ASID_ENTRYSTART , 575ASID_ENTRYEND , 576ASID_DAMAGEICE , 577ASID_DAMAGEICEJUMP , 578ASID_CAPTUREMASTERHAND , 579ASID_CAPTUREDAMAGEMASTERHAND , 580ASID_CAPTUREWAITMASTERHAND , 581ASID_THROWNMASTERHAND , 582ASID_CAPTUREKIRBYYOSHI , 583ASID_KIRBYYOSHIEGG , 584ASID_CAPTURELEADEAD , 585ASID_CAPTURELIKELIKE , 586ASID_DOWNREFLECT , 587ASID_CAPTURECRAZYHAND , 588ASID_CAPTUREDAMAGECRAZYHAND , 589ASID_CAPTUREWAITCRAZYHAND , 590ASID_THROWNCRAZYHAND , 591ASID_BARRELCANNONWAIT , 592}; 593enum FtAuxillaryAnim 594{ 595FTAUXANIM_WIN1 , 596FTAUXANIM_WIN2 , 597FTAUXANIM_WIN3 , 598FTAUXANIM_3 , 599FTAUXANIM_4 , 600FTAUXANIM_INTROLEFT , 601FTAUXANIM_INTRORIGHT , 602FTAUXANIM_7 , 603FTAUXANIM_WAIT , 604}; 605enum FtScriptCmd 606{ 607FTSCRIPT_END , 608FTSCRIPT_SYNCTIMER , 609FTSCRIPT_ASYNCTIMER , 610FTSCRIPT_3 , 611FTSCRIPT_4 , 612FTSCRIPT_5 , 613FTSCRIPT_6 , 614FTSCRIPT_7 , 615FTSCRIPT_8 , 616FTSCRIPT_9 , 617FTSCRIPT_GFX , 618FTSCRIPT_HIT , 619FTSCRIPT_HITDMG , 620FTSCRIPT_HITSIZE , 621FTSCRIPT_HITINTERACTION , 622FTSCRIPT_HITCLEAR , 623FTSCRIPT_HITCLEARALL , 624FTSCRIPT_SFX , 625FTSCRIPT_SFXSMASH , 626FTSCRIPT_FLAG , 627FTSCRIPT_FLAG2 , 628FTSCRIPT_FLAG3 , 629FTSCRIPT_FLAG4 , 630FTSCRIPT_FLAG5 , 631FTSCRIPT_FLAG6 , 632FTSCRIPT_SET , 633FTSCRIPT_VULNALL , 634FTSCRIPT_VULNUNK , 635FTSCRIPT_VULNPART , 636FTSCRIPT_JABFLAG , 637FTSCRIPT_JABFLAG2 , 638FTSCRIPT_VISSET , 639FTSCRIPT_VISCLEAR , 640FTSCRIPT_VISRESET , 641FTSCRIPT_THROW , 642FTSCRIPT_ITEMVIS , 643FTSCRIPT_ITEMVIS2 , 644FTSCRIPT_INVISIBLE , 645FTSCRIPT_SFXRANDOM , 646FTSCRIPT_39 , 647FTSCRIPT_EYE , 648FTSCRIPT_PARTANIM , 649FTSCRIPT_42 , 650FTSCRIPT_RUMBLE , 651FTSCRIPT_44 , 652FTSCRIPT_45 , 653FTSCRIPT_COLANIMAPPLY , 654FTSCRIPT_COLANIMCLEAR , 655FTSCRIPT_48 , 656FTSCRIPT_AFTERIMAGE , 657FTSCRIPT_DYNAMICS , 658FTSCRIPT_DMGSELF , 659FTSCRIPT_IK , 660FTSCRIPT_53 , 661FTSCRIPT_STEPSOUND , 662FTSCRIPT_SFXGFX , 663FTSCRIPT_SMASH , 664FTSCRIPT_57 , 665FTSCRIPT_WIND , 666}; 667 668enum Ft_AttackKind 669{ 670ATKKIND_0 , 671ATKKIND_NONE , 672ATKKIND_JAB1 , 673ATKKIND_JAB2 , 674ATKKIND_JAB3 , 675ATKKIND_JAB4 , 676ATKKIND_DASH , 677ATKKIND_FTILT , 678ATKKIND_UTILT , 679ATKKIND_DTILT , 680ATKKIND_FSMASH , 681ATKKIND_USMASH , 682ATKKIND_DSMASH , 683ATKKIND_NAIR , 684ATKKIND_FAIR , 685ATKKIND_BAIR , 686ATKKIND_UAIR , 687ATKKIND_DAIR , 688ATKKIND_SPECIALN , 689ATKKIND_SPECIALS , 690ATKKIND_SPECIALHI , 691ATKKIND_SPECIALLW , 692ATKKIND_22 , 693ATKKIND_23 , 694ATKKIND_24 , 695ATKKIND_25 , 696ATKKIND_26 , 697ATKKIND_27 , 698ATKKIND_28 , 699ATKKIND_29 , 700ATKKIND_30 , 701ATKKIND_31 , 702ATKKIND_32 , 703ATKKIND_33 , 704ATKKIND_34 , 705ATKKIND_35 , 706ATKKIND_36 , 707ATKKIND_37 , 708ATKKIND_38 , 709ATKKIND_39 , 710ATKKIND_40 , 711ATKKIND_41 , 712ATKKIND_42 , 713ATKKIND_43 , 714ATKKIND_44 , 715ATKKIND_45 , 716ATKKIND_46 , 717ATKKIND_47 , 718ATKKIND_48 , 719ATKKIND_49 , 720ATKKIND_DOWNATTACKU , 721ATKKIND_DOWNATTACKD , 722ATKKIND_PUMMEL , 723ATKKIND_FTHROW , 724ATKKIND_BTHROW , 725ATKKIND_UPTHROW , 726ATKKIND_DTHROW , 727ATKKIND_57 , 728ATKKIND_58 , 729ATKKIND_59 , 730ATKKIND_60 , 731ATKKIND_61 , 732ATKKIND_62 , 733ATKKIND_63 , 734ATKKIND_64 , 735ATKKIND_65 , 736ATKKIND_66 , 737ATKKIND_67 , 738ATKKIND_68 , 739ATKKIND_69 , 740ATKKIND_70 , 741ATKKIND_71 , 742ATKKIND_72 , 743ATKKIND_73 , 744ATKKIND_74 , 745ATKKIND_75 , 746ATKKIND_76 , 747ATKKIND_77 , 748ATKKIND_78 , 749ATKKIND_79 , 750ATKKIND_80 , 751ATKKIND_81 , 752ATKKIND_82 , 753ATKKIND_83 , 754ATKKIND_84 , 755ATKKIND_85 , 756ATKKIND_86 , 757ATKKIND_87 , 758}; 759typedef enum FtStateKind 760{ 761FTSTATEKIND_FREE ,// generally actionable states, like wait, run, jump 762FTSTATEKIND_DEFENSE ,// shield, roll, airdodge 763FTSTATEKIND_ATTACK ,// common attacks like jabs, tilts, and ledge attacks 764FTSTATEKIND_SPECIAL ,// any special state 765FTSTATEKIND_4 ,// 766FTSTATEKIND_DAMAGE ,// damage states, including, mewtwo confuse, shield break, 767FTSTATEKIND_DOWNED ,// downed animations, incuding downbound, downback/forward, downattack, 768FTSTATEKIND_PASSIVE ,// tech animations, such as in place, left, right, walltech, and ceiling tech 769FTSTATEKIND_REFLECTWALL ,// but also passing through a platform?? 770FTSTATEKIND_LEDGE ,// 771FTSTATEKIND_CATCH ,// any grab/throw related state, like catch, catchdash, catchwait, throwf 772FTSTATEKIND_CAPTURE ,// any state related to being grabbed, like capture, thrown, etc 773FTSTATEKIND_12 ,// entry animation, respawn animation, damagesong, bury 774FTSTATEKIND_DEAD ,// dead states, including star and screen ko 775}FtStateKind ; 776typedef enum FtHurtKind 777{ 778FTHURTKIND_VULN ,// vulnerable 779FTHURTKIND_INTANGIBLE ,// cannot be hit 780FTHURTKIND_INVINCIBLE ,// can be hit, does not take damage 781}FtHurtKind ; 782 783/*** Structs ***/ 784struct Playerblock 785{ 786int state ;// 0x00 = not present, 0x02 = HMN, 0x03 = CPU 787int c_kind ;// external ID 788int p_kind ;// (0x00 is HMN, 0x01 is CPU, 0x02 is Demo, 0x03 n/a) 789u8 isTransformed [2 ];// 0xC, 1 indicates the fighter that is active 790Vec3 tagPos ;// 0x10 791Vec3 spawnPos ;// 0x1C 792Vec3 respawnPos ;// 0x28 793int x34 ; 794int x38 ; 795int x3C ; 796float initialFacing ;// 0x40 797u8 costume ;// 0x44 798u8 color_accent ;// 0x45, will correspond to port color when ffa and team color when teams 799u8 tint ;// 0x46 800u8 team ;// 0x47 801u8 controller ;// 0x48 802u8 cpuLv ;// 0x49 803u8 cpuKind ;// 0x4a 804u8 handicap ;// 0x4b 805u8 x4c ;// 0x4c 806u8 kirby_copy ;// 0x4d, index of kirby copy ability 807u8 x4e ;// 0x4e 808u8 x4f ;// 0x4f 809float attack ;// 0x50 810float defense ;// 0x54 811float scale ;// 0x58 812u16 damage ;// 0x5c 813u16 initialDamage ;// 0x5e 814u16 stamina ;// 0x60 815int falls [2 ];// 0x68 816int ko [6 ];// 0x70 817int match_frame_count ; 818u16 selfDestructs ; 819u8 stocks ; 820int coins_curr ; 821int coins_total ; 822int x98 ; 823int x9c ; 824int stickSmashes [2 ]; 825int tag ; 826struct { 827u8 b0 :1 ; 828u8 is_multispawn :1 ; 829u8 b2 :1 ; 830u8 b3 :1 ; 831u8 b4 :1 ; 832u8 is_metal :1 ; 833u8 b6 :1 ; 834u8 b7 :1 ; 835 }flags ;// 0xac 836u8 xad ;// 0xad 837u8 xae ;// 0xae 838u8 xaf ;// 0xaf 839GOBJ * gobj [2 ];// 0xb0 840void * cb_subft_init ;// 0xb8, function executed on subfighter after creating them @ 80031c84 841struct // 0xbc, stale moves 842 {// 843int cur ;// Zero-Indexed. Rolls over after 9. Increments after each write. 844s16 queue [10 ];// array of attack indices 845 }stale_moves ;// 846struct // 0xE8 847 {// 848u8 x0 [0xcb4 ];// 0x0 849int killer_ply ;// 0xcb8, 6 == none 850u8 xcbc [0x60 ];// 851struct // 0xd1c 852 {// 853int running ;// 0xd1c 854int airborne ;// 855int grounded ;// 856 }time ;// 857 }stats ; 858}; 859struct PlayerData 860{ 861// byte 0x0 862u8 c_kind ;// 0x0 863u8 p_kind ;// 0x1 864u8 stocks ;// 0x2 865u8 costume ;// 0x3 866// 0x4 867u8 portNumberOverride ; 868u8 spawnPointOverride ; 869u8 facingDirection ; 870u8 subcolor ; 871// 0x8 872u8 handicap ; 873u8 team ; 874u8 nametag ; 875u8 xb ; 876// 0xC 877unsigned char isRumble :1 ; 878unsigned char isEntry :1 ; 879unsigned char unk2 :6 ; 880// 0xD 881unsigned char xd_80 :1 ; 882unsigned char is_black_stock :1 ;// 0xD, 0x40, makes the stock icon completely black 883unsigned char xd_20 :1 ; 884unsigned char always_show_indicator :1 ;// 0xD, 0x10, will always display player indicator (p1, p2, ally heart, etc) 885unsigned char xd_3f :4 ;// 0xD, 0x0F 886// 0xE 887u8 cpuKind ; 888// 0xF 889u8 cpuLevel ; 890// 0x10 891u16 damage_spawn ; 892u16 damage_respawn ;// 0x12 893u16 stamina_spawn ;// 0x14 894float attack ;// 0x18 895float defense ;// 0x1C 896float scale ;// 0x20 897}; 898 899struct FtCreateDesc // 900{ 901int ft_kind ;// 0x0 902u8 ply ;// 0x4 903u8 x5 ;// 0x5 904u8 ms ;// 0x6 905int x8 ;// 0x8 906u8 xc_80 :1 ;// 0xc 907u8 xc_40 :1 ;// 0xc 908}; 909 910struct FighterBone 911{ 912JOBJ * joint ;// 0x0 913JOBJ * joint2 ;// 0x4, used for interpolation 914int is_dynamic :1 ;// 0x8, 0x80 915int is_active :1 ;// 0x8, 0x40 916int x8_20 :1 ;// 0x8, 0x20, related to it being a runtime bone? is checked at 8006f544 917int is_unk :1 ;// 0x8, 0x10, function 80074ee8 sets this flag on TransN, XRotN, YRotN, ThrowN 918int is_unk_2 :1 ;// 0x8, 0x08, function 80074ee8 sets this flag on TransN, Extra 919int no_anim :1 ;// 0x8, 0x04, will not animate the bone when set 920int x8_03FFFFFF :26 ;// 0x8, unk 921int depth :8 ;// 0xC, 0xFF000000, number of parents to get to root 922int 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) 923int xC_0001 :1 ;// 0xC, 0x00010000 924int xC_0000FFFF :16 ;// 0xC, 0x0000FFFF, unk 925}; 926 927struct DynamicsDesc 928{ 929int root_bone ;// bone index; 930void * params ;// dynamics params; 931int num ;// number of children bones to make dynamic 932float xc ; 933float x10 ; 934float x14 ; 935}; 936 937struct DynamicsHitDesc 938{ 939int bone ;// bone index 940int x4 ;// unk 941Vec3 x8 ;// unk 942}; 943 944struct DynamicsBehave 945{ 946int num ;// number of dynamic bones to animate in the boneset 947}; 948 949struct IKParam 950{ 951u8 legr_index ;// 0x0 952u8 legl_index ;// 0x1 953float leg_param ;// 0x4 954u8 kneer_index ;// 0x8 955u8 kneel_index ;// 0x9 956float knee_param ;// 0xC 957u8 footr_index ;// 0x10 958u8 footl_index ;// 0x11 959float foot_param1 ; 960float foot_param2 ; 961u8 shoulderr_index ; 962u8 shoulderl_index ; 963float shoulder_param ; 964u8 armr_index ; 965u8 arml_index ; 966float arm_param1 ; 967float arm_param2 ; 968}; 969 970struct FtVis 971{ 972s8 prev_value ;// value before changed, used to restore original visibility 973s8 index ;// displays the index's dobjs. -1 = hides all dobjs in this table 974 975/* 976Fighter Visibility Update @ 80074b6c 977- Clears hidden flag on all dobjs in the tables 978- Sets hidden flag on all dobjs in all non-current tables 979*/ 980}; 981 982struct FtDynamicBoneset 983{ 984int apply_anim_num ;// if this is 256, dyanmics are not processed 985DynamicBoneset boneset ;// 0x4 986}; 987 988struct FtSFXArr 989{ 990int num ; 991int * sfx_ids ; 992}; 993 994struct FtSFX 995{ 996FtSFXArr * smash ;// 0x0 997int death ;// 0x4 998int metal_box ;// 0x8 999int star_ko ;// 0xc 1000int jump ;// 0x10 1001int jump_air ;// 0x14 1002int escape ;// 0x18 1003FtSFXArr * light_hit ;// 0x1c 1004FtSFXArr * heavy_hit ;// 0x20 1005int tech ;// 0x24 1006int cliffcatch ;// 0x28 1007int heavy_lift ;// 0x2c 1008int item_catch ;// 0x30 1009int cheer ;// 0x34 1010}; 1011 1012struct FtCollDesc 1013{ 1014u16 ecb_bone_top ;// 0x0 1015u16 ecb_bone_arm_left ;// 0x2 1016u16 ecb_bone_arm_right ;// 0x4 1017u16 ecb_bone_leg_left ;// 0x6 1018u16 ecb_bone_leg_right ;// 0x8 1019u16 ecb_bone_center ;// 0xA 1020float ecb_size_mult ;// 0xC 1021float cliffgrab_width ;// 0x10 1022float cliffgrab_y_offset ;// 0x14 1023float cliffgrab_height ;// 0x18 1024}; 1025 1026struct ftData 1027{ 1028int * common_attr ;// 0x0 1029int * ext_attr ;// 0x4 1030u8 * modelLookup ;// 0x8 1031FtAction * ftaction ;// 0xC 1032int animDynamics ;// 0x10 1033int x14 ; 1034int x18 ; 1035int x1C ; 1036int x20 ; 1037int x24 ; 1038int x28 ; 1039ftDynamics * dynamics ;// 0x2C 1040int hurtbox ;// 0x30 1041int * center_bubble ;// 0x34 1042int x38 ; 1043int x3C ; 1044int x40 ; 1045FtCollDesc * coll ; 1046ItemDesc ** items ; 1047FtSFX * sfx ; 1048int x50 ; 1049int x54 ; 1050IKParam * ik_param ; 1051}; 1052 1053struct ftChkDevice // 80459a68 1054{ 1055int x0 ; 1056int x4 ; 1057int x8 ; 1058int xc ; 1059int x10 ; 1060int x14 ; 1061int x18 ; 1062int x1c ; 1063int x20 ; 1064GOBJ * gobj ; 1065int hazard_kind ; 1066void * check ; 1067}; 1068 1069struct FtState 1070{ 1071int action_id ; 1072int flags ; 1073char move_id ; 1074char bitflags1 ; 1075void * animation_callback ; 1076void * iasa_callback ; 1077void * physics_callback ; 1078void * collision_callback ; 1079void * camera_callback ; 1080}; 1081 1082struct FtAction 1083{ 1084char * anim_symbol ;// ptr to the symbol name for this animation 1085int anim_offset ;// offset of the anim data in plxxaj 1086int anim_size ;// size of the animation data 1087void * script ;// pointer to the script data for this action 1088int flags ;// 1089void * anim_data ;// pointer to the animation data in ARAM 1090}; 1091 1092struct 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) 1093{ 1094int kind ;// 0x0 1095int x4 ;// 0x4 1096float frame_num ;// 0x8, total number of frames in this animation 1097void * nodes ;// 0xC 1098void * tracks ;// 0x10 1099}; 1100 1101struct ReflectDesc 1102{ 1103int bone ; 1104int max_damage ; 1105Vec3 pos ; 1106float radius ; 1107float damage_mult ; 1108float velocity_mult ; 1109int flags ; 1110}; 1111 1112struct ShieldDesc 1113{ 1114int bone ; 1115int max_damage ; 1116Vec3 pos ; 1117float radius ; 1118float damage_mult ; 1119float velocity_mult ; 1120int flags ; 1121}; 1122 1123struct AbsorbDesc 1124{ 1125int bone ;// x00 1126Vec3 pos ;// x04 1127float radius ;// x10 1128}; 1129 1130struct AfterImageDesc 1131{ 1132float x0 ;// 0x0 1133float x4 ;// 0x4 1134u8 start_alpha ;// 0x8 1135u8 end_alpha ;// 0x8 1136u8 in_col [4 ];// 0xA 1137u8 out_col [4 ];// 0xE 1138u8 x12 ;// 0x12 1139u8 x13 ;// 0x13 1140int bone_index ;// 0x14 1141float offset_bottom ;// 0x18 1142float offset_top ;// 0x1C 1143}; 1144struct FtDmgLog 1145{ 1146float direction ;// 0x1844, 0x0 1147int kb_angle ;// 0x1848, 0x4 1148int hurt_kind ;// 0x184c, 0x8. 0 = low, 1 = mid, 2 = hi (previously was called damaged_hurtbox) 1149float force_applied ;// 0x1850, 0xc, to get kb magnitude, multiply by 0.03 1150Vec3 collpos ;// 0x1854, 0x10 1151int attribute ;// 0x1860, 0x1c 1152int x1864 ;// 0x1864, 0x20 1153GOBJ * source ;// 0x1868, 0x24 1154float percent ;// 0x186c, 0x28 1155}; 1156 1157struct HitVictim 1158{ 1159void * data ;// userdata of the object that was hit 1160int timer ;// items use this to wait until hitting this gobj again 1161}; 1162 1163struct ftHit 1164{ 1165int active ;// 0x0 1166int x4 ;// 0x4 1167int dmg ;// 0x8 1168float dmg_f ;// 0xc 1169Vec3 offset ;// 0x10 1170float size ;// 0x1c 1171int angle ;// 0x20 1172int kb_growth ;// 0x24 1173int wdsk ;// 0x28 1174int kb ;// 0x2c 1175int attribute ;// 0x30 1176int shield_dmg ;// 0x34 1177int hitsound_severity ;// 0x38. hurtbox interaction. 0 = none, 1 = grounded, 2 = aerial, 3 = both 1178int hitsound_kind ;// 0x3c 1179char x40 ;// 0x40 1180char x41 ;// 0x41 1181unsigned char x421 :1 ;// 0x42 0x80 1182unsigned char x422 :1 ;// 0x42 0x40 1183unsigned char x423 :1 ;// 0x42 0x20 1184unsigned char x424 :1 ;// 0x42 0x10 1185unsigned char no_hurt :1 ;// 0x42 0x08 ignore hurtbox 1186unsigned char no_reflect :1 ;// 0x42 0x04 ignore reflect? 1187unsigned char x427 :1 ;// 0x42 0x02 1188unsigned char x428 :1 ;// 0x42 0x01 1189unsigned char x431 :1 ;// 0x43 0x80 1190unsigned char x432 :1 ;// 0x43 0x40 1191unsigned char hit_all :1 ;// 0x43 0x20 1192unsigned char x434 :1 ;// 0x43 0x10 1193unsigned char x435 :1 ;// 0x43 0x08 1194unsigned char x436 :1 ;// 0x43 0x04 1195unsigned char x437 :1 ;// 0x43 0x02 1196unsigned char x438 :1 ;// 0x43 0x01 1197u8 x44 ;// 0x44 1198u8 victim_num ;// 0x45 1199JOBJ * bone ;// 0x48 1200Vec3 pos ;// 0x4c 1201Vec3 pos_prev ;// 0x58 1202Vec3 pos_coll ;// 0x64 position of hurt collision 1203float coll_distance ;// 0x70 Distance From Collding FtHurt (Used for phantom hit collision calculation) 1204HitVictim victims [24 ];// 0x74 1205int x134 ;// 0x134, flags of some sort 1206}; 1207 1208struct FtHurt 1209{ 1210FtHurtKind state ;// 0x0, whether or not this hurtbox can be hit 1211Vec3 hurt1_offset ;// 0x4 1212Vec3 hurt2_offset ;// 0x10 1213float scale ;// 0x1c 1214JOBJ * jobj ;// 0x20 1215unsigned char is_updated :1 ;// 0x24, if enabled, wont update position 1216unsigned char x24_2 :1 ;// 0x24 0x40 1217unsigned char x24_3 :1 ;// 0x24 0x20 1218unsigned char x24_4 :1 ;// 0x24 0x10 1219unsigned char x24_5 :1 ;// 0x24 0x08 1220unsigned char x24_6 :1 ;// 0x24 0x04 1221unsigned char x24_7 :1 ;// 0x24 0x02 1222unsigned char x24_8 :1 ;// 0x24 0x01 1223Vec3 hurt1_pos ;// 0x28 1224Vec3 hurt2_pos ;// 0x34 1225int bone_index ;// 0x40 1226int hurt_kind ;// 0x44. 0 = low, 1 = mid, 2 = high 1227int is_grabbable ;// 0x48 1228}; 1229 1230struct FtCoin 1231{ 1232float size ;// 0x0 1233JOBJ * jobj ;// 0x4 1234Vec3 pos_cur ;// 0x8 1235Vec3 pos_prev ;// 0x14 1236Vec3 coll_pos ;// 0x20 1237}; 1238 1239struct FtAfterImageKey 1240{ 1241Vec3 pos ; 1242Vec3 rot ; 1243}; 1244 1245struct CPULeaderLog 1246{ 1247int x0 ;// 0x0, 0xfc 1248u8 x4 ;// 0x4, 0x100 1249u8 x5 ;// 0x3, 0x101 1250u8 x6 ;// 0x6, 0x102 1251u8 x7 ;// 0x7, 0x103 1252int x8 ;// 0x8, 0x104 1253Vec3 pos ;// 0xc, 0x108 1254float facing_direction ;// 0x18, 0x114 1255}; 1256 1257struct CPU 1258{ 1259int held ;// 0x0 1260s8 lstickX ;// 0x4 1261s8 lstickY ;// 0x5 1262s8 cstickX ;// 0x6 1263s8 cstickY ;// 0x7 1264u8 ltrigger ;// 0x8 1265u8 rtrigger ;// 0x9 1266int ai ;// 0xc, 25 of these, function table at 800a1090 1267int level ;// 0x10 1268int x14 ;// 0x14 1269int scenario_id ;// 0x18 1270int x1c ;// 0x1c 1271int x20 ;// 0x20 1272int x24 ;// 0x24 1273int x28 ;// 0x28 1274int x2c ;// 0x2c 1275int x30 ;// 0x30 1276int x34 ;// 0x34 1277float x38 ;// 0x38 1278float x3c ;// 0x3c 1279float x40 ;// 0x40 1280void * x44 ;// 0x44 1281void * x48 ;// 0x48 1282int x4c ;// 0x4c 1283int x50 ;// 0x50 1284float x54 ;// 0x54 1285float x58 ;// 0x58 1286float x5c ;// 0x5c 1287int x60 ;// 0x60 1288int x64 ;// 0x64 1289int x68 ;// 0x68 1290int x6c ;// 0x6c 1291int x70 ;// 0x70 1292int x74 ;// 0x74 1293int proc_num ;// 0x78, number of times it updated CPU logic in any capacity 1294int scenario_check_num ;// 0x7c, number of times it tried to update CPU scenario 1295int x80 ;// 0x80 1296int x84 ;// 0x84 1297int x88 ;// 0x88 1298int x8c ;// 0x8c 1299int x90 ;// 0x90 1300int x94 ;// 0x94 1301int x98 ;// 0x98 1302int x9c ;// 0x9c 1303int xa0 ;// 0xa0 1304int xa4 ;// 0xa4 1305int xa8 ;// 0xa8 1306int xac ;// 0xac 1307int xb0 ;// 0xb0 1308int xb4 ;// 0xb4 1309int xb8 ;// 0xb8 1310int xbc ;// 0xbc 1311int xc0 ;// 0xc0 1312int xc4 ;// 0xc4 1313u8 xc8 ;// 0xc8 1314int xcc ;// 0xcc 1315int xd0 ;// 0xd0CPULeaderLog 1316int xd4 ;// 0xd4 1317int xd8 ;// 0xd8 1318int xdc ;// 0xdc 1319int xe0 ;// 0xe0 1320int xe4 ;// 0xe4 1321int xe8 ;// 0xe8 1322u8 xec ;// 0xec 1323int xf0 ;// 0xf0 1324int xf4 ;// 0xf4 1325int xf8 ;// 0xf8, flags | 0x00000100 is the "isCopy" flag (uses leaders inputs) 1326CPULeaderLog leader_log [30 ];// 0xfc, contains a log of per frame data about the followers leader 1327void * unk_curr ;// 0x444 1328void * scenario_curr ;// 0x448, cpu scenario not updated if this contains a pointer @ 800b27b8 1329void * scenario_curr2 ;// 0x44c, cpu scenario not updated if this contains a pointer @ 800b27c4 1330void * x450 ;// 0x450 1331u8 cmdscript_queue [256 ];// 0x454, list of command ids for the follower to execute 1332void * cmdscript_curr ;// 0x554, points to a command in the cmdscript queue 1333}; 1334 1335struct FtDmgVibrateDesc 1336{ 1337Vec2 * offsets ; 1338int num ; 1339}; 1340 1341struct ftCommonBone 1342{ 1343u8 * x0 ; 1344u8 * x4 ; 1345int bone_num ; 1346}; 1347 1348struct ftCommonData 1349{ 1350float x0 ;// 0x0 1351float x4 ;// 0x4 1352float x8 ;// 0x8 1353float xc ;// 0xc 1354float x10 ;// 0x10 1355float x14 ;// 0x14 1356float x18 ;// 0x18 1357int meteor_lockout ;// 0x1c 1358float lstick_tilt ;// 0x20 1359float x24 ;// 0x24 1360float walk_anim_mid_percentage ;// 0x28 1361float walk_anim_fast_percentage ;// 0x2c 1362float x30 ;// 0x30 1363float x34 ;// 0x34 1364float x38 ;// 0x38 1365float dash_min_stick ;// 0x3c 1366int dash_min_stick_tilt ;// 0x40 1367float x44 ;// 0x44 1368float x48 ;// 0x48 1369float x4c ;// 0x4c 1370float x50 ;// 0x50 1371float x54 ;// 0x54 1372float x58 ;// 0x58 1373float x5c ;// 0x5c 1374float x60 ;// 0x60 1375float x64 ;// 0x64 1376float x68 ;// 0x68 1377float friction_mult ;// 0x6c 1378float jumpaerial_lsticky ;// 0x70 1379int jumpaerial_lsticktimer ;// 0x74 1380float jumpaerial_back_tilt ;// 0x78 1381float x7c ;// 0x7c 1382float x80 ;// 0x80 1383float x84 ;// 0x84 1384float x88 ;// 0x88 1385float x8c ;// 0x8c 1386float lstick_rebirthfall ;// 0x90 1387float x94 ;// 0x94 1388float x98 ;// 0x98 1389float x9c ;// 0x9c 1390float xa0 ;// 0xa0 1391float xa4 ;// 0xa4 1392float xa8 ;// 0xa8 1393float xac ;// 0xac 1394float xb0 ;// 0xb0 1395float xb4 ;// 0xb4 1396float xb8 ;// 0xb8 1397float xbc ;// 0xbc 1398float xc0 ;// 0xc0 1399float xc4 ;// 0xc4 1400float xc8 ;// 0xc8 1401float xcc ;// 0xcc 1402float xd0 ;// 0xd0 1403float xd4 ;// 0xd4 1404float xd8 ;// 0xd8 1405float xdc ;// 0xdc 1406float xe0 ;// 0xe0 1407float xe4 ;// 0xe4 1408float xe8 ;// 0xe8 1409float xec ;// 0xec 1410float xf0 ;// 0xf0 1411float xf4 ;// 0xf4 1412float xf8 ;// 0xf8 1413float xfc ;// 0xfc 1414float force_applied_to_kb_mag_multiplier ;// 0x100, multiplied with force_applied to get the knockback vector's magnitude 1415float armor_min ;// 0x104, kb reduction via armor cant go below this value 1416float x108 ;// 0x108 1417float x10c ;// 0x10c 1418float x110 ;// 0x110 1419float x114 ;// 0x114 1420float x118 ;// 0x118 1421float x11c ;// 0x11c 1422float x120 ;// 0x120 1423float kb_reduction_crouch ;// 0x124 1424float x128 ;// 0x128 1425float x12c ;// 0x12c 1426float x130 ;// 0x130 1427float x134 ;// 0x134 1428float x138 ;// 0x138 1429float x13c ;// 0x13c 1430float x140 ;// 0x140 1431float kb_sakurai_angle_aerial ;// 0x144, sakurai angle becomes this angle when the victim is airborne, in degrees 1432float kb_sakurai_angle_grounded ;// 0x148, sakurai angle becomes this angle when the victim is grounded, in degrees 1433float kb_grounded_sakurai_angle_threshold ;// 0x14c, when knockback force is less than this and victim is grounded, it uses angle 0, in degrees 1434float x150 ;// 0x150, 1435float x154 ;// 0x154 1436float x158 ;// 0x158 1437float x15c ;// 0x15c 1438float x160 ;// 0x160 1439float kb_maxVelX ;// 0x164 1440float hitlag_mult ;// 0x168 1441float hitlag_base ;// 0x16c, is 0 in vanilla 1442float x170 ;// 0x170 1443float x174 ;// 0x174 1444float x178 ;// 0x178 1445float x17c ;// 0x17c 1446float x180 ;// 0x180 1447float x184 ;// 0x184 1448float x188 ;// 0x188 1449float x18c ;// 0x18c 1450float x190 ;// 0x190 1451float hitlag_max ;// 0x194 1452float x198 ;// 0x198 1453float x19c ;// 0x19c 1454float x1a0 ;// 0x1a0 1455float hitlag_elec ;// 0x1a4 1456float tdi_maxAngle ;// 0x1a8 1457float x1ac ;// 0x1ac 1458float x1b0 ;// 0x1b0 1459float x1b4 ;// 0x1b4 1460float x1b8 ;// 0x1b8 1461float kb_bounceDecay ;// 0x1bc 1462float x1c0 ;// 0x1c0 1463float x1c4 ;// 0x1c4 1464float x1c8 ;// 0x1c8 1465float x1cc ;// 0x1cc 1466float x1d0 ;// 0x1d0 1467float x1d4 ;// 0x1d4 1468float x1d8 ;// 0x1d8 1469float x1dc ;// 0x1dc 1470float x1e0 ;// 0x1e0 1471float x1e4 ;// 0x1e4 1472float x1e8 ;// 0x1e8 1473float x1ec ;// 0x1ec 1474float x1f0 ;// 0x1f0 1475float x1f4 ;// 0x1f4 1476float x1f8 ;// 0x1f8 1477float x1fc ;// 0x1fc 1478float x200 ;// 0x200 1479float kb_frameDecay ;// 0x204 1480float x208 ;// 0x208 1481float x20c ;// 0x20c 1482float x210 ;// 0x210 1483float x214 ;// 0x214 1484float x218 ;// 0x218 1485float x21c ;// 0x21c 1486float x220 ;// 0x220 1487float x224 ;// 0x224 1488float x228 ;// 0x228 1489float x22c ;// 0x22c 1490float x230 ;// 0x230 1491float x234 ;// 0x234 1492float x238 ;// 0x238 1493float x23c ;// 0x23c 1494float x240 ;// 0x240 1495float x244 ;// 0x244 1496float x248 ;// 0x248 1497float x24c ;// 0x24c 1498float x250 ;// 0x250 1499float x254 ;// 0x254 1500float x258 ;// 0x258 1501float x25c ;// 0x25c 1502float x260 ;// 0x260 1503float x264 ;// 0x264 1504float x268 ;// 0x268 1505float x26c ;// 0x26c 1506float x270 ;// 0x270 1507float x274 ;// 0x274 1508float x278 ;// 0x278 1509float x27c ;// 0x27c 1510float x280 ;// 0x280 1511float x284 ;// 0x284 1512float x288 ;// 0x288 1513float x28c ;// 0x28c 1514float x290 ;// 0x290 1515float x294 ;// 0x294 1516float x298 ;// 0x298 1517float x29c ;// 0x29c 1518float x2a0 ;// 0x2a0 1519float x2a4 ;// 0x2a4 1520float x2a8 ;// 0x2a8 1521float x2ac ;// 0x2ac 1522float x2b0 ;// 0x2b0 1523float x2b4 ;// 0x2b4 1524float x2b8 ;// 0x2b8 1525float x2bc ;// 0x2bc 1526float x2c0 ;// 0x2c0 1527float x2c4 ;// 0x2c4 1528float x2c8 ;// 0x2c8 1529float x2cc ;// 0x2cc 1530float x2d0 ;// 0x2d0 1531float x2d4 ;// 0x2d4 1532float x2d8 ;// 0x2d8 1533float x2dc ;// 0x2dc 1534float x2e0 ;// 0x2e0 1535float x2e4 ;// 0x2e4 1536float x2e8 ;// 0x2e8 1537float x2ec ;// 0x2ec 1538float x2f0 ;// 0x2f0 1539float x2f4 ;// 0x2f4 1540float x2f8 ;// 0x2f8 1541float x2fc ;// 0x2fc 1542float x300 ;// 0x300 1543float x304 ;// 0x304 1544float x308 ;// 0x308 1545float x30c ;// 0x30c 1546float x310 ;// 0x310 1547float x314 ;// 0x314 1548float x318 ;// 0x318 1549float x31c ;// 0x31c 1550float x320 ;// 0x320 1551float x324 ;// 0x324 1552float x328 ;// 0x328 1553float x32c ;// 0x32c 1554float x330 ;// 0x330 1555float x334 ;// 0x334 1556float escapeair_vel ;// 0x338 1557float escapeair_veldecaymult ;// 0x33c 1558float x340 ;// 0x340 1559float x344 ;// 0x344 1560float x348 ;// 0x348 1561float x34c ;// 0x34c 1562float x350 ;// 0x350 1563float grab_mash_min ;// 0x354 1564float grab_mash_per_handicap ;// 0x358 1565float grab_max_handicap ;// 0x35c 1566float grab_placing_mult ;// 0x360 1567float grab_placing_max ;// 0x364 1568float grab_mash_mult ;// 0x368 1569float x36c ;// 0x36c 1570float x370 ;// 0x370 1571float x374 ;// 0x374 1572float x378 ;// 0x378 1573float x37c ;// 0x37c 1574float x380 ;// 0x380 1575float x384 ;// 0x384 1576float x388 ;// 0x388 1577float x38c ;// 0x38c 1578float x390 ;// 0x390 1579float x394 ;// 0x394 1580float x398 ;// 0x398 1581float x39c ;// 0x39c 1582float x3a0 ;// 0x3a0 1583float grab_mash_per_frame ;// 0x3a4 1584float grab_mash_per_input ;// 0x3a8 1585float x3ac ;// 0x3ac 1586float grab_wiggle_per_input ;// 0x3b0 1587float grab_wiggle_rate ;// 0x3b4 1588float x3b8 ;// 0x3b8 1589float x3bc ;// 0x3bc 1590float x3c0 ;// 0x3c0 1591float x3c4 ;// 0x3c4 1592float x3c8 ;// 0x3c8 1593float x3cc ;// 0x3cc 1594float x3d0 ;// 0x3d0 1595float x3d4 ;// 0x3d4 1596float x3d8 ;// 0x3d8 1597float x3dc ;// 0x3dc 1598float x3e0 ;// 0x3e0 1599float x3e4 ;// 0x3e4 1600float x3e8 ;// 0x3e8 1601float x3ec ;// 0x3ec 1602float x3f0 ;// 0x3f0 1603float x3f4 ;// 0x3f4 1604float x3f8 ;// 0x3f8 1605float x3fc ;// 0x3fc 1606float x400 ;// 0x400 1607float x404 ;// 0x404 1608float x408 ;// 0x408 1609float x40c ;// 0x40c 1610float x410 ;// 0x410 1611float x414 ;// 0x414 1612float x418 ;// 0x418 1613float x41c ;// 0x41c 1614float x420 ;// 0x420 1615float x424 ;// 0x424 1616float x428 ;// 0x428 1617float x42c ;// 0x42c 1618float x430 ;// 0x430 1619float x434 ;// 0x434 1620float x438 ;// 0x438 1621float x43c ;// 0x43c 1622float x440 ;// 0x440 1623float x444 ;// 0x444 1624float x448 ;// 0x448 1625float x44c ;// 0x44c 1626float x450 ;// 0x450 1627float zjostle_frame ;// 0x45c 1628float zjostle_max ;// 0x460 1629float ms_zjostle_frame ;// 0x45c 1630float ms_zjostle_max ;// 0x460 1631float x464 ;// 0x464 1632float x468 ;// 0x468 1633float x46c ;// 0x46c 1634float x470 ;// 0x470 1635float x474 ;// 0x474 1636float x478 ;// 0x478 1637float x47c ;// 0x47c 1638float x480 ;// 0x480 1639float x484 ;// 0x484 1640float x488 ;// 0x488 1641float x48c ;// 0x48c 1642float x490 ;// 0x490 1643float ledge_drop_thresh ;// 0x494 1644float x498 ;// 0x498 1645int cliff_invuln_time ;// 0x49c 1646float x4a0 ;// 0x4a0 1647float x4a4 ;// 0x4a4 1648float x4a8 ;// 0x4a8 1649float x4ac ;// 0x4ac 1650float asdi_mag ;// 0x4b0 1651float x4b4 ;// 0x4b4 1652float x4b8 ;// 0x4b8 1653float asdi_units ;// 0x4bc 1654float x4c0 ;// 0x4c0 1655float x4c4 ;// 0x4c4 1656float x4c8 ;// 0x4c8 1657float x4cc ;// 0x4cc 1658float x4d0 ;// 0x4d0 1659float x4d4 ;// 0x4d4 1660float x4d8 ;// 0x4d8 1661float x4dc ;// 0x4dc 1662float x4e0 ;// 0x4e0 1663float x4e4 ;// 0x4e4 1664float x4e8 ;// 0x4e8 1665float x4ec ;// 0x4ec 1666float x4f0 ;// 0x4f0 1667float x4f4 ;// 0x4f4 1668float x4f8 ;// 0x4f8 1669float x4fc ;// 0x4fc 1670int dead_timer ;// 0x500 1671float x504 ;// 0x504 1672float x508 ;// 0x508 1673float x50c ;// 0x50c 1674float x510 ;// 0x510 1675float x514 ;// 0x514 1676float x518 ;// 0x518 1677float x51c ;// 0x51c 1678float x520 ;// 0x520 1679float x524 ;// 0x524 1680float x528 ;// 0x528 1681float x52c ;// 0x52c 1682float x530 ;// 0x530 1683float x534 ;// 0x534 1684float x538 ;// 0x538 1685float x53c ;// 0x53c 1686float x540 ;// 0x540 1687float x544 ;// 0x544 1688float x548 ;// 0x548 1689float x54c ;// 0x54c 1690float x550 ;// 0x550 1691float x554 ;// 0x554 1692float x558 ;// 0x558 1693float x55c ;// 0x55c 1694float x560 ;// 0x560 1695float x564 ;// 0x564 1696float x568 ;// 0x568 1697float x56c ;// 0x56c 1698float x570 ;// 0x570 1699float x574 ;// 0x574 1700float x578 ;// 0x578 1701float x57c ;// 0x57c 1702float x580 ;// 0x580 1703float x584 ;// 0x584 1704float x588 ;// 0x588 1705float x58c ;// 0x58c 1706float x590 ;// 0x590 1707float x594 ;// 0x594 1708float x598 ;// 0x598 1709float x59c ;// 0x59c 1710float x5a0 ;// 0x5a0 1711float x5a4 ;// 0x5a4 1712float x5a8 ;// 0x5a8 1713float x5ac ;// 0x5ac 1714float x5b0 ;// 0x5b0 1715float x5b4 ;// 0x5b4 1716float x5b8 ;// 0x5b8 1717float x5bc ;// 0x5bc 1718float x5c0 ;// 0x5c0 1719float x5c4 ;// 0x5c4 1720float x5c8 ;// 0x5c8 1721float x5cc ;// 0x5cc 1722float x5d0 ;// 0x5d0 1723float x5d4 ;// 0x5d4 1724float x5d8 ;// 0x5d8 1725float x5dc ;// 0x5dc 1726float x5e0 ;// 0x5e0 1727float x5e4 ;// 0x5e4 1728float x5e8 ;// 0x5e8 1729float x5ec ;// 0x5ec 1730float x5f0 ;// 0x5f0 1731float x5f4 ;// 0x5f4 1732float x5f8 ;// 0x5f8 1733float x5fc ;// 0x5fc 1734float x600 ;// 0x600 1735float x604 ;// 0x604 1736float x608 ;// 0x608 1737float x60c ;// 0x60c 1738float x610 ;// 0x610 1739float x614 ;// 0x614 1740float x618 ;// 0x618 1741float x61c ;// 0x61c 1742float x620 ;// 0x620 1743float x624 ;// 0x624 1744float x628 ;// 0x628 1745float x62c ;// 0x62c 1746float x630 ;// 0x630 1747float x634 ;// 0x634 1748float x638 ;// 0x638 1749float x63c ;// 0x63c 1750float x640 ;// 0x640 1751float x644 ;// 0x644 1752float x648 ;// 0x648 1753float x64c ;// 0x64c 1754float x650 ;// 0x650 1755float x654 ;// 0x654 1756float x658 ;// 0x658 1757float x65c ;// 0x65c 1758float x660 ;// 0x660 1759float x664 ;// 0x664 1760float x668 ;// 0x668 1761float x66c ;// 0x66c 1762float x670 ;// 0x670 1763float x674 ;// 0x674 1764float x678 ;// 0x678 1765float x67c ;// 0x67c 1766float x680 ;// 0x680 1767float x684 ;// 0x684 1768float x688 ;// 0x688 1769float x68c ;// 0x68c 1770float x690 ;// 0x690 1771float x694 ;// 0x694 1772float x698 ;// 0x698 1773float x69c ;// 0x69c 1774float x6a0 ;// 0x6a0 1775float x6a4 ;// 0x6a4 1776float x6a8 ;// 0x6a8 1777float x6ac ;// 0x6ac 1778float x6b0 ;// 0x6b0 1779float x6b4 ;// 0x6b4 1780float x6b8 ;// 0x6b8 1781float x6bc ;// 0x6bc 1782float x6c0 ;// 0x6c0 1783float x6c4 ;// 0x6c4 1784float x6c8 ;// 0x6c8 1785float x6cc ;// 0x6cc 1786float x6d0 ;// 0x6d0 1787float x6d4 ;// 0x6d4 1788float x6d8 ;// 0x6d8 1789float x6dc ;// 0x6dc 1790float x6e0 ;// 0x6e0 1791float x6e4 ;// 0x6e4 1792float x6e8 ;// 0x6e8 1793float x6ec ;// 0x6ec 1794float metal_armor ;// 0x6f0 1795float x6f4 ;// 0x6f4 1796float x6f8 ;// 0x6f8 1797float x6fc ;// 0x6fc 1798float x700 ;// 0x700 1799float x704 ;// 0x704 1800float x708 ;// 0x708 1801float x70c ;// 0x70c 1802float x710 ;// 0x710 1803float x714 ;// 0x714 1804float kb_reduction_ice ;// 0x718 1805float x71c ;// 0x71c 1806float x720 ;// 0x720 1807float x724 ;// 0x724 1808float x728 ;// 0x728 1809float x72c ;// 0x72c 1810float x730 ;// 0x730 1811float x734 ;// 0x734 1812float x738 ;// 0x738 1813float x73c ;// 0x73c 1814float x740 ;// 0x740 1815float x744 ;// 0x744 1816float x748 ;// 0x748 1817float x74c ;// 0x74c 1818float x750 ;// 0x750 1819float x754 ;// 0x754 1820float x758 ;// 0x758 1821float x75c ;// 0x75c 1822float x760 ;// 0x760 1823float x764 ;// 0x764 1824float x768 ;// 0x768 1825float x76c ;// 0x76c 1826float x770 ;// 0x770 1827float x774 ;// 0x774 1828float x778 ;// 0x778 1829float x77c ;// 0x77c 1830float x780 ;// 0x780 1831float x784 ;// 0x784 1832float x788 ;// 0x788 1833float x78c ;// 0x78c 1834float x790 ;// 0x790 1835float x794 ;// 0x794 1836float x798 ;// 0x798 1837float x79c ;// 0x79c 1838float x7a0 ;// 0x7a0 1839float x7a4 ;// 0x7a4 1840float tip_overlap_max ;// 0x7a8 (phantom hit threshold) 1841float x7ac ;// 0x7ac 1842float x7b0 ;// 0x7b0 1843float x7b4 ;// 0x7b4 1844float x7b8 ;// 0x7b8 1845float x7bc ;// 0x7bc 1846float x7c0 ;// 0x7c0 1847float kb_reduction_smashcharge ;// 0x7c4 1848float x7c8 ;// 0x7c8 1849float x7cc ;// 0x7cc 1850float x7d0 ;// 0x7d0 1851float x7d4 ;// 0x7d4 1852float x7d8 ;// 0x7d8 1853float x7dc ;// 0x7dc 1854float x7e0 ;// 0x7e0 1855float x7e4 ;// 0x7e4 1856int meteor_angle_min ;// 0x7e8 1857int meteor_angle_max ;// 0x7ec 1858int meteor_delay ;// 0x7f0, immediate delay before any action can occur 1859float x7f4 ;// 0x7f4 1860float x7f8 ;// 0x7f8 1861float x7fc ;// 0x7fc 1862float x800 ;// 0x800 1863float x804 ;// 0x804 1864float x808 ;// 0x808 1865float x80c ;// 0x80c 1866float x810 ;// 0x810 1867}; 1868 1869struct FighterData 1870{ 1871GOBJ * fighter ;// 0x0 1872int kind ;// 0x4 1873int spawn_num ;// 0x8 1874char ply ;// 0xC 1875char xd ;// 0xD 1876char xe ;// 0xE 1877char xf ;// 0xF 1878int state_id ;// 0x10 1879int action_id ;// 0x14 1880int common_state_num ;// 0x18 1881FtState * ftstates_common ;// 0x1C 1882FtState * ftstates_special ;// 0x20 1883FtAction * ftaction ;// 0x24 1884u16 * dynamics_data ;// 0x28 1885float facing_direction ;// 0x2C 1886float facing_direction_prev ;// 0x30 1887Vec3 scale ;// 0x34 1888int x40 ;// 0x40 1889Mtx temp_mtx ;// 0x44 1890struct phys // 0x74 1891 {// 1892Vec3 anim_vel ;// 0x74 1893Vec3 self_vel ;// 0x80 1894Vec3 kb_vel ;// 0x8C 1895Vec3 atk_shield_kb_vel ;// 0x98 1896Vec3 xA4 ;// 0xA4 1897Vec3 pos ;// 0xB0 1898Vec3 pos_prev ;// 0xBC 1899Vec3 pos_delta ;// 0xC8 1900Vec3 xD4 ;// 0xD4 1901int air_state ;// 0xE0 1902float horzitonal_velocity_queue_will_be_added_to_0xec ;// 0xE4 1903float vertical_velocity_queue_will_be_added_to_0xec ;// 0xE8 1904Vec3 self_vel_ground ;// 0xEC 1905Vec2 nudge_vel ;// 0xF8 1906int x100 ;// 0x100 1907 }phys ;// 1908void * x104 ;// 0x104 1909JOBJDesc * costume_jobjdesc ;// 0x108 1910ftData * ftData ;// 0x10C 1911struct attr // 0x110 1912 {// 1913float walk_initial_velocity ;// 0x110 1914float walk_acceleration ;// 0x114 1915float walk_maximum_velocity ;// 0x118 1916float slow_walk_max ;// 0x11C 1917float mid_walk_point ;// 0x120 1918float fast_walk_min ;// 0x124 1919float ground_friction ;// 0x128 1920float dash_initial_velocity ;// 0x12C 1921float dashrun_acceleration_a ;// 0x130 1922float dashrun_acceleration_b ;// 0x134 1923float dashrun_terminal_velocity ;// 0x138 1924float run_animation_scaling ;// 0x13C 1925float max_runbrake_frames ;// 0x140 1926float grounded_max_horizontal_velocity ;// 0x144 1927float jump_startup_time ;// 0x148 1928float jump_h_initial_velocity ;// 0x14C 1929float jump_v_initial_velocity ;// 0x150 1930float ground_to_air_jump_momentum_multiplier ;// 0x154 1931float jump_h_max_velocity ;// 0x158 1932float hop_v_initial_velocity ;// 0x15C 1933float air_jump_v_multiplier ;// 0x160 1934float air_jump_h_multiplier ;// 0x164 1935int max_jumps ;// 0x168 1936float gravity ;// 0x16C 1937float terminal_velocity ;// 0x170 1938float aerial_drift_stick_mult ;// 0x174 1939float aerial_drift_base ;// 0x178, minimum amount of drift, stick mult is added on top of this 1940float aerial_drift_max ;// 0x17C 1941float aerial_friction ;// 0x180 1942float fastfall_velocity ;// 0x184 1943float horizontal_air_mobility_constant ;// 0x188 1944int jab_2_input_window ;// 0x18C 1945int jab_3_input_window ;// 0x190 1946int frames_to_change_direction_on_standing_turn ;// 0x194 1947float weight ;// 0x198 1948float model_scaling ;// 0x19C 1949float initial_shield_size ;// 0x1A0 1950float shield_break_initial_velocity ;// 0x1A4 1951int rapid_jab_window ;// 0x1A8 1952float rebound_frames ;// 0x1AC 1953int x1B0 ;// 0x1B0 1954int x1B4 ;// 0x1B4 1955float ledge_jump_horizontal_velocity ;// 0x1B8 1956float ledge_jump_vertical_velocity ;// 0x1BC 1957float item_throw_velocity_multiplier ;// 0x1C0 1958float item_discard_vel_mult ;// 0x1C4 1959int x1C8 ;// 0x1C8 1960int x1CC ;// 0x1CC 1961int x1D0 ;// 0x1D0 1962int x1D4 ;// 0x1D4 1963int x1D8 ;// 0x1D8 1964int x1DC ;// 0x1DC 1965int x1E0 ;// 0x1E0 1966int x1E4 ;// 0x1E4 1967int x1E8 ;// 0x1E8 1968float kirby_star_scaling ;// 0x1EC 1969float kirby_b_star_damage ;// 0x1F0 1970float normal_landing_lag ;// 0x1F4 1971float n_air_landing_lag ;// 0x1F8 1972float f_air_landing_lag ;// 0x1FC 1973float b_air_landing_lag ;// 0x200 1974float u_air_landing_lag ;// 0x204 1975float d_air_landing_lag ;// 0x208 1976float nametag_height ;// 0x20C 1977float wall_tech_x_offset ;// 0x210 1978float wall_jump_horizontal_velocity ;// 0x214 1979float wall_jump_vertical_velocity ;// 0x218 1980int x21C ;// 0x21C 1981float trophy_scale ;// 0x220 1982Vec3 bunny_hood_left_offset ;// 0x224 1983Vec3 bunny_hood_right_offset ;// 0x230 1984float bunny_hood_scale ;// 0x23C 1985Vec3 head_flower_offset ;// 0x240 1986float head_flower_scale ;// 0x24C 1987int x250 ;// 0x250 1988int x254 ;// 0x254 1989int unk_walljump ;// 0x258, 1990float bubble_ratio ;// 0x25C 1991int x260 ;// 0x260 1992int x264 ;// 0x264 1993int x268 ;// 0x268 1994int x26C ;// 0x26C 1995float respawn_platform_scale ;// 0x270 1996int x274 ;// 0x274 1997int x278 ;// 0x278 1998int camera_zoom_target_bone ;// 0x27C 1999int x280 ;// 0x280 2000int x284 ;// 0x284 2001int x288 ;// 0x288 2002int special_jump_action___1 ;// 0x28C 2003int weight_dependent_throw_speed_flags ;// 0x290 2004 }attr ;// 2005struct 2006 { 2007Vec2 ground_light_offset ;// 0x294 2008Vec2 ground_light_size ;// 0x29C 2009Vec2 ground_heavy_offset ;// 0x2A4 2010Vec2 ground_heavy_size ;// 0x2AC 2011Vec2 air_light_offset ;// 0x2B4 2012Vec2 air_light_size ;// 0x2BC 2013 }itpickup ; 2014float jostle_offset ;// 0x2C4 2015float jostle_range ;// 0x2C8 2016int x2CC ;// 0x2CC 2017FtMultiJumpDesc * multi_jump_desc ;// 0x2D0 2018void * special_attributes ;// 0x2D4 2019void * special_attributes2 ;// 0x2D8 2020struct // 0x2DC, anim_length_lookup 2021 {// 2022float walkslow ;// 0x2DC 2023float walkmiddle ;// 0x2E0 2024float walkfast ;// 0x2E4 2025float guardon ;// 0x2E8 2026float landing ;// 0x2EC 2027 }anim_length_lookup ;// 2028FtDynamicBoneset dynamics_boneset [10 ];// 0x2f0 2029int dynamics_num ;// 0x3E0 2030struct script // 0x3E4 2031 {// 2032float script_event_timer ;// 0x3E4 2033float script_frame_timer ;// 0x3E8 2034int * script_current ;// 0x3EC 2035int script_loop_num ;// 0x3F0 2036int * script_return ;// 0x3F4 2037 }script ;// 2038int unk ;// 0x3F8 2039int unk3FC ;// 0x3FC 2040int pointer_to_0x460 ;// 0x400 2041int pointer_to_0x3c0 ;// 0x404 2042ColorOverlay color [3 ];// 0x408 2043LOBJ * LObj ;// 0x588 2044int anim_num ;// 0x58C 2045Figatree * figatree_curr ;// 0x590, pointer to the FtAnim struct 2046struct // 0x594 2047 { 2048u32 transn_phys_update :1 ;// 0x80000000, gives fighter speed based on transN offset 2049u32 loop_anim :1 ;// 0x40000000, loops animation 2050u32 x20000000 :1 ;// 0x20000000 2051u32 x10000000 :1 ;// 0x10000000 2052u32 no_dynamics :1 ;// 0x08000000 2053u32 x04000000 :1 ;// 0x04000000 2054u32 transn_use_model_scale :1 ;// 0x02000000 2055u32 x01c00000 :3 ;// 0x01C00000 2056u32 x003ffe00 :13 ;// 0x003ffe00 2057u32 disable_blend_bone_index :4 ;// 0x000001e0 2058u32 kind :5 ;// 0x0000001f, ft kind, used in vanilla melee to determine thrown boneset or ft boneset 2059 }action_flags ; 2060void * anim_requested ;// 0x598 2061void * anim_cache_curr ;// 0x59C 2062void * anim_cache_persist ;// 0x5A0 2063void * anim_curr_ARAM ;// 0x5A4 2064void * anim_persist_ARAM ;// 0x5A8 2065int dobj_toggle_num ;// 0x5AC 2066int x5B0 ;// 0x5B0 2067int x5B4 ;// 0x5B4 2068int x5B8 ;// 0x5B8 2069int x5BC ;// 0x5BC 2070int x5C0 ;// 0x5C0 2071int x5C4 ;// 0x5C4 2072int x5C8 ;// 0x5C8 2073int texanim_num ;// 0x5CC, number of texture anims this fighter has 2074int x5D0 ;// 0x5D0 2075int x5D4 ;// 0x5D4 2076int x5D8 ;// 0x5D8 2077int x5DC ;// 0x5DC 2078int x5E0 ;// 0x5E0 2079int x5E4 ;// 0x5E4 2080FighterBone * bones ;// 0x5E8 2081int bone_num ;// 0x5EC 2082DOBJ ** dobj_lookup ;// 0x5F0 2083FtVis dobj_toggle [12 ];// 0x5f4 2084Effect * gfx ;// 0x60C 2085int x610 ;// 0x610 2086int x614 ;// 0x614 2087char pad_index ;// 0x618 2088char costume_id ;// 0x619 2089char color_overlay_id ;// 0x61A 2090u8 team ;// 0x61B 2091char x61C ;// 0x61C 2092char x61D ;// 0x61D 2093/* fp+61E */ u8 filler_x61E [0x620 - 0x61E ]; 2094struct input // input data 2095 {// 2096Vec2 lstick ;// 0x620 2097Vec2 lstick_prev ;// 0x628 2098int x630 ;// 0x630 2099int x634 ;// 0x634 2100Vec2 cstick ;// 0x638 2101Vec2 cstick_prev ;// 0x640 2102int x648 ;// 0x648 2103int x64C ;// 0x64C 2104float trigger ;// 0x650 2105float trigger_prev ;// 0x654 2106int x658 ;// 0x658 2107int held ;// 0x65C 2108int held_prev ;// 0x660 2109int x664 ;// 0x664 2110int down ;// 0x668 2111int x66C ;// 0x66C 2112char timer_lstick_tilt_x ;// 0x670 2113char timer_lstick_tilt_y ;// 0x671 2114char timer_trigger_analog ;// 0x672 2115char timer_lstick_smash_x ;// 0x673 2116char timer_lstick_smash_y ;// 0x674 2117char timer_trigger_digital ;// 0x675 2118char timer_lstick_any_x ;// 0x676 2119char timer_lstick_any_y ;// 0x677 2120char timer_trigger_any ;// 0x678 2121char x679 ;// 0x679 2122char x67A ;// 0x67A 2123char x67B ;// 0x67B 2124char timer_a ;// 0x67C 2125char timer_b ;// 0x67D 2126char timer_xy ;// 0x67E 2127char timer_trigger_any_ignore_hitlag ;// 0x67F 2128char timer_LR ;// 0x680 2129char timer_padup ;// 0x681 2130char timer_paddown ;// 0x682 2131char timer_item_release ;// 0x683 2132char since_rapid_lr ;// 0x684 2133char timer_jump ;// 0x685 2134char timer_specialhi ;// 0x686 2135char timer_speciallw ;// 0x687 2136char timer_specials ;// 0x688 2137char timer_specialn ;// 0x689 2138char timer_jump_lockout ;// 0x68A 2139char timer_specialhi_lockout ;// 0x68B 2140 }input ;// 2141Vec3 transN_pos ;// x68c 2142Vec3 transN_pos_prev ;// 0x698 2143Vec3 transN_offset ;// 0x6A4 2144Vec3 transN_offset_prev ;// 0x6B0 2145float input_stickangle ;// 0x6BC 2146int x6C0 ;// 0x6C0 2147int x6C4 ;// 0x6C4 2148int x6C8 ;// 0x6C8 2149int x6CC ;// 0x6CC 2150int x6D0 ;// 0x6D0 2151int x6D4 ;// 0x6D4 2152int x6D8 ;// 0x6D8 2153int x6DC ;// 0x6DC 2154int x6E0 ;// 0x6E0 2155int x6E4 ;// 0x6E4 2156int x6E8 ;// 0x6E8 2157int x6EC ;// 0x6EC 2158CollData coll_data ;// 0x6F0 -> 0x88C 2159CmSubject * camera_subject ;// 0x890 2160struct state 2161 { 2162float frame ;// 0x894, current frame of the animation 2163int x898 ;// 0x898 2164float rate ;// 0x89C, current speed rate of the animation 2165int x8a0 ;// 0x8a0 2166float blend ;// 0x8a4, current interpolation value of the animation 2167float current_blend ;// 0x8a8 2168 }state ; 2169JOBJ * anim_skeleton ;// 0x8ac 2170int x8b0 ;// 0x8b0 2171int x8b4 ;// 0x8b4 2172int x8b8 ;// 0x8b8 2173int x8bc ;// 0x8bc 2174int curr_hold_anim ;// 0x8c0 2175int x8c4 ;// 0x8c4 2176int x8c8 ;// 0x8c8 2177int x8cc ;// 0x8cc 2178int x8d0 ;// 0x8d0 2179int x8d4 ;// 0x8d4 2180int x8d8 ;// 0x8d8 2181int x8dc ;// 0x8dc 2182int x8e0 ;// 0x8e0 2183int x8e4 ;// 0x8e4 2184int x8e8 ;// 0x8e8 2185int x8ec ;// 0x8ec 2186int x8f0 ;// 0x8f0 2187int x8f4 ;// 0x8f4 2188int x8f8 ;// 0x8f8 2189int x8fc ;// 0x8fc 2190int x900 ;// 0x900 2191int x904 ;// 0x904 2192int x908 ;// 0x908 2193int x90c ;// 0x90c 2194int x910 ;// 0x910 2195ftHit hitbox [4 ];// 0x914 2196ftHit throw_hitbox [2 ];// 0xdf4, 2197ftHit thrown_hitbox ;// 0x1064 2198u8 team_unk ;// 0x119c, friendly fire related 2199u8 grabber_ply ;// 0x119D, slot ID of the person grabbing this fighter 2200u8 hurt_num ;// 0x119E, number of hurtboxes 2201FtHurt hurtbox [15 ];// 0x11A0 2202FtCoin coinbox [2 ];// 0x1614 2203int dynamics_hit_num ;// 0x166c 2204DynamicHit dynamics_hit [11 ];// 0x1670 2205float x1828 ;// 0x1828 2206struct dmg // 0x182c 2207 {// 2208int behavior ;// 0x182c 2209float percent ;// 0x1830 2210int x1834 ;// 0x1834 2211float percent_temp ;// 0x1838 2212int applied ;// 0x183c 2213int x1840 ;// 0x1840 2214FtDmgLog hit_log ;// 0x1844, info regarding the last solid hit 2215FtDmgLog tip_log ;// 0x1870, info regarding the last phantom hit 2216float tip_hitlag ;// 0x189c, hitlag is stored here during phantom hits @ 8006d774 2217float tip_force_applied ;// 0x18a0, used to check if a tip happened this frame 2218float kb_mag ;// 0x18a4 kb magnitude 2219int x18a8 ;// 0x18a8 2220int time_since_hit ;// 0x18ac in frames 2221float armor_unk ;// 0x18b0, is prioritized over the armor below 2222float armor ;// 0x18b4, used by yoshi double jump 2223Vec2 vibrate_offset ;// 0x18b8 2224int x18c0 ;// 0x18c0 2225int source_ply ;// 0x18c4 damage source ply number 2226int x18c8 ;// 0x18c8 2227int x18cc ;// 0x18cc 2228int x18d0 ;// 0x18d0 2229int x18d4 ;// 0x18d4 2230int x18d8 ;// 0x18d8 2231int x18dc ;// 0x18dc 2232int x18e0 ;// 0x18e0 2233int x18e4 ;// 0x18e4 2234int x18e8 ;// 0x18e8 2235u16 atk_instance_hurtby ;// 0x18ec. Last Attack Instance This Player Was Hit by, 2236int x18f0 ;// 0x18f0 2237int x18f4 ;// 0x18f4 2238u8 vibrate_index ;// 0x18f8, which dmg vibration values to use 2239u8 x18f9 ;// 0x18f9 2240u16 vibrate_timer ;// 0x18fa 2241u8 vibrate_index_cur ;// 0x18fc, index of the current offset 2242u8 vibrate_offset_num ;// 0x18fd, number of different offsets for this dmg vibration index 2243Vec2 ground_slope ;// 0x1900 2244int x1908 ;// 0x1908 2245void * random_sfx_table ;// 0x190c, contains a ptr to an sfx table when requesting a random sfx 2246int offscreen_damage_timer ;// 0x1910, counts up to 60, then player takes 1 percent 2247int x1914 ;// 0x1914 2248struct // aka clank 2249 {// 2250int dmg_dealt ;// 0x1918, 2251float dmg_based_rate_mult ;// 0x191c, updated @ 80077aec (when hitting projectile). is equal to 3 + (damageDealt * 0.3) 2252float dir ;// 0x1920, direction the rebound/clank occured in 2253 }rebound ;// 2254int x1924 ;// 0x1924 2255int x1928 ;// 0x1928 2256int x192c ;// 0x192c 2257struct // 0x1930 2258 {// 2259Vec3 pos_prev ;// 0x1930 2260Vec3 pos_cur ;// 0x193c 2261 }footstool ;// 2262int x1948 ;// 0x1948 2263int x194c ;// 0x194c 2264int x1950 ;// 0x1950 2265float x1954 ;// 0x1954, 2266float hitlag_env_frames ;// 0x1958, Environment Hitlag Counter (used for peachs castle switches) 2267float hitlag_frames ;// 0x195c 2268float vibrate_mult ;// 0x1960 2269float x1964 ;// 0x1964 2270 }dmg ;// 2271struct jump // 0x1968 2272 {// 2273char jumps_used ;// 0x1968 2274char walljumps_used ;// 0x1969 2275 }jump ;// 2276float hitlag_mult ;// 0x196c 2277int x1970 ;// 0x1970 2278GOBJ * item_held ;// 0x1974 2279GOBJ * x1978 ;// 0x1978 2280int x197c ;// 0x197c 2281GOBJ * item_head ;// 0x1980 2282GOBJ * item_held_spec ;// 0x1984, special held item 2283struct hurt // 0x1988 2284 {// 2285int kind_script ;// 0x1988, hurtkind set by action script 2286int kind_game ;// 0x198c, hurtkind set directly by game code (respawn, ledge, etc) 2287struct // 2288 {// 2289int ledge ;// 0x1990 2290int respawn ;// 0x1994 2291 }intang_frames ;// amount of intangibility frames remaining 2292 }hurt ;// 2293struct shield // melee only logs the highest damage dealing shield attack for that frame 2294 { 2295float health ;// 0x1998 2296float lightshield_amt ;// 0x199c 2297int dmg_taken ;// 0x19a0, seems to be all damage taken during the frame, is reset at the end of the frame 2298int dmg_taken2 ;// 0x19a4, idk there so many of these 2299GOBJ * dmg_source ;// 0x19a8, points to the entity that hit the shield 2300float hit_direction ;// 0x19ac 2301int hit_attr ;// 0x19b0, attribute of the hitbox that collided 2302float x19b4 ;// 0x19b4 2303float x19b8 ;// 0x19b8 2304int dmg_taken3 ;// 0x19bc, seems to be the most recent amount of damage taken 2305 }shield ; 2306struct shield_bubble // 0x19c0 2307 { 2308JOBJ * bone ;// 0x19c0 2309unsigned char is_checked :1 ;// 0x19d0 0x80. is checked for collision when 0 2310Vec3 pos ;// 19d4 2311Vec3 offset ;// 0x19d4 2312float size_mult ;// 0x19e0 2313 }shield_bubble ; 2314struct reflect_bubble // 0x19e4 2315 { 2316JOBJ * bone ;// 0x19e4 2317unsigned char is_checked :1 ;// 0x19d0 0x80. is checked for collision when 0 2318Vec3 pos ;// 0x19d4 2319Vec3 offset ;// 0x19f8 2320float size_mult ;// 0x1a04 2321 }reflect_bubble ; 2322struct absorb_bubble // 0x1a08 2323 { 2324JOBJ * bone ;// 0x1a08 2325unsigned char is_checked :1 ;// 0x1a0c 0x80. is checked for collision when 0 2326Vec3 pos ;// 0x1a10 2327Vec3 offset ;// 0x1a1c 2328float size_mult ;// 0x1a28 2329 }absorb_bubble ; 2330struct reflect_hit // 0x1a2c 2331 {// 2332float hit_direction ;// 0x1a2c 2333int max_dmg ;// 0x1a30 2334float dmg_mult ;// 0x1a34 2335int is_break ;// 0x1a38 2336 }reflect_hit ;// 2337struct absorb_hit // 0x1a40 2338 {// 2339int x1a3c ;// 0x1a3c 2340float hit_direction ;// 0x1a40 2341int dmg_taken ;// 0x1a44 2342int hits_taken ;// 0x1a48 2343 }absorb_hit ;// 2344struct grab // 0x1a4c 2345 {// 2346float grab_timer ;// 0x1a4c 2347int x1a50 ;// 0x1a50 2348int x1a54 ;// 0x1a54 2349GOBJ * victim ;// 0x1a58 2350GOBJ * attacker ;// 0x1a5c 2351GOBJ * item ;// 0x1a60 2352int x1a64 ;// 0x1a64 2353u16 x1a68 ;// 0x1a68 2354u16 vuln ;// 0x1a6a 2355int x1a6c ;// 0x1a6c 2356int x1a70 ;// 0x1a70 2357Vec2 release_pos ;// 0x1a74, this is determined when instantiating the player, its actually the offset of XRotN from TopN (800690d0) 2358int x1a7c ;// 0x1a7c 2359int x1a80 ;// 0x1a80 2360int x1a84 ;// 0x1a84 2361 }grab ;// 2362CPU cpu ;// 0x1a88 2363int x1fe0 ;// 0x1fe0 2364int x1fe4 ;// 0x1fe4 2365int x1fe8 ;// 0x1fe8 2366int x1fec ;// 0x1fec 2367int x1ff0 ;// 0x1ff0 2368int x1ff4 ;// 0x1ff4 2369int x1ff8 ;// 0x1ff8 2370int x1ffc ;// 0x1ffc 2371int x2000 ;// 0x2000 2372int x2004 ;// 0x2004 2373int x2008 ;// 0x2008 2374int x200c ;// 0x200c 2375int x2010 ;// 0x2010 2376int x2014 ;// 0x2014 2377int x2018 ;// 0x2018 2378int x201c ;// 0x201c 2379int x2020 ;// 0x2020 2380int x2024 ;// 0x2024 2381int metal_timer ;// 0x2028 2382int metal_health ;// 0x202c 2383int x2030 ;// 0x2030 2384int x2034 ;// 0x2034 2385int x2038 ;// 0x2038 2386int x203c ;// 0x203c 2387int x2040 ;// 0x2040 2388int x2044 ;// 0x2044 2389int x2048 ;// 0x2048 2390int x204c ;// 0x204c 2391int x2050 ;// 0x2050 2392int x2054 ;// 0x2054 2393int x2058 ;// 0x2058 2394int x205c ;// 0x205c 2395int x2060 ;// 0x2060 2396int ledge_cooldown ;// 0x2064 2397int atk_kind ;// 0x2068, non attacks have id 1 2398int x206c ;// 0x206c 2399u8 x2070 ;// 0x2070 2400u8 state_kind :4 ;// 0x2071, 0xf0 2401u8 x2071_x0f :4 ;// 0x2071, 0x0f 2402u8 x2072 ;// 0x2072 2403u8 x2073 ;// 0x2073 2404int x2074 ;// 0x2074, this is the start of some struct... present in items as well @ 0xd94 2405int x2078 ;// 0x2078 2406int x207c ;// 0x207c 2407int x2080 ;// 0x2080 2408int x2084 ;// 0x2084 2409u16 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. 2410int x208c ;// 0x208c 2411u16 combo_count ;// 0x2090 2412u16 x2092 ;// 0x2092 2413GOBJ * victim ;// 0x2094 2414u16 x2098 ;// 0x2098 2415u16 is_hide_player_indicator ;// 0x209a 2416int x209c ;// 0x209c 2417JOBJ * accessory ;// 0x20a0 2418int x20a4 ;// 0x20a4 2419void * shadow ;// 0x20a8, ASSERTS @ 8037f7b8, describes multiple struct members 2420int x20ac ;// 0x20ac 2421struct afterimage // 2422 {// 2423struct FtAfterImageKey key [3 ];// 0x20b0 2424float afterimage_bottom ;// 0x20f8 2425float afterimage_top ;// 0x20fc 2426u8 afterimage_state ;// 0x2100 2427unsigned char afterimage_num :7 ;// 0x2101 2428 }afterimage ;// 2429int x2104 ;// 0x2104 2430int x2108 ;// 0x2108 2431struct // 0x210c 2432 {// 2433s8 timer ;// 0x210c, Set to 0 when contact with a wall (other conditions necessary) 2434float direction ;// 0x2110 2435 }wall ;// 2436struct smash // 0x2114 2437 {// 2438int state ;// 0x2114 0 = none, 1 = pre-charge, 2 = charging, 3 = release 2439int frame ;// 0x2118 number of frames fighter has charged for 2440float hold_frame ;// 0x211c frame that charge begins/ends 2441float dmg_mult ;// 0x2120 damage multiplier 2442float speed_mult ;// 0x2124 speed multiplier? 2443int x2128 ;// 0x2128 2444int x212c ;// 0x212c 2445int is_sfx_played ;// 0x2130 bool for smash sfx? 2446u8 vibrate_frame ;// 0x2134 2447u8 x22135 ;// 0x2135 2448float since_hitbox ;// 0x2138 2449 }smash ;// 2450int x213c ;// 0x213c 2451int x2140 ;// 0x2140 2452int x2144 ;// 0x2144 2453int x2148 ;// 0x2148 2454int x214c ;// 0x214c 2455int x2150 ;// 0x2150 2456int x2154 ;// 0x2154 2457int x2158 ;// 0x2158 2458int x215c ;// 0x215c 2459int x2160 ;// 0x2160 2460int x2164 ;// 0x2164 2461int x2168 ;// 0x2168 2462int x216c ;// 0x216c 2463int x2170 ;// 0x2170 2464Vec3 thrown_origin ;// 0x2174, offset of child from parent, used for placing the child when the grab breaks 2465int x2180 ;// 0x2180 2466int x2184 ;// 0x2184 2467int screen_pixel_x ;// 0x2188, current pixel the fighter occupies on screen 2468int screen_pixel_y ;// 0x218c, current pixel the fighter occupies on screen 2469struct cb 2470 { 2471void (* OnGrabFighter_Self )(GOBJ * fighter );// 0x2190 2472void (* x2194 )(GOBJ * fighter );// 0x2194, i think this is on grabbed items 2473void (* OnGrabFighter_Victim )(GOBJ * victim ,GOBJ * self );// 0x2198 2474int (* IASA )(GOBJ * fighter );// 0x219C 2475void (* Anim )(GOBJ * fighter );// 0x21A0 2476void (* Phys )(GOBJ * fighter );// 0x21a4 2477void (* Coll )(GOBJ * fighter );// 0x21a8 2478void (* Cam )(GOBJ * fighter );// 0x21ac 2479void (* Accessory1 )(GOBJ * fighter );// 0x21b0 2480void (* 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 2481void (* Accessory_Freeze )(GOBJ * fighter );// 0x21b8, only runs during hitlag 2482void (* Accessory4 )(GOBJ * fighter );// 0x21bc 2483void (* OnGiveDamage )(GOBJ * fighter );// 0x21c0 2484void (* OnShieldHit )(GOBJ * fighter );// 0x21c4 2485void (* OnReflectHit )(GOBJ * fighter );// 0x21c8 2486void (* x21cc )(GOBJ * fighter );// 0x21cc 2487void (* EveryHitlag )(GOBJ * fighter );// 0x21d0 2488void (* EnterHitlag )(GOBJ * fighter );// 0x21d4 2489void (* ExitHitlag )(GOBJ * fighter );// 0x21d8 2490void (* OnTakeDamage )(GOBJ * fighter );// 0x21dc 2491void (* OnDeath_Persist )(GOBJ * fighter );// 0x21e0 2492void (* OnDeath_State )(GOBJ * fighter );// 0x21e4, internally Dead_Proc as evidenced by 800f5430 2493void (* OnDeath3 )(GOBJ * fighter );// 0x21e8 2494void (* OnStateChange )(GOBJ * fighter );// 0x21ec 2495void (* OnTakeDamage2 )(GOBJ * fighter );// 0x21f0 2496void (* OnHurtboxDetect )(GOBJ * fighter );// 0x21f4 2497void (* OnSpin )(GOBJ * fighter );// 0x21f8 2498 }cb ; 2499unsigned char x21fc_1 :1 ;// 0x80 - x21fc_ 2500unsigned char show_center_sphere :1 ;// 0x40 - x21fc_ 2501unsigned char show_item_pickup :1 ;// 0x20 - x21fc_ 2502unsigned char show_cpu_ai :1 ;// 0x10 - x21fc_ 2503unsigned char show_footstool :1 ;// 0x8 - x21fc_ 2504unsigned char show_dynamics :1 ;// 0x4 - x21fc_ 2505unsigned char show_hit :1 ;// 0x2 - x21fc_ 2506unsigned char show_model :1 ;// 0x1 - x21fc_ 2507struct ftcmd_var // 0x2200 2508 {// 2509int flag0 ;// 0x2200 2510int flag1 ;// 0x2204 2511int flag2 ;// 0x2208 2512int flag3 ;// 0x220C 2513 }ftcmd_var ;// 2514struct flags // 0x2210 2515 {// 2516unsigned char throw_1 :1 ;// 0x80 - x2210 2517unsigned char throw_2 :1 ;// 0x40 - x2210 2518unsigned char throw_3 :1 ;// 0x20 - x2210 2519unsigned char throw_release :1 ;// 0x10 - x2210. also used to change users direction during aerial attacks 2520unsigned char throw_turn :1 ;// 0x8 - x2210 2521unsigned char throw_6 :1 ;// 0x4 - x2210 2522unsigned char throw_7 :1 ;// 0x2 - x2210 2523unsigned char throw_8 :1 ;// 0x1 - x2210 2524char x2211 ;// x2211 2525char x2212 ;// x2212 2526char x2213 ;// x2213 2527// float throw_timerval; // 0x2214 - equal to script_event_timer of the attacker 2528char x2214 ;// x2214 2529char x2215 ;// x2215 2530unsigned char x2216_x80 :1 ;// 0x80 - x2216 2531unsigned char x2216_x40 :1 ;// 0x40 - x2216 2532unsigned char is_throwing :1 ;// 0x20 - x2216 2533unsigned char x2216_x10 :1 ;// 0x10 - x2216. also used to change users direction during aerial attacks 2534unsigned char x2216_x08 :1 ;// 0x8 - x2216 2535unsigned char x2216_x04 :1 ;// 0x4 - x2216 2536unsigned char x2216_x02 :1 ;// 0x2 - x2216 2537unsigned char x2216_x01 :1 ;// 0x1 - x2216 2538char x2217 ;// x2217 2539unsigned char past_iasa :1 ;// 0x80 - x2218 2540unsigned char x2218_2 :1 ;// 0x40 - x2218 2541unsigned char has_rapid_jab :1 ;// 0x20 - x2218 2542unsigned char reflect_enable :1 ;// 0x10 - x2218 2543unsigned char reflect_nochangeowner :1 ;// 0x8 - x2218 2544unsigned char x2218_6 :1 ;// 0x4 - x2218 2545unsigned char absorb_enable :1 ;// 0x2 - x2218 2546unsigned char absorb_unk :1 ;// 0x1 - x2218 2547unsigned char persistent_gfx :1 ;// 0x80 is shielding bool. 0x80 - 0x2219 2548unsigned char immune :1 ;// 0x40 - 0x2219, will skip all hit collision logic when raised (8006cbbc) 2549unsigned char is_ignore_death :1 ;// 0x20 - 0x2219 2550unsigned char hitbox_active :1 ;// 0x10 - 0x2219 2551unsigned char x2219_5 :1 ;// 0x8 - 0x2219 2552unsigned char freeze :1 ;// 0x4 - 0x2219 2553unsigned char hitlag_unk :1 ;// 0x2 - 0x2219 2554unsigned char hitlag_unk2 :1 ;// 0x1 - 0x2219 2555unsigned char x221a_1 :1 ;// 0x80 - 0x221a 2556unsigned char x221a_2 :1 ;// 0x40 - 0x221a 2557unsigned char hitlag :1 ;// 0x20 - 0x221a 2558unsigned char hitlag_victim :1 ;// 0x10 - 0x221a 2559unsigned char is_fastfall :1 ;// 0x8 - 0x221a 2560unsigned char no_hurt_script :1 ;// 0x4 - 0x221a 2561unsigned char x221a_7 :1 ;// 0x2 - 0x221a 2562unsigned char gfx_persist :1 ;// 0x1 - 0x221a 2563unsigned char shield_enable :1 ;// 0x80 - 0x221b 2564unsigned char shield_x40 :1 ;// 0x40 - 0x221b 2565unsigned char shield_x20 :1 ;// 0x20 - 0x221b 2566unsigned char shield_x10 :1 ;// 0x10 - 0x221b 2567unsigned char shield_x8 :1 ;// 0x8 - 0x221b 2568unsigned char x221b_grab :1 ;// 0x4 - 0x221b, is checked at 80079304, skips some logic 2569unsigned char x221b_7 :1 ;// 0x2 - 0x221b 2570unsigned char attacker_attached_to_victim :1 ;// 0x1 - 0x221b, used for determining which player the anchor is during throw release 2571unsigned 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) 2572unsigned char x221c_2 :1 ;// 0x40 - 0x221c 2573unsigned char is_powershield :1 ;// 0x20 - 0x221c 2574unsigned char x221c_4 :1 ;// 0x10 - 0x221c 2575unsigned char x221c_5 :1 ;// 0x8 - 0x221c 2576unsigned char x221c_6 :1 ;// 0x4 - 0x221c 2577unsigned char hitstun :1 ;// 0x2 - 0x221c 2578unsigned char ik_orientation :1 ;// 0x1 = 0x221c 2579unsigned char ik_rfoot :1 ;// 0x80 - 0x221d 2580unsigned char ik_lfoot :1 ;// 0x40 - 0x221d 2581unsigned char ftvis_reqrevert :1 ;// 0x20 - 0x221d, request all ftvis revert to default next state change 2582unsigned char input_enable :1 ;// 0x10 - 0x221d 2583unsigned char x221d_5 :1 ;// 0x8 - 0x221d 2584unsigned char nudge_disable :1 ;// 0x4 - 0x221d 2585unsigned char ground_ignore :1 ;// 0x2 - 0x221d 2586unsigned char x221d_8 :1 ;// 0x1 - 0x221d 2587unsigned char invisible :1 ;// 0x80 - 0x221e 2588unsigned char x221e_2 :1 ;// 0x40 - 0x221e 2589unsigned char x221e_3 :1 ;// 0x20 - 0x221e 2590unsigned char item_visible :1 ;// 0x10 - 0x221e 2591unsigned char item_head_visible :1 ;// 0x8 - 0x221e, head items are visible when this is enabled 2592unsigned char invisible_script :1 ;// 0x4 - 0x221e 2593unsigned char x221e_7 :1 ;// 0x2 - 0x221e 2594unsigned char x221e_8 :1 ;// 0x1 - 0x221e 2595unsigned char is_offscreen :1 ;// 0x80 - 0x221f 2596unsigned char dead :1 ;// 0x40 - 0x221f 2597unsigned char x221f_3 :1 ;// 0x20 - 0x221f, hides player indicator 2598unsigned char sleep :1 ;// 0x10 - 0x221f 2599unsigned char ms :1 ;// 0x08 - 0x221f, ms = master/slave. is 1 when the player is a slave 2600unsigned char x221f_6 :1 ; 2601unsigned char x221f_7 :1 ; 2602unsigned char x221f_8 :1 ; 2603char can_input_multijump ;// 0x2220 2604char flags_2221 ;// 0x2221 2605unsigned char x2222_1 :1 ;// 0x80 - 0x2222 2606unsigned char is_multijump :1 ;// 0x40 - 0x2222 2607unsigned char x2222_grab :1 ;// 0x20 - 0x2222 2608unsigned char ceilko_nokb :1 ;// 0x10 - 0x2222, allow death off top without any Y KB 2609unsigned char x2222_5 :1 ;// 0x08 - 0x2222 2610unsigned char has_follower :1 ;// 0x04 - 0x2222, this makes the subcharacter enter sleep when the main char dies 2611unsigned char x2222_skip_phys_update :1 ;// 0x02 - 0x2222 2612unsigned char x2222_8 :1 ;// 0x01 - 0x2222 2613unsigned char x2223_1 :1 ;// 0x80 - 0x2223 2614unsigned char x2223_2 :1 ;// 0x40 - 0x2223 2615unsigned char x2223_3 :1 ;// 0x20 - 0x2223 2616unsigned char x2223_4 :1 ;// 0x10 - 0x2223 2617unsigned char x2223_5 :1 ;// 0x8 - 0x2223 2618unsigned char x2223_6 :1 ;// 0x4 - 0x2223, footstool related? checked @ 800808dc 2619unsigned char is_always_metal :1 ;// 0x2 - 0x2223 2620unsigned char is_metal :1 ;// 0x1 - 0x2223 2621unsigned char x2224_1 :1 ;// 0x80 - 0x2224 2622unsigned char x2224_2 :1 ;// 0x40 - 0x2224 2623unsigned char stamina_dead :1 ;// 0x20 - 0x2224 2624unsigned char x2224_4 :1 ;// 0x10 - 0x2224 2625unsigned char x2224_5 :1 ;// 0x8 - 0x2224 2626unsigned char x2224_6 :1 ;// 0x4 - 0x2224 2627unsigned char x2224_7 :1 ;// 0x2 - 0x2224 2628unsigned char can_walljump :1 ;// 0x1 - 0x2224 2629unsigned char x2225_1 :1 ;// 0x80 - 0x2225 2630unsigned char x2225_2 :1 ;// 0x40 - 0x2225 2631unsigned char has_model_addition :1 ;// 0x20 - 0x2225 bool for if fighter has a model addition, like kirby copy ability and puff hat 2632unsigned char x2225_4 :1 ;// 0x10 - 0x2225 2633unsigned char x2225_5 :1 ;// 0x8 - 0x2225 2634unsigned char x2225_6 :1 ;// 0x4 - 0x2225 2635unsigned char is_mute_voice :1 ;// 0x2 - 0x2225 2636unsigned char is_stamina :1 ;// 0x1 - 0x2225 2637unsigned char x2226_1 :1 ;// 0x80 - 0x2226 2638unsigned char x2226_2 :1 ;// 0x40 - 0x2226 2639unsigned char is_robj_child :1 ;// 0x20 - 0x2226, might actually be for skipping grab collision 2640unsigned char x2226_x10 :1 ;// 0x10 - 0x2226 2641unsigned char cloak1 :1 ;// 0x8 - 0x2226 2642unsigned char cloak2 :1 ;// 0x4 - 0x2226 2643unsigned char x2226_7 :1 ;// 0x2 - 0x2226 2644unsigned char x2226_8 :1 ;// 0x1 - 0x2226 2645char flags_2227 ;// 0x2227 2646char x2228_1 :1 ;// 0x80 - 0x2228 2647char x2228_2 :1 ;// 0x40 - 0x2228 2648char use_sandbag_logic :1 ;// 0x20 - 0x2228, only sandbag uses this! ignores death and forces missed tech @ 80097d58 2649char x2228_4 :1 ;// 0x10 - 0x2228 2650char x2228_5 :1 ;// 0x08 - 0x2228 2651char is_ignore_death3 :1 ;// 0x04 - 0x2228 2652char used_tether :1 ;// 0x02 - 0x2228 2653char last_lstick_x_dir :1 ;// 0x01 - 0x2228, last stick x direction outside of deadzone. 1 to right, 0 to left. 2654unsigned char x2229_1 :1 ;// 0x80 - 0x2229 2655unsigned char x2229_2 :1 ;// 0x40 - 0x2229 2656unsigned char x2229_3 :1 ;// 0x20 - 0x2229 2657unsigned char is_ignore_offscreen :1 ;// 0x10 - 0x2229 2658unsigned char skip_coin_collcheck :1 ;// 0x8 - 0x2229, this is toggled every frame, checks half of the players every frame to save on cpu 2659unsigned char x2229_6 :1 ;// 0x4 - 0x2229 2660unsigned char x2229_7 :1 ;// 0x2 - 0x2229 2661unsigned char no_reaction_always :1 ;// 0x1 - 0x2229 2662unsigned char x222a_x80 :1 ;// 0x80 - 0x222a 2663unsigned char is_ignore_death2 :1 ;// 0x40 - 0x222a 2664unsigned char x222a_x20 :1 ;// 0x20 - 0x222a 2665unsigned char x222a_x10 :1 ;// 0x10 - 0x222a 2666unsigned char x222a_x08 :1 ;// 0x08 - 0x222a 2667unsigned char x222a_x04 :1 ;// 0x04 - 0x222a 2668unsigned char x222a_x02 :1 ;// 0x02 - 0x222a 2669unsigned char x222a_x01 :1 ;// 0x01 - 0x222a 2670char flags_222B ;// 0x222B 2671 }flags ;// 2672struct fighter_var // 0x222c 2673 {// 2674int ft_var1 ;// 0x222c 2675int ft_var2 ;// 0x2230 2676int ft_var3 ;// 0x2234 2677int ft_var4 ;// 0x2238 2678int ft_var5 ;// 0x223c 2679int ft_var6 ;// 0x2240 2680int ft_var7 ;// 0x2244 2681int ft_var8 ;// 0x2248 2682int ft_var9 ;// 0x224c 2683int ft_var10 ;// 0x2250 2684int ft_var11 ;// 0x2254 2685int ft_var12 ;// 0x2258 2686int ft_var13 ;// 0x225c 2687int ft_var14 ;// 0x2260 2688int ft_var15 ;// 0x2264 2689int ft_var16 ;// 0x2268 2690int ft_var17 ;// 0x226c 2691int ft_var18 ;// 0x2270 2692int ft_var19 ;// 0x2274 2693int ft_var20 ;// 0x2278 2694int ft_var21 ;// 0x227c 2695int ft_var22 ;// 0x2280 2696int ft_var23 ;// 0x2284 2697int ft_var24 ;// 0x2288 2698int ft_var25 ;// 0x228c 2699int ft_var26 ;// 0x2290 2700int ft_var27 ;// 0x2294 2701int ft_var28 ;// 0x2298 2702int ft_var29 ;// 0x229c 2703int ft_var30 ;// 0x22a0 2704int ft_var31 ;// 0x22a4 2705int ft_var32 ;// 0x22a8 2706int ft_var33 ;// 0x22ac 2707int ft_var34 ;// 0x22b0 2708int ft_var35 ;// 0x22b4 2709int ft_var36 ;// 0x22b8 2710int ft_var37 ;// 0x22bc 2711int ft_var38 ;// 0x22c0 2712int ft_var39 ;// 0x22c4 2713int ft_var40 ;// 0x22c8 2714int ft_var41 ;// 0x22cc 2715int ft_var42 ;// 0x22d0 2716int ft_var43 ;// 0x22d4 2717int ft_var44 ;// 0x22d8 2718int ft_var45 ;// 0x22dc 2719int ft_var46 ;// 0x22e0 2720int ft_var47 ;// 0x22e4 2721int ft_var48 ;// 0x22e8 2722int ft_var49 ;// 0x22ec 2723int ft_var50 ;// 0x22f0 2724int ft_var51 ;// 0x22f4 2725int ft_var52 ;// 0x22f8 2726 }fighter_var ; 2727int x22fc ;// 0x22fc 2728int x2300 ;// 0x2300 2729int x2304 ;// 0x2304 2730int x2308 ;// 0x2308 2731int x230c ;// 0x230c 2732u16 x2310 ;// 0x2310 2733u16 x2312 ;// 0x2312 2734float x2314 ;// 0x2314 2735float x2318 ;// 0x2318 2736float x231c ;// 0x231c 2737int x2320 ;// 0x2320 2738int stage_internal ;// 0x2324 so stupid, used for decrementing hazard immunity 2739int line_damage_immunity ;// 0x2328, frames in which fighter is immune to line damage 2740int ftchkdevice_immunity ;// 0x232c, frames in which fighter is immune to chkdevice damage (brinstar lava) 2741int x2330 ;// 0x2330 2742int x2334 ;// 0x2334 2743int x2338 ;// 0x2338 2744int x233c ;// 0x233c 2745struct state_var // 0x2340 2746 {// 2747int state_var1 ;// 0x2340 2748int state_var2 ;// 0x2344 2749int state_var3 ;// 0x2348 2750int state_var4 ;// 0x234c 2751int state_var5 ;// 0x2350 2752int state_var6 ;// 0x2354 2753int state_var7 ;// 0x2358 2754int state_var8 ;// 0x235c 2755int state_var9 ;// 0x2360 2756int state_var10 ;// 0x2364 2757int state_var11 ;// 0x2368 2758int state_var12 ;// 0x236c 2759int state_var13 ;// 0x2370 2760int state_var14 ;// 0x2374 2761int state_var15 ;// 0x2378 2762int state_var16 ;// 0x237c 2763int state_var17 ;// 0x2380 2764int state_var18 ;// 0x2384 2765 }state_var ;// 2766int x2388 ;// 0x2388 2767int x238c ;// 0x238c 2768int x2390 ;// 0x2390 2769int x2394 ;// 0x2394 2770int x2398 ;// 0x2398 2771int x239c ;// 0x239c 2772int x23a0 ;// 0x23a0 2773int x23a4 ;// 0x23a4 2774int x23a8 ;// 0x23a8 2775int x23ac ;// 0x23ac 2776int x23b0 ;// 0x23b0 2777int x23b4 ;// 0x23b4 2778int x23b8 ;// 0x23b8 2779int x23bc ;// 0x23bc 2780int x23c0 ;// 0x23c0 2781int x23c4 ;// 0x23c4 2782int x23c8 ;// 0x23c8 2783int x23cc ;// 0x23cc 2784int x23d0 ;// 0x23d0 2785int x23d4 ;// 0x23d4 2786int x23d8 ;// 0x23d8 2787int x23dc ;// 0x23dc 2788int x23e0 ;// 0x23e0 2789int x23e4 ;// 0x23e4 2790int x23e8 ;// 0x23e8 2791// The following structs are extensions to the vanilla FighterData struct 2792// to help modding. The upstream m-ex repo has added more fields here, 2793// but for now it will stay the same to avoid breaking delicate ASM code in 2794// strange ways. It should be possible to add to the end of the TM struct 2795// without breaking things. Any future changes to these structs must be 2796// reflected in ASM/m-ex/Header.s: 2797// - Add a symbol for the new field at the bottom: '.set YOUR_SYMBOL, PREV_SYMBOL + sizeof(PREV_SYMBOL)' 2798// - Change the size of the struct in the 'Fighter Data Sizes' section 2799// 2800// the per frame data in struct TM is updated in 2801// ASM/training-mode/Onscreen Display/Additional Playerblock Variables/StatesAndTimers/ 2802struct MEX // 0x23ec 2803 {// 2804int anim_owner ;// 0x23ec 2805GOBJ * kb_abilitysource ;// 0x23f0 2806u8 ucf_stick_x [3 ];// 0x23f4 2807 }MEX ;// 2808struct TM // 0x23f8 2809 {// 2810s16 state_frame ;// 0x23f8, how many frames the player has been in this state 2811s16 shield_frame ;// 0x23fa, how many frames the player has been shielding 2812u16 state_prev [6 ];// 0x23fc, 2813u16 state_prev_frames [6 ];// 0x2408, 2814u16 last_move_hurt ;// 0x2414, Previous Move Instance Hit By 2815u16 vuln_frames ;// 0x2416, how many frames the fighter has been vulnerable 2816u16 can_fastfall_frames ;// 0x2418, how many frames the fighter has been able to fast fall 2817u16 iasa_frames ;// 0x241a, Aitch: added this for use in lab overlays 2818int post_hitstun_frames ;// 0x241c, frames fighter has been out of hitstun 2819GOBJ * fighter_hurt_shield ;// 0x2420, pointer to the fighter who's shield this fighter hit 2820void * cb_anim ;// 0x2424, additional animation callback 2821 2822union { 2823struct { 2824float airdodge_angle ; 2825u32 hop_type ; 2826 }wavedash ; 2827struct { 2828u16 successful_sdi_inputs ; 2829u16 total_sdi_inputs ; 2830 }sdi ; 2831 }tm_union ;// 0x2428 2832 2833struct { 2834u16 buttons ;// use HSD_BUTTON_* to lookup 2835s8 stick_x ; 2836s8 stick_y ; 2837s8 cstick_x ; 2838s8 cstick_y ; 2839u8 ltrigger ; 2840u8 rtrigger ; 2841 }inputs [32 ];// 0x2430 2842 }TM ; 2843}; 2844 2845struct FtMultiJumpDesc // exists in fighters special attributes 2846{ 2847int turn_frames ;// turn frame length 2848float turn_stick_x_min ;// min x value on left stick to trigger aerial turn 2849float vel_stick_x_mult ;// jump x velocity = left stick x * this 2850float aerial_drift_stick_mult_mult ;// 0xC, multipler for the value in the fighter attribute 2851float aerial_drift_max_mult ;// 0x10, multipler for the value in the fighter attribute 2852float jump_vel_y [5 ];// 0x14 subsequemt jumps Y velocities 2853int jump_num ;// 0x28, number of total aerial jumps 2854int jump_state_start ;// 0x2C, state index for first aerial jump 2855int x30 ;// 0x30, 2856}; 2857 2858struct FtParts // is in the fighter data 2859{ 2860int num ;// 0x2240 2861DOBJ ** dobj ;// 0x2244 array of dobjs for the ftpar 2862void * x8 ;// 0x2248 2863void * xc ;// 0x224C 2864}; 2865 2866struct FtPartsDesc 2867{ 2868int model_num ;// 0x2250 2869FtPartsLookup * lookups ; 2870}; 2871 2872struct FtPartsLookup 2873{ 2874FtParts * x0 ; 2875void * x4 ; 2876void * x8 ; 2877void * xc ; 2878void * x10 ; 2879}; 2880 2881struct FtPartsVis // is in the fighter data 2882{ 2883int num ;// 0x0 2884u8 x4 [5 ];// 0x4 array of bools? 2885FtPartsVisLookup * highpoly_table ;// 0x0C 2886FtPartsVisLookup * lowpoly_table ;// 0x10 2887FtPartsVisLookup * metalpoly_table ;// 0x14 2888FtPartsVisLookup * metalmain_table ;// 0x18 2889FtPartsVisLookup * x1C ;// 0x1C 2890}; 2891 2892struct FtSymbolLookup 2893{ 2894FtSymbols * archives ; 2895u8 num ; 2896}; 2897 2898struct FtSymbols 2899{ 2900JOBJ * joint ;// 0x0 2901void * matanim_joint ;// 0x4 2902void * x8 ;// 0x8 2903void * xc ;// 0xc 2904void * x10 ;// 0x10 2905HSD_Archive * costume ;// 0x14 2906}; 2907 2908struct FtDatNameLookup 2909{ 2910char * filename ; 2911char * symbol ; 2912}; 2913struct FtKindDesc // this is really CKindDesc...? 2914{ 2915s8 ft_main ;// main fighter ft_kind 2916s8 ft_sub ;// sub fighter ft_kind, -1 if none 2917s8 no_spawn_together ;// 2918}; 2919 2920/** State Structs **/ 2921struct FtCliffCatch 2922{ 2923int ledge_index ; 2924float fall_timer ; 2925int timer ; 2926}; 2927struct FtDamage 2928{ 2929float hitstun ;// 0x2340 2930int x2344 ; 2931int x2348 ; 2932int x234c ; 2933int x2350 ; 2934float x2354 ; 2935u8 x2358 ; 2936u8 hit_env_kind ;// 0x2359, 0 = none, 1 = ground 2 = wall, 3 = ceiling 2937u8 is_meteor ;// 0x235a 2938u8 meteor_lockout ;// 0x235b 2939}; 2940struct FtLanding 2941{ 2942int can_interrupt ;// 0x2340 2943}; 2944struct FtDead 2945{ 2946int timer ; 2947}; 2948 2949struct FtEntry 2950{ 2951int delay_frames ; 2952}; 2953/** Script Structs **/ 2954struct FtScript 2955{ 2956unsigned opcode :6 ; 2957union 2958 { 2959struct 2960 { 2961unsigned frames :26 ; 2962 }timer_sync ;// 2 2963struct 2964 { 2965unsigned frame :26 ; 2966 }timer_async ;// 3 2967struct 2968 { 2969unsigned bone :8 ; 2970unsigned use_common_bone_id :1 ; 2971unsigned destroy_on_state_change :1 ; 2972unsigned unk1 :16 ; 2973unsigned id :16 ; 2974unsigned unk2 :16 ; 2975unsigned offset_z :16 ; 2976unsigned offset_y :16 ; 2977unsigned offset_x :16 ; 2978unsigned range_z :16 ; 2979unsigned range_y :16 ; 2980unsigned range_x :16 ; 2981 }gfx ;// 10 2982struct 2983 { 2984unsigned id :3 ; 2985unsigned hit_group :3 ; 2986unsigned only_hit_grabbed_fighter :1 ; 2987unsigned bone :8 ; 2988unsigned use_common_bone_id :1 ; 2989unsigned dmg :10 ; 2990unsigned size :16 ; 2991unsigned offset_z :16 ; 2992unsigned offset_y :16 ; 2993unsigned offset_x :16 ; 2994unsigned angle :9 ; 2995unsigned kb_growth :9 ; 2996unsigned wdsk :9 ; 2997unsigned is_hit_items :1 ; 2998unsigned ignore_thrown_fighter :1 ; 2999unsigned ignore_fighter_scale :1 ; 3000unsigned clank_pri :2 ; 3001unsigned base_kb :9 ; 3002unsigned attribute :5 ; 3003unsigned shield_dmg :8 ; 3004unsigned hit_sfx_severity :3 ;// weak, moderate, strong 3005unsigned hit_sfx_kind :5 ;// none, punch, kick, sword, coin, bat, fan, elec, fire, yoshi chew, shell hit, energy, peach item, ice 3006unsigned is_hit_grounded_fighter :1 ; 3007unsigned is_hit_aerial_fighter :1 ; 3008 }hit ;// 11 3009struct 3010 { 3011unsigned id :3 ; 3012unsigned dmg :23 ; 3013 }hit_update_dmg ;// 12 3014struct 3015 { 3016unsigned id :3 ; 3017unsigned size :23 ; 3018 }hit_update_size ;// 13 3019struct 3020 { 3021unsigned id :26 ; 3022 }hit_clear ;// 15 3023struct 3024 { 3025unsigned null :26 ; 3026 }hit_clear_all ;// 16 3027struct 3028 { 3029unsigned behavior :8 ; 3030unsigned unk :18 ; 3031unsigned id :32 ; 3032unsigned unk2 :16 ;// padding? 3033unsigned volume :8 ; 3034unsigned pan :8 ; 3035 }sfx ;// 17 3036struct 3037 { 3038unsigned kind :26 ;// 0 = normal, 1 = invuln, 2 = intang 3039 }vuln ;// 26 3040struct 3041 { 3042unsigned do_second :1 ; 3043unsigned mat_index1 :7 ; 3044unsigned mat_index2 :7 ; 3045unsigned mat_frame :11 ; 3046 }eye ;// 40 3047struct 3048 { 3049unsigned flag :1 ; 3050unsigned value1 :12 ; 3051unsigned value2 :13 ; 3052 }rumble ;// 43 3053struct 3054 { 3055unsigned id :8 ; 3056unsigned time :18 ; 3057 }colanimapply ;// 46 3058struct 3059 { 3060unsigned unk :26 ; 3061 }ik ;// 52 3062 } __attribute__((__packed__ ))u ; 3063} __attribute__((__packed__ )); 3064/* 3065struct FtScriptTimerSync 3066{ 3067unsigned opcode : 6; 3068unsigned time : 26; 3069}; // 2 3070struct FtScriptTimerAsync 3071{ 3072unsigned opcode : 6; 3073unsigned time : 26; 3074}; // 3 3075struct FtScriptGFX 3076{ 3077unsigned opcode : 6; 3078unsigned bone : 8; 3079unsigned use_common_bone_id : 1; 3080unsigned destroy_on_state_change : 1; 3081unsigned unk1 : 16; 3082unsigned id : 16; 3083unsigned unk2 : 16; 3084unsigned offset_z : 16; 3085unsigned offset_y : 16; 3086unsigned offset_x : 16; 3087unsigned range_z : 16; 3088unsigned range_y : 16; 3089unsigned range_x : 16; 3090}; // 10 3091struct FtScriptHit 3092{ 3093unsigned opcode : 6; 3094unsigned id : 3; 3095unsigned hit_group : 3; 3096unsigned only_hit_grabbed_fighter : 1; 3097unsigned bone : 8; 3098unsigned use_common_bone_id : 1; 3099unsigned dmg : 10; 3100unsigned size : 16; 3101unsigned offset_z : 16; 3102unsigned offset_y : 16; 3103unsigned offset_x : 16; 3104unsigned angle : 9; 3105unsigned kb_growth : 9; 3106unsigned wdsk : 9; 3107unsigned is_hit_items : 1; 3108unsigned ignore_thrown_fighter : 1; 3109unsigned ignore_fighter_scale : 1; 3110unsigned clank_pri : 2; 3111unsigned base_kb : 9; 3112unsigned element : 5; 3113unsigned shield_dmg : 8; 3114unsigned hit_sfx_severity : 3; // weak, moderate, strong 3115unsigned hit_sfx_kind : 5; // none, punch, kick, sword, coin, bat, fan, elec, fire, yoshi chew, shell hit, energy, peach item, ice 3116unsigned is_hit_grounded_fighter : 1; 3117unsigned is_hit_aerial_fighter : 1; 3118}; // 11 3119struct FtScriptHitClear 3120{ 3121unsigned opcode : 6; 3122unsigned null : 26; 3123}; // 16 3124struct FtScriptSFX 3125{ 3126unsigned opcode : 6; 3127unsigned behavior : 8; 3128unsigned unk : 18; 3129unsigned id : 32; 3130unsigned unk2 : 16; // padding? 3131unsigned volume : 8; 3132unsigned pan : 8; 3133}; // 17 3134struct FtScriptVuln 3135{ 3136unsigned opcode : 6; 3137unsigned kind : 26; // 0 = normal, 1 = invuln, 2 = intang 3138}; // 26 3139struct FtScriptEye 3140{ 3141unsigned opcode : 6; 3142unsigned do_second : 1; 3143unsigned mat_index1 : 7; 3144unsigned mat_index2 : 7; 3145unsigned mat_frame : 11; 3146}; // 40 3147struct FtScriptRumble 3148{ 3149unsigned opcode : 6; 3150unsigned flag : 1; 3151unsigned value1 : 12; 3152unsigned value2 : 13; 3153}; // 43 3154struct FtScriptColAnimApply 3155{ 3156unsigned opcode : 6; 3157unsigned id : 8; 3158unsigned time : 18; 3159}; // 46 3160struct FtScriptIK 3161{ 3162unsigned opcode : 6; 3163unsigned unk : 26; 3164}; // 52 3165*/ 3166 3167/** Static Variables **/ 3168static ftCommonBone *** stc_ftbone = R13_OFFSET (-0x515C ); 3169static ftCommonData ** stc_ftcommon = R13_OFFSET (-0x514C ); 3170static ColAnimDesc ** stc_plco_colanimdesc = (void * )0x804D653C ; 3171static GXColor ** stc_shieldcolors = R13_OFFSET (-0x5194 ); 3172static FtDmgVibrateDesc ** stc_dmg_vibrate_desc = R13_OFFSET (-0x5170 ); 3173static int * stc_ft_hitlog = R13_OFFSET (-0x5148 );// used as semi-local variables remembering if a solid hit occured @ 8006cbc4 3174static int * stc_ft_tiplog = R13_OFFSET (-0x5144 );// used as semi-local variables remembering if a tip hit occured @ 8006cbc4 3175 3176/*** Functions ***/ 3177GOBJ * Fighter_Create (PlayerData * pd ); 3178GOBJ * Fighter_Create2 (PlayerData * pd ); 3179void Fighter_EnterAerial (GOBJ * fighter ,int aerialState ); 3180void ActionStateChange (float startFrame ,float animSpeed ,float animBlend ,GOBJ * fighter ,int stateID ,int flags1 ,GOBJ * alt_state_source ); 3181void FrameSpeedChange (GOBJ * f ,float speed ); 3182void Fighter_UpdateAnim (GOBJ * f );// 8006a360 3183void Fighter_UpdateIASA (GOBJ * f );// 8006ad10 3184void Fighter_UpdatePhys (GOBJ * f );// 8006b82c 3185void Fighter_UpdateEnvColl (GOBJ * f );// 8006c27c 3186void Fighter_UpdateAccessory (GOBJ * f );// 8006c624 3187void Fighter_UpdateGFX (GOBJ * f );// 8006c80c 3188void Fighter_UpdateAllHitboxPos (GOBJ * f ); 3189void Fighter_UpdateBonePos (FighterData * fighter_data ,int unk ); 3190void Fighter_SubactionFastForward (GOBJ * fighter ); 3191FtAction * Fighter_GetFtAction (FighterData * fighter ,int action_id );// returns the desired ft action entry stored in the dat file 3192Figatree * Fighter_GetAnimData (FighterData * fighter ,int action_id );// this will request the anim data from the AJ file in ARAM and overwrite the current animation! 3193float Fighter_GetAnimLength (Figatree * ft_anim ); 3194void Fighter_EnterLightThrow (GOBJ * fighter ,int stateID ); 3195void Fighter_EnterDamageFall (GOBJ * fighter ); 3196void Fighter_EnterWait (GOBJ * fighter ); 3197void Fighter_EnterAirCatch (GOBJ * fighter ); 3198void Fighter_EnterFall (GOBJ * fighter ); 3199void Fighter_EnterFallAerial (GOBJ * fighter ); 3200void Fighter_EnterSpecialFall (GOBJ * fighter ,int can_fastfall ,int no_soft_landing ,int can_interrupt_landing ,float air_drift_multiplier ,float landing_frames ); 3201void Fighter_EnterLanding (GOBJ * fighter ); 3202void Fighter_EnterSpecialLanding (GOBJ * fighter ,int unk ,float state_length ); 3203void Fighter_EnterSleep (GOBJ * fighter ,int ms ); 3204void Fighter_EnterEntry (GOBJ * fighter ); 3205void Fighter_EnterDownBound (GOBJ * f ); 3206void Fighter_EnterDownWait (GOBJ * f ); 3207void Fighter_EnterJumpAerial (GOBJ * f ); 3208void Fighter_EnterDeadDown (GOBJ * f ); 3209void Fighter_EnterDeadUp (GOBJ * f ); 3210void Fighter_EnterDeadLeft (GOBJ * f ); 3211void Fighter_EnterDeadRight (GOBJ * f ); 3212int Fighter_CheckNearbyLedges (GOBJ * fighter ); 3213int Fighter_CheckForOtherFighterOnLedge (GOBJ * fighter ); 3214void Fighter_EnterCliffCatch (GOBJ * fighter ); 3215void Fighter_EnterCliffWait (GOBJ * fighter ); 3216void Fighter_EnterCliffJumpSlow2 (GOBJ * fighter ,float y_velocity ); 3217void Fighter_EnterRebirth (GOBJ * fighter ); 3218void Fighter_EnterRebirthWait (GOBJ * fighter ); 3219void Fighter_UpdateRebirthPlatformPos (GOBJ * fighter ); 3220void Fighter_MoveToCliff (GOBJ * fighter ); 3221GOBJ * Fighter_GetGObj (int ply ); 3222GOBJ * Fighter_GetSubcharGObj (int ply ,int ms ); 3223Playerblock * Fighter_GetPlayerblock (int ply ); 3224void Fighter_Playerblock_UpdateDamage (int ply ,int ms ,int percent ); 3225void Fighter_Playerblock_Init (int ply ); 3226void Fighter_Playerblock_ResetStaleMoves (int ply ); 3227void Fighter_SetSlotType (int ply ,int slot ); 3228int Fighter_GetControllerPort (int ply ); 3229int Fighter_GetTeam (int ply ); 3230int * Fighter_GetStaleMoveTable (int ply ); 3231void Fighter_SetInitialPosition (int ply ,Vec3 * pos ); 3232void Fighter_SetPosition (int ply ,int ms ,Vec3 * pos ); 3233void Fighter_GetPosition (int ply ,Vec3 * pos ); 3234void Fighter_SetDirection (int ply ,float dir ); 3235float Fighter_GetDirection (int ply ); 3236void Fighter_ApplyIntang (GOBJ * fighter ,int duration ); 3237int Fighter_GetSlotType (int index );// returns 0x0 for HMN, 0x1 for CPU, 0x2 for Demo, 0x3 for not present 3238int Fighter_GetStocks (int ply ); 3239void Fighter_SetStocks (int ply ,int stocks ); 3240void Fighter_LoseStock (int ply ); 3241void Fighter_DeathLogic (GOBJ * f ); 3242void Fighter_RunOnDeathCallbacks (GOBJ * f ); 3243int Fighter_GetStaminaHP (int ply ); 3244void Fighter_SetStaminaHP (int ply ,int hp ); 3245int Fighter_CheckStaminaMode (int ply ); 3246void Fighter_SetStaminaMode (int ply ,int is_stamina ); 3247void Fighter_SetFallNum (int index ,int ms ,int falls ); 3248int Fighter_GetFallNum (int index ,int ms ); 3249void Fighter_EnableCollUpdate (FighterData * fighter ); 3250void Fighter_EnterDamageState (GOBJ * fighter ,int stateID ,float new_facing_dir );// new_facing_dir = 0 to use current 3251s8 Fighter_BoneLookup (FighterData * fighter ,int boneID ); 3252void Fighter_GiveDamage (FighterData * fighter ,float damage ); 3253void Fighter_GiveHeal (FighterData * fighter ,int heal ); 3254float Fighter_StaleDamage (FighterData * fighter ,float dmg ,int atk_kind ,int atk_instance ); 3255void Fighter_SetHUDDamage (int player ,u16 damage ); 3256void Fighter_RunOnHitCallbacks (GOBJ * fighter ); 3257void Fighter_ExitHitlag (GOBJ * fighter ); 3258int FrameTimerCheck (GOBJ * fighter ); 3259void Fighter_EnterMiscPassState (float start_frame ,GOBJ * fighter ,int state ,int flags ); 3260int Fighter_CollGround_PassLedge (GOBJ * fighter ); 3261void Fighter_CollGround_PassLedgeCB (GOBJ * fighter ,void * callback ); 3262int Fighter_CollGround_StopLedge (GOBJ * fighter );// returns is_grounded 3263void Fighter_CollGround_StopLedge_EnterFall (GOBJ * fighter ); 3264int Fighter_CollAir_GrabFacingLedgeWalljump (GOBJ * fighter ,void * perFrame ,void * onLand );// this will handle entering cliffcatch / walljump. all in one collision func 3265int Fighter_CollAir_GrabBothLedgesWalljump (GOBJ * fighter ,void * onLand );// this will handle entering cliffcatch / walljump. all in one collision func 3266int 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 3267void Fighter_CollAir_IgnoreLedge (GOBJ * fighter ,void * callback ); 3268int Fighter_CollAir_IgnoreLedge_NoCB (GOBJ * fighter ); 3269int Fighter_CollAir_SoftLanding (GOBJ * fighter ); 3270int Fighter_CollAir_DefineECB (GOBJ * fighter ,ECBSize * ecb ); 3271int Fighter_Coll_DamageState (GOBJ * fighter ); 3272int Fighter_Coll_CheckToPass (GOBJ * fighter ,int floor_type );// usually used as a callback, pass = fall through platform 3273int Fighter_IASACheck_CliffCatch (GOBJ * fighter ); 3274int Fighter_IASACheck_WallJump (GOBJ * fighter ); 3275int Fighter_IASACheck_TechRoll (GOBJ * fighter ); 3276int Fighter_IASACheck_TechInPlace (GOBJ * fighter ); 3277int Fighter_IASACheck_StaminaDead (GOBJ * fighter ); 3278int Fighter_IASACheck_WallTechJump (GOBJ * fighter ); 3279int Fighter_IASACheck_CeilingTech (GOBJ * fighter ); 3280int Fighter_IASACheck_WallCeilingReflect (GOBJ * fighter ); 3281int Fighter_IASACheck_JumpAerial (GOBJ * fighter ); 3282int Fighter_IASACheck_JumpF (GOBJ * fighter ); 3283int Fighter_IASACheck_PassConditions (GOBJ * fighter ); 3284int Fighter_IASACheck_Turn (GOBJ * fighter ); 3285int Fighter_IASACheck_AllGrounded (GOBJ * fighter ); 3286int Fighter_IASACheck_AllAerial (GOBJ * fighter ); 3287void Fighter_PhysGround_ApplyFriction (GOBJ * fighter ); 3288void Fighter_PhysGround_ApplyCustomFriction (FighterData * fighter ,float friction ); 3289void Fighter_PhysGround_ApplyVelocity (GOBJ * fighter ); 3290void Fighter_PhysAir_CheckFastfall (FighterData * fighter ); 3291void Fighter_PhysAir_ApplyGravityDecayX (GOBJ * ); 3292void Fighter_PhysAir_ApplyGravityFastfall (GOBJ * ); 3293void Fighter_PhysAir_ApplyGravity (FighterData * fighter ,float gravity ,float limit ); 3294void Fighter_PhysAir_ApplyAerialDrift (FighterData * fighter ); 3295void Fighter_PhysAir_ApplyCustomAerialDrift (FighterData * fighter ,float unk ,float speed ,float limit ); 3296void 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 3297void Fighter_PhysAir_DecayXVelocity (FighterData * fighter ,float aerial_friction ); 3298void Fighter_PhysAir_LimitXVelocity (FighterData * fighter ); 3299void Fighter_Phys_UseAnimYVelocity (GOBJ * fighter ); 3300void Fighter_Phys_UseAnimPos (GOBJ * fighter ); 3301void Fighter_Phys_UseAnimPosAndStick (GOBJ * fighter ); 3302void Fighter_SetGrounded (FighterData * fighter ); 3303void Fighter_SetGrounded2 (FighterData * fighter ); 3304void Fighter_SetAirborne (FighterData * fighter );// locks ecb for 10 frames 3305void Fighter_SetAirborneNoJumps (FighterData * fighter_data );// locks ecb for 5 frames 3306void Fighter_LoseGroundJump (FighterData * fighter_data ); 3307void Fighter_KillAllVelocity (GOBJ * fighter ); 3308void Fighter_AdvanceScript (GOBJ * fighter ); 3309void Fighter_GFXRemoveAll (GOBJ * fighter ); 3310void Fighter_EnableReflectUpdate (GOBJ * fighter ); 3311void Fighter_CreateReflect (GOBJ * fighter ,ReflectDesc * reflect ,void * cb_OnReflectHit ); 3312float Fighter_GetBoneRotX (FighterData * fighter ,int bone ); 3313float Fighter_GetBoneRotY (FighterData * fighter ,int bone ); 3314void Fighter_SetBoneRotX (FighterData * fighter ,int bone ,float angle ); 3315void Fighter_SetBoneRotY (FighterData * fighter ,int bone ,float angle ); 3316void Fighter_SetBoneRotZ (FighterData * fighter ,int bone ,float angle ); 3317void Fighter_PlayPositionalSFX (FighterData * fp ,int sfxID ,int volume ,int balance ); 3318void Fighter_PlayVoiceSFX (FighterData * fighter ,int sfxID ,int volume ,int balance ); 3319void Fighter_PlayVoiceSFX2 (FighterData * fighter ,int sfxID ,int volume ,int balance ); 3320void Fighter_DestroyVoiceSFX (FighterData * fighter ); 3321void Fighter_ColAnim_Apply (FighterData * fighter_data ,int colanim_kind ,int unk );// will apply the color_anim specified 3322void Fighter_ColAnim_Remove (FighterData * fighter_data ,int colanim_kind );// will remove the color_anim specified 3323void Fighter_ColAnim_Update (GOBJ * fighter );// fighter gobj callback, will step colanim logic forward one frame. (you probably dont need to call this!) 3324void Fighter_DisableBlend (GOBJ * fighter ,int animd_id ); 3325void Fighter_UpdateDynamics (GOBJ * fighter ,u16 * dynamic_struct ); 3326void Fighter_ZeroCPUInputs (FighterData * fighter_data ); 3327void Fighter_CreateShieldGFX (GOBJ * fighter ); 3328void Fighter_UpdateShieldGFX (GOBJ * fighter ,float size ); 3329int Fighter_GetShieldColorIndex (int ply ); 3330int Fighter_GetExternalID (int ply ); 3331int Fighter_GetCostumeID (int ply ); 3332int Fighter_GetHandicap (int ply ); 3333float Fighter_GetBaseScale (FighterData * fighter ); 3334void Fighter_SetScale (GOBJ * fighter ,float scale ); 3335void Fighter_ProcDynamics (GOBJ * fighter ); 3336void Fighter_CheckToEnableDynamics (FighterData * fp ,u16 * dynamics_data ); 3337void Fighter_FreeAllDynamics (FighterData * fighter_data ); 3338float Fighter_GetKnockbackAngle (FighterData * fighter_data ); 3339void Fighter_UpdateCameraBox (GOBJ * fighter ); 3340void Fighter_SetAllHurtboxesNotUpdated (GOBJ * fighter ); 3341void Fighter_UpdateHurtboxes (FighterData * fighter_data ); 3342void Fighter_UpdateIK (GOBJ * fighter ); 3343void Fighter_CPUInitialize (FighterData * fighter_data ,int cpu_kind ,int cpu_level ,int unk ); 3344int Fighter_GetCPUKind (int ply ); 3345int Fighter_SetCPUKind (int ply ,int cpu_kind ); 3346int Fighter_GetCPULevel (int ply ); 3347int Fighter_SetCPULevel (int ply ,int cpu_level ); 3348char * Fighter_GetName (int external_id ); 3349void Fighter_InitPObj (); 3350void Fighter_InitPObj2 (); 3351void Fighter_IndexFtPartsDObjs (GOBJ * fighter ,JOBJ * copy_model ,FtParts * ftparts );// inits the dobj array in ftpartsmodel 3352void Fighter_InitFtPartsModel (FtPartsDesc * ftpartsdesc ,FtPartsVis * unk ,int index ,FtParts * ftparts ,FtParts * ftparts2 ); 3353int Fighter_CheckUnlocked (int ext_id ); 3354void Fighter_UpdateDObjFlags (void * ftparts1 ,int r4 ,void * bone_info ); 3355void Fighter_UpdateDObjFlags2 (void * ftparts1 ,int r4 ,void * bone_info ); 3356void Fighter_UpdateOnscreenBool (GOBJ * fighter ); 3357void Fighter_SetFacingToStickDirection (FighterData * fighter_data ); 3358int Fighter_CheckToIgnorePlatform (GOBJ * fighter ); 3359int Hitbox_CheckIfPreviouslyHit (void * victim_data ,ftHit * hitbox ); 3360void Hitbox_SetAsPreviouslyHit (ftHit * hitbox ,int unk ,void * victim_data ); 3361void Fighter_HitboxDisableAll (GOBJ * fighter ); 3362int Fighter_CountPlayers (); 3363void Fighter_InitData (GOBJ * f ); 3364void Fighter_InitInputs (GOBJ * fighter ); 3365void Fighter_InitInputTimers (GOBJ * fighter ); 3366void Fighter_BreakGrabUnk (GOBJ * victim ); 3367void Fighter_BreakGrab (GOBJ * fighter ,GOBJ * victim ); 3368void Fighter_InitGrab (FighterData * fighter ,int is_enable ,void * on_grabber ,void * on_item ,void * on_victim ); 3369void Fighter_SetCharacterFlags (GOBJ * fighter ,int ,int ); 3370void Fighter_GetECBPosition (GOBJ * fighter ,Vec3 * position ); 3371void Fighter_Phys_AnimationFriction (GOBJ * fighter ); 3372void Fighter_CollAir_IgnoreGround (GOBJ * fighter ); 3373void Fighter_SetFacingToStickDirection (FighterData * fighter_data ); 3374void Fighter_ClampHorizontalVelocity (FighterData * fighter_data ,float max_vel ); 3375void Fighter_ClampFallSpeed (FighterData * fighter_data ,float max_vel ); 3376void Fighter_QueueAllowXDrift (FighterData * fighter_data ,float unk ,float accel ,float max_vel ); 3377void Fighter_AllowXDrift (FighterData * fighter_data ,float unk ,float accel ,float max_vel ); 3378void Fighter_AddClampYPosition (FighterData * fighter_data ,float amt ,float max ); 3379void Fighter_ClampHorizontalGroundVelocity (FighterData * ,float ); 3380void Fighter_Phys_ApplyVerticalAirFriction (FighterData * fighter_data ); 3381void Fighter_GetVisGroupDefault (GOBJ * fighter ,int vis_group ); 3382void Fighter_SetVisGroupDefault (GOBJ * fighter ,int vis_group ,s8 index );// sets the default value for this vis group (-1 = hide all) 3383void Fighter_SetVisGroupCurrent (GOBJ * fighter ,int vis_group ,s8 index );// sets the current active value for this vis group (-1 = hide all) 3384void Fighter_RevertAllVisGroups (GOBJ * fighter );// sets all vis groups to their default values (specified by Fighter_SetVisGroupDefault) 3385void Fighter_HideAllVisGroups (GOBJ * fighter );// hides all dobjs in all vis group (sets default and current to -1) 3386int Fighter_CheckVisible (GOBJ * fighter ); 3387void Fighter_GiveItem (GOBJ * fighter ,GOBJ * item ); 3388void Fighter_ReleaseItemUnk (int ply ,int ms ,GOBJ * item ); 3389void Fighter_InitDamageVibrate (FighterData * fp ,int dmg_attr ,int dmg ,float mult ,int pre_hurt_state ,int air_state ); 3390float Fighter_CalcHitlagFrames (int dmg ,int state_id ,float mult ); 3391void Fighter_LoadAnimation (FighterData * fp ,FighterData * fp_source ,int anim_id ); 3392void Fighter_ApplyAnimation (GOBJ * f ,float start_frame ,float speed ,float blend ); 3393void Fighter_UpdateStateFrameInfo (GOBJ * f ); 3394void Fighter_ScriptUpdate (GOBJ * f ); 3395void Fighter_ScriptFastForward (GOBJ * f ); 3396void Fighter_DropCrate (GOBJ * f ); 3397void Fighter_GrabBreakCheck (GOBJ * f ); 3398void Fighter_ThrownAttach (FighterData * anchor_data ,FighterData * attachee_data ); 3399void Fighter_ThrownRelease_UpdateUnk (GOBJ * thrower ,GOBJ * victim ); 3400void Fighter_ThrownRelease_NoUpdateUnk (GOBJ * thrower ,GOBJ * victim ); 3401void Fighter_ThrownRelease (GOBJ * thrower ,GOBJ * victim ,int is_update_unk ); 3402void Fighter_ThrownApplyKnockback (GOBJ * victim ,GOBJ * hit_exception ,int is_enter_dmgflytop ); 3403void Fighter_ThrownApplyKnockbackNoTDI (GOBJ * victim ,float frame ); 3404void Fighter_AddStaleIncCombo (GOBJ * thrower ,GOBJ * victim ,float dmg );// 8007891c 3405void Fighter_SetAllHurtboxState (GOBJ * f ,int state );// 8007b0c0 3406void Fighter_SetHurtboxState (GOBJ * f ,int bone_index ,int state );// 8007b128 3407void Fighter_SetScriptHurtStatus (GOBJ * f ,int state );// 8007b62c 3408int Fighter_GetIntangibleFrames (GOBJ * f );// 8007b868 3409void Fighter_IncPercent (GOBJ * f ,float * dmg );// 80076640 3410float Fighter_KnockbackCalculate (float match_dmg_ratio ,float ft_attk_ratio ,float ft_def_ratio ,float unk ,FighterData * fp ,ftHit * hit ,int dmg ); 3411float Fighter_GetAttackRatio (int ply );// 800338f4 3412float Fighter_GetDefenseRatio (int ply );// 800339e0 3413void Fighter_SetDamageSource (GOBJ * attacker ,GOBJ * victim ,float * dmg_direction );// 80078710 3414void Fighter_SetDamageSourceGrab (GOBJ * attacker ,GOBJ * victim ,int unk );// 80078754 3415void Fighter_DamageRumble (FighterData * fp ,int dmg );// 8007ee0c 3416void Fighter_RumbleExecute (FighterData * fp ,int strength ,int unk ); 3417void Fighter_CheckKnockbackModifiers (FighterData * fp );// 8008d930 3418int Fighter_GetCurrentPlacing (int ply ); 3419void Fighter_StoreGrabBreakout (FighterData * fp ,int flag ,float amt ); 3420int Fighter_CheckGrabBreakout (FighterData * fp ,float mash_amt );// returns 1 if inputted something 3421void Fighter_SetAnimRate (GOBJ * f ,float rate ); 3422int Fighter_CheckJumpInput (GOBJ * f ); 3423void Fighter_SetEyeTexture (GOBJ * f ,int material_index ,float frame ); 3424void Fighter_GetECBCenter (GOBJ * f ,Vec3 * center_pos ); 3425void Fighter_ApplyPartAnim (GOBJ * f ,int part_id ,int anim_id ); 3426void Fighter_SetHoldKind (GOBJ * f ,int r4 ,int r5 ); 3427void Fighter_ApplyHandAnim (GOBJ * f ,int r4 ); 3428void Fighter_CheckToRespawn (int ply ,int ms ); 3429void Fighter_Respawn (GOBJ * f ,int ms ); 3430void Fighter_CreateAbsorb (GOBJ * fighter_gobj ,AbsorbDesc * absorb_desc ); 3431void Fighter_EnableAbsorbUpdate (GOBJ * fighter_gobj ); 3432void Fighter_PlaySFX (FighterData * fp ,int sfxid ,int volume ,int pitch ); 3433void SFX_StopAllFighterSFX (FighterData * fighter_data ); 3434void Fighter_EnterFallOrWait (GOBJ * fighter_gobj ); 3435void Fighter_EnterTech (GOBJ * gobj ); 3436int Fighter_CheckTechInput (GOBJ * f ); 3437void 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 ); 3438void Fighter_RumbleController (GOBJ * f ,int unk1 ,int unk2 ); 3439void Fighter_GetLeftStick (GOBJ * fighter_gobj ,float * stick_x ,float * stick_y ); 3440void Fighter_ClampMaxAirDrift (FighterData * fighter_gobj ); 3441void Fighter_UpdateHitboxDamage (ftHit * hit ,int dmg ,GOBJ * f ); 3442void Fighter_GetCollisionSlope (GOBJ * fighter ,Vec3 * position ); 3443void Fighter_ThrowVictim (GOBJ * f ,GOBJ * victim ,int param_3 ); 3444void Fighter_StoreAccessoryJObj (FighterData * fd ,JOBJDesc * jobj_desc ); 3445void Fighter_ResetModelScale (GOBJ * fighter ); 3446void Fighter_AddPlayerException (FighterData * fd ,GOBJ * target ); 3447void Fighter_EnterCaptureCut (GOBJ * fighter ); 3448void Fighter_EnterCatchCut (GOBJ * fighter ,int victim_enter_capturecut ); 3449void Fighter_SetGrabbableFlag (GOBJ * fighter ,int ); 3450float Fighter_GetDistanceFromPointSquared (GOBJ * fighter ,Vec3 * position ); 3451int Fighter_CheckNotWalkInput (GOBJ * fighter ); 3452int Fighter_CheckWalkInput (GOBJ * fighter ); 3453void GXLink_Fighter (GOBJ * f ,int pass ); 3454void Fighter_MultiJump_TurnThink (FighterData * fp ,int turn_frames ); 3455int Fighter_CheckFootstool (GOBJ * f ); 3456float Fighter_GetSoftLandVelocity (FighterData * fp ); 3457void Fighter_Transform (GOBJ * f ,void * EnterStateCallback ); 3458void Fighter_InitCameraBox (FighterData * fp );// 80076064 3459void Fighter_SetSelfDamageSource (GOBJ * f );// 800788d4 3460float Fighter_CalcForceApplied (FighterData * fp ,void * unk );// 80079ea8 3461void Fighter_UpdateModelShift (GOBJ * f );// updates the offsets of the model during hitlag and smash charge 3462void Fighter_GivePersistentIntangibility (GOBJ * f ,int frames ); 3463void Fighter_TDI (FighterData * fp ); 3464void Fighter_PlayQueuedDamageSounds (FighterData * fp ); 3465GXColor Fighter_GetPlyHUDColor (int ply );// used for lupe, pokemon stadium text color, results viewport broder 3466void FSmash_GetASForAnalogAngle (GOBJ * ft ); 3467#endif