Decompile currentPlayerGetAmmoQuantityForWeapon

This commit is contained in:
Ryan Dwyer
2020-03-29 12:08:28 +10:00
parent 8c836ebdd7
commit 7cf62e4caa
5 changed files with 27 additions and 34 deletions
+4
View File
@@ -519,6 +519,10 @@
#define FLOORFLAG_0100 0x0100
#define FLOORFLAG_4000 0x4000
// Weapon functions
#define FUNC_PRIMARY 0
#define FUNC_SECONDARY 1
#define GAILIST_IDLE 0x0000
#define GAILIST_UNALERTED_0001 0x0001
#define GAILIST_UNALERTED_0002 0x0002
+1 -1
View File
@@ -158,7 +158,7 @@ s32 ammotypeGetMaxCapacity(u32 ammotype);
bool ammotypeAllowsUnlimitedAmmo(u32 ammotype);
u32 func0f0a9980(void);
s32 weaponGetAmmoType(s32 weaponnum, u32 func);
s32 func0f0a9a74(s32 weaponnum, s32 arg1);
u32 currentPlayerGetAmmoQuantityForWeapon(u32 weaponnum, u32 func);
void currentPlayerGiveAmmoForWeapon(u32 weaponnum, u32 func, u32 quantity);
u32 func0f0a9b10(void);
u32 func0f0a9b68(void);
+1 -1
View File
@@ -958,7 +958,7 @@ struct autogunobj { // objtype 0d
/*0xa0*/ u32 unka0;
/*0xa4*/ u32 unka4;
/*0xa8*/ u8 autogun_type;
/*0xa9*/ u8 unka9;
/*0xa9*/ u8 ammoquantity;
};
struct multiammocrateobj { // objtype 14