Decompile gasTick

This commit is contained in:
Ryan Dwyer
2021-05-29 14:07:09 +10:00
parent 96a5c2981c
commit ad2f0799db
10 changed files with 125 additions and 451 deletions
+7 -1
View File
@@ -545,7 +545,13 @@
mkshort(0x003a), \
label,
#define cmd003b(label) \
/**
* Checks if gas has been released from a gas bottle. This is different to the
* gas that is released in Escape.
*
* Gas bottles aren't used in PD. This command is a leftover from GoldenEye.
*/
#define if_gas_active(label) \
mkshort(0x003b), \
label,
+5 -5
View File
@@ -226,12 +226,12 @@ extern u32 g_TintedGlassEnabled;
extern s32 g_AlarmTimer;
extern struct audiohandle *g_AlarmAudioHandle;
extern f32 g_AlarmSpeakerWeight;
extern f32 var800698e4;
extern bool g_GasReleased;
extern f32 g_GasReleaseTimer240;
extern bool g_GasReleasing;
extern struct coord g_GasPos;
extern u32 var800698f8;
extern f32 var800698fc;
extern struct audiohandle *var80069900;
extern s32 g_GasLastCough60;
extern f32 g_GasSoundTimer240;
extern struct audiohandle *g_GasAudioHandle;
extern u32 g_CountdownTimerVisible;
extern bool g_CountdownTimerRunning;
extern f32 g_CountdownTimerValue;
+1 -1
View File
@@ -63,7 +63,7 @@
/*0x0038*/ bool aiIfRandomGreaterThan(void);
/*0x0039*/ bool aiIfCanHearAlarm(void);
/*0x003a*/ bool aiIfAlarmActive(void);
/*0x003b*/ bool ai003b(void);
/*0x003b*/ bool aiIfGasActive(void);
/*0x003c*/ bool aiIfHearsTarget(void);
/*0x003d*/ bool aiIfSawInjury(void);
/*0x003e*/ bool aiIfSawDeath(void);
+3 -3
View File
@@ -341,9 +341,9 @@ void doorsChooseSwingDirection(struct prop *chrprop, struct doorobj *door);
bool propdoorInteract(struct prop *doorprop);
void alarmStopAudio(void);
void gasReleaseFromPos(struct coord *pos);
void func0f0904e0(void);
bool func0f090520(void);
void func0f09054c(void);
void gasStopAudio(void);
bool gasIsActive(void);
void gasTick(void);
Gfx *func0f0908b8(Gfx *gdl);
void projectilesDebug(void);
void alarmTick(void);