fork/training-mode-ce

git clone https://git.julia.blue/fork/training-mode-ce

Alex Harrisonfix double reset when pressing up with an instant reset delayedda55f

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