Decompile handTickIncAutoSwitch

This commit is contained in:
Ryan Dwyer
2021-04-08 16:44:13 +10:00
parent 2cb0c9a72a
commit 23817a5804
4 changed files with 929 additions and 1405 deletions
+910 -1386
View File
File diff suppressed because it is too large Load Diff
+9 -9
View File
@@ -969,15 +969,15 @@
#define HANDATTACKTYPE_CLOSERANGENOUNCLOAK 10
#define HANDATTACKTYPE_UPLINK 12
#define HANDSTATE_IDLE 0
#define HANDSTATE_RELOADING 1
#define HANDSTATE_2 2
#define HANDSTATE_ATTACKINGEMPTY 3
#define HANDSTATE_ATTACKING 4
#define HANDSTATE_CHANGINGGUN 5
#define HANDSTATE_6 6
#define HANDSTATE_CHANGINGFUNC 7
#define HANDSTATE_8 8
#define HANDSTATE_IDLE 0
#define HANDSTATE_RELOAD 1
#define HANDSTATE_2 2
#define HANDSTATE_ATTACKEMPTY 3
#define HANDSTATE_ATTACK 4
#define HANDSTATE_CHANGEGUN 5
#define HANDSTATE_6 6
#define HANDSTATE_CHANGEFUNC 7
#define HANDSTATE_AUTOSWITCH 8
#define HANDSTATEFLAG_00000010 0x00000010
#define HANDSTATEFLAG_00000020 0x00000020
+9 -9
View File
@@ -24,13 +24,13 @@ u32 func0f098df8(void);
u32 func0f098f8c(void);
bool func0f099008(s32 handnum);
bool func0f0990b0(struct weaponfunc *basefunc, struct weapon *weapon);
u32 func0f099188(void);
s32 func0f099188(struct hand *hand, s32 gunfunc);
s32 handTickIncIdle(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
u32 func0f099780(void);
s32 handTickIncState8(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
void func0f099780(struct hand *hand, f32 arg1);
s32 handTickIncAutoSwitch(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
u32 func0f099c24(void);
s32 handTickIncReloading(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 handTickIncChangingFunc(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 handTickIncReload(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 handTickIncChangeFunc(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 func0f09a3f8(struct hand *hand, struct weaponfunc *func);
void func0f09a6f8(struct handweaponinfo *info, s32 handnum, struct hand *hand, struct weaponfunc *func);
bool func0f09aba4(struct hand *hand, struct handweaponinfo *info, s32 handnum, struct weaponfunc *func);
@@ -39,12 +39,12 @@ bool handTickIncAttackingThrow(s32 handnum, struct hand *hand);
s32 weaponGetMinClipQty(s32 weaponnum, s32 funcnum);
bool handTickIncAttackingClose(s32 handnum, struct hand *hand);
bool handTickIncAttackingSpecial(struct hand *hand);
s32 handTickIncAttackingEmpty(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 handTickIncAttacking(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
u32 func0f09bd58(void);
s32 handTickIncAttackEmpty(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 handTickIncAttack(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
bool func0f09bd58(s32 handnum);
bool func0f09bec8(s32 handnum);
u32 func0f09bf44(void);
s32 handTickIncChangingGun(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 handTickIncChangeGun(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 handTickIncState2(struct handweaponinfo *info, s32 handnum, struct hand *hand, s32 lvupdate);
s32 handTickInc(struct handweaponinfo *info, s32 handnum, s32 lvupdate);
bool handSetState(s32 handnum, s32 state);
+1 -1
View File
@@ -2329,7 +2329,7 @@ struct hand {
/*0x0c18*/ struct coord lastshootdir;
/*0x0c24*/ struct coord lastshootpos;
/*0x0c30*/ u32 unk0c30;
/*0x0c34*/ u32 unk0c34;
/*0x0c34*/ f32 shotremainder;
/*0x0c38*/ u32 unk0c38;
/*0x0c3c*/ u32 state;
/*0x0c40*/ s32 stateminor;