Decompile scenarioPickUpBriefcase

This commit is contained in:
Ryan Dwyer
2022-01-07 20:26:27 +10:00
parent c2ddf5dc62
commit 7b723f3032
6 changed files with 234 additions and 2108 deletions
+1
View File
@@ -29,6 +29,7 @@
#define CRASH() *(u8 *)0 = 69
#define IS4MB() (g_Is4Mb == true)
#define IS8MB() (g_Is4Mb != true)
#define MPCHR(index) ((index) < 4 ? &g_PlayerConfigsArray[index].base : &g_BotConfigsArray[(index) - 4].base)
#define PLAYERCOUNT() ((g_Vars.players[0] ? 1 : 0) + (g_Vars.players[1] ? 1 : 0) + (g_Vars.players[2] ? 1 : 0) + (g_Vars.players[3] ? 1 : 0))
#define PLAYERCOUNT3012() ((g_Vars.players[3] ? 1 : 0) + (g_Vars.players[0] ? 1 : 0) + (g_Vars.players[1] ? 1 : 0) + (g_Vars.players[2] ? 1 : 0))
#define SECSTOTIME240(secs) (secs * 240)
+1 -1
View File
@@ -112,7 +112,7 @@ void mpPrepareScenario(void);
struct prop *scenarioCreateObj(s32 modelnum, s16 padnum, f32 arg2, u32 flags, u32 flags2, u32 flags3);
void mpCreateScenarioHudmsg(s32 playernum, char *message);
bool mpChrsAreSameTeam(s32 arg0, s32 arg1);
u32 chrGiveBriefcase(struct chrdata *chr, struct prop *prop);
s32 scenarioPickUpBriefcase(struct chrdata *chr, struct prop *prop);
void scenarioReleaseToken(struct chrdata *chr, struct prop *prop);
s32 chrGiveUplink(struct chrdata *chr, struct prop *prop);
void scenarioHtmActivateUplink(struct chrdata *chr, struct prop *prop);
+13 -6
View File
@@ -1717,12 +1717,19 @@ struct weaponobj { // objtype 0x08
/*0x60*/ s8 fadeouttimer60;
/*0x61*/ s8 dualweaponnum;
/**
* timer240 is used for activation of proxy Dragons, grenades and proxy
* mines. It ticks down to 1 where it becomes active, and set to 0 when the
* item should explode.
*/
/*0x62*/ s16 timer240;
union {
/**
* timer240 is used for activation of proxy Dragons, grenades and proxy
* mines. It ticks down to 1 where it becomes active, and set to 0 when the
* item should explode.
*/
/*0x62*/ s16 timer240;
/**
* team is used for MP briefcases (Capture The Case bases).
*/
/*0x62*/ s16 team;
};
/*0x64*/ struct weaponobj *dualweapon; // other weapon when dual wielding
};