Decompile bgun0f0a5550

This commit is contained in:
Ryan Dwyer 2022-04-01 19:36:08 +10:00
parent 7782415012
commit e90c1e00e4
5 changed files with 649 additions and 6370 deletions

File diff suppressed because it is too large Load Diff

View File

@ -54,7 +54,9 @@ extern f32 var8005efc0;
extern bool (*var8005efc4)(struct model *model, struct modelnode *node);
extern struct gfxvtx *(*g_ModelVtxAllocatorFunc)(s32 numvertices);
extern void *var8005efcc;
extern u8 var8005efb0_2;
extern u32 var8005efd0;
extern bool var8005efd8_2;
extern bool var8005efdc;
extern u32 var8005efe0;
extern u32 var8005efec;

View File

@ -16,7 +16,7 @@ void bgunSetPartVisible(s16 partnum, bool visible, struct hand *hand, struct mod
void bgun0f097f28(struct hand *hand, struct modelfiledata *arg1, struct inventory_typef *arg2);
void bgun0f098030(struct hand *hand, struct modelfiledata *arg1);
f32 bgun0f09815c(struct hand *hand);
u32 bgun0f0981e8(void);
void bgun0f0981e8(struct hand *hand, struct modelfiledata *arg1);
bool bgun0f098884(struct guncmd *cmd, struct gset *gset);
void bgunStartAnimation(struct guncmd *cmd, s32 handnum, struct hand *hand);
bool bgun0f098a44(struct hand *hand, s32 time);
@ -58,7 +58,7 @@ void bgunInitHandAnims(void);
f32 bgunGetNoiseRadius(s32 handnum);
void bgunDecreaseNoiseRadius(void);
void bgunCalculateBlend(s32 hand);
u32 bgun0f09d550(void);
void bgun0f09d550(struct hand *hand, s32 handnum);
void bgun0f09d8dc(f32 breathing, f32 arg1, f32 arg2, f32 arg3, f32 arg4);
bool bgun0f09dd7c(void);
u32 bgunGetGunMemType(void);
@ -77,9 +77,9 @@ void bgun0f09ebcc(struct defaultobj *obj, struct coord *coord, s16 *rooms, Mtxf
void bgun0f09ed2c(struct defaultobj *obj, struct coord *coord, Mtxf *arg2, struct coord *arg3, Mtxf *arg4);
struct defaultobj *bgun0f09ee18(struct chrdata *chr, struct gset *gset, struct coord *pos, s16 *rooms, Mtxf *arg4, struct coord *arg5);
void bgunCreateThrownProjectile(s32 handnum, struct gset *gset);
void bgun0f09f848(s32 handnum);
void bgun0f09f974(s32 handnum, struct weaponfunc_shootprojectile *func);
void bgunFreeRocket(s32 handnum);
void bgunUpdateHeldRocket(s32 handnum);
void bgunCreateHeldRocket(s32 handnum, struct weaponfunc_shootprojectile *func);
void bgunFreeHeldRocket(s32 handnum);
void bgunCreateFiredProjectile(s32 handnum);
void bgunSwivel(f32 autoaimx, f32 autoaimy, f32 damp, f32 arg3);
void bgunSwivelWithDamp(f32 screenx, f32 screeny, f32 damp);
@ -111,30 +111,30 @@ char *bgunGetShortName(s32 arg0);
void bgunReloadIfPossible(s32 handnum);
void bgunSetAdjustPos(f32 angle);
void bgunResetSlideInc(s32 handnum);
u32 bgun0f0a233c(void);
void bgun0f0a233c(s32 handnum);
f32 bgun0f0a2498(f32 arg0, f32 arg1, f32 arg2, f32 arg3);
void bgun0f0a24f0(struct coord *arg0, s32 handnum);
bool bgun0f0a27c8(void);
void bgunHandlePlayerDead(void);
bool bgunIsMissionCritical(s32 weaponnum);
void bgunLoseGun(struct prop *attacker);
u32 bgun0f0a2da8(void);
void bgun0f0a2da8(u32 arg0);
s32 bgun0f0a2e94(struct model *model, struct modelnode *node, s32 arg2);
void bgunStartDetonateAnimation(s32 playernum);
u32 bgun0f0a3160(void);
u32 bgun0f0a3490(void);
u32 bgun0f0a37b4(void);
u32 bgun0f0a3aa4(void);
u32 bgun0f0a3eac(void);
u32 bgun0f0a4094(void);
u32 bgun0f0a419c(void);
void bgun0f0a3160(struct hand *hand, s32 handnum, struct coord *arg2, struct weaponfunc *funcdef, Mtxf *arg4, Mtxf *arg5);
void bgun0f0a3490(struct hand *hand, s32 handnum, s32 weaponnum, struct weaponfunc *funcdef);
void bgun0f0a37b4(struct hand *hand, struct modelfiledata *modeldef, s32 handnum, Mtxf *mtx);
void bgun0f0a3aa4(struct hand *hand, struct modelfiledata *modeldef);
void bgun0f0a3eac(struct modelfiledata *modeldef, Mtxf *arg1);
void bgun0f0a4094(struct hand *hand, Mtxf *arg1, struct modelfiledata *modeldef);
void bgun0f0a419c(struct hand *hand, Mtxf *arg1, u32 *arg2, struct modelfiledata *modeldef);
void bgun0f0a4334(struct hand *hand);
u32 bgun0f0a4438(void);
void bgun0f0a4570(struct hand *hand, s32 handnum, struct weaponfunc_shootprojectile *func);
void bgun0f0a45d0(struct hand *hand, struct modelfiledata *filedata, bool arg2);
u32 bgun0f0a46a4(void);
u32 bgun0f0a4e44(void);
u32 bgun0f0a5300(void);
void bgun0f0a4438(struct hand *hand, s32 handnum, struct modelfiledata *modeldef, Mtxf *mtx);
void bgunUpdateRocketLauncher(struct hand *hand, s32 handnum, struct weaponfunc_shootprojectile *func);
void bgun0f0a45d0(struct hand *hand, struct modelfiledata *modeldef, bool isdetonator);
void bgun0f0a46a4(struct hand *hand, struct modelfiledata *modeldef, bool isdetonator);
void bgun0f0a4e44(struct hand *hand, struct weapon *weapondef, struct modelfiledata *modeldef, struct weaponfunc *funcdef, s32 arg4, Mtxf *arg5, s32 weaponnum, u32 **sp1e4, s32 sp6c, Mtxf *arg9, Mtxf *arg10);
void bgun0f0a5300(struct hand *hand, s32 handnum, struct weaponfunc *funcdef, s32 weaponnum, struct modelfiledata *modeldef, Mtxf *mtx);
void bgun0f0a5550(s32 handnum);
void bgunTickMaulerCharge(void);
void bgunTickGameplay2(void);

View File

@ -2287,15 +2287,15 @@ struct hand {
/*0x0814*/ struct beam beam;
/*0x0840*/ f32 noiseradius;
/*0x0844*/ u32 fingerroty;
/*0x0848*/ u32 slidetrans;
/*0x0848*/ f32 slidetrans;
/*0x084c*/ u32 slideinc;
/*0x0850*/ struct weaponobj *rocket;
/*0x0854*/ bool firedrocket;
/*0x0858*/ s32 loadedammo[2];
/*0x0860*/ s32 clipsizes[2];
/*0x0868*/ f32 angledamper;
/*0x086c*/ u32 lastrotangx;
/*0x0870*/ u32 lastrotangy;
/*0x086c*/ f32 lastrotangx;
/*0x0870*/ f32 lastrotangy;
/*0x0874*/ f32 matmot1;
/*0x0878*/ f32 matmot2;
/*0x087c*/ f32 matmot3;
@ -2378,9 +2378,7 @@ struct hand {
/*0x0cc8*/ u8 unk0cc8_01 : 1;
/*0x0cc8*/ u8 unk0cc8_02 : 1;
/*0x0cc8*/ u8 unk0cc8_03 : 1;
/*0x0cc8*/ u8 unk0cc8_04 : 1;
/*0x0cc8*/ u8 unk0cc8_05 : 1;
/*0x0cc8*/ u8 unk0cc8_06 : 1;
/*0x0cc8*/ u8 unk0cc8_04 : 3;
/*0x0cc8*/ u8 unk0cc8_07 : 1;
/*0x0cc8*/ u8 unk0cc8_08 : 1;
/*0x0cc9*/ u8 animloopcount;
@ -2450,7 +2448,7 @@ struct hand {
/*0x0dcc*/ u32 unk0dcc;
/*0x0dd0*/ u32 unk0dd0;
/*0x0dd4*/ s32 unk0dd4;
/*0x0dd8*/ u32 unk0dd8;
/*0x0dd8*/ Mtxf *unk0dd8;
};
struct gunctrl {

View File

@ -31,7 +31,7 @@ f32 var8005efc0 = 0;
bool (*var8005efc4)(struct model *model, struct modelnode *node) = NULL;
#if VERSION >= VERSION_PAL_BETA
u32 var8005efd8_2 = 0;
bool var8005efd8_2 = false;
#endif
struct gfxvtx *(*g_ModelVtxAllocatorFunc)(s32 numvertices) = NULL;