mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-06 01:28:25 -04:00
Attempt to decompile currentPlayerGetHealthBarHeightFrac
This commit is contained in:
@@ -677,6 +677,13 @@
|
||||
#define HANGARBIO_MAIANVESSEL 21
|
||||
#define HANGARBIO_SKEDARSHUTTLE 22
|
||||
|
||||
#define HEALTHSHOWMODE_HIDDEN 0 // health bar not visible
|
||||
#define HEALTHSHOWMODE_OPENING 1 // height expanding
|
||||
#define HEALTHSHOWMODE_PREVIOUS 2 // full height, showing previous health amount
|
||||
#define HEALTHSHOWMODE_UPDATING 3 // full height, transitioning from previous amount to current amount
|
||||
#define HEALTHSHOWMODE_CURRENT 4 // full height, showing current amount
|
||||
#define HEALTHSHOWMODE_CLOSING 5 // height collapsing
|
||||
|
||||
#define HUDMSGFLAG_ONLYIFALIVE 0x1
|
||||
#define HUDMSGFLAG_2 0x2
|
||||
#define HUDMSGFLAG_4 0x4
|
||||
|
||||
@@ -81,7 +81,7 @@ extern u32 var80070830;
|
||||
extern u32 var8007083c;
|
||||
extern u32 g_PauseMode;
|
||||
extern u32 var80070844;
|
||||
extern u32 var80070924;
|
||||
extern struct healthdamagetype g_HealthDamageTypes[];
|
||||
extern u32 var800709c4;
|
||||
extern u32 var800709d0;
|
||||
extern u32 var800709dc;
|
||||
|
||||
@@ -44,7 +44,7 @@ void func0f0bb5ec(void);
|
||||
void func0f0bb69c(void);
|
||||
void func0f0bb814(void);
|
||||
u32 func0f0bbf14(void);
|
||||
Gfx *func0f0bbf78(Gfx *gdl);
|
||||
Gfx *hudRenderHealthBar(Gfx *gdl);
|
||||
void currentPlayerSurroundWithExplosions(s32 arg0);
|
||||
void func0f0bc120(void);
|
||||
void func0f0bc3f0(void);
|
||||
@@ -68,7 +68,7 @@ Gfx *func0f0c07c8(Gfx *gdl);
|
||||
void currentPlayerDie(bool force);
|
||||
void currentPlayerDieByShooter(u32 shooter, bool force);
|
||||
u32 func0f0c160c(void);
|
||||
u32 func0f0c16f4(void);
|
||||
f32 currentPlayerGetHealthBarHeightFrac(void);
|
||||
void func0f0c1840(struct coord *pos, struct coord *up, struct coord *look, struct coord *pos2, s16 *rooms);
|
||||
void func0f0c1ba4(struct coord *pos, struct coord *up, struct coord *look, struct coord *memcampos, s32 memcamroom);
|
||||
void func0f0c1bd8(struct coord *pos, struct coord *up, struct coord *look);
|
||||
@@ -106,7 +106,7 @@ void currentPlayerAutoWalk(s16 aimpad, u8 walkspeed, u8 turnspeed, u8 lookup, u8
|
||||
void currentPlayerLaunchSlayerRocket(struct weaponobj *rocket);
|
||||
void currentPlayerSetGlobalDrawWorldOffset(s32 room);
|
||||
void currentPlayerSetGlobalDrawCameraOffset(void);
|
||||
bool currentPlayerGet00fc(void);
|
||||
bool currentPlayerIsHealthVisible(void);
|
||||
void currentPlayerSetCameraMode(s32 mode);
|
||||
void currentPlayerSetCamPropertiesWithRoom(struct coord *pos, struct coord *up, struct coord *look, s32 room);
|
||||
void currentPlayerSetCamPropertiesWithoutRoom(struct coord *pos, struct coord *up, struct coord *look, s32 room);
|
||||
|
||||
+11
-3
@@ -2038,8 +2038,8 @@ struct player {
|
||||
/*0x00ec*/ f32 unk00ec;
|
||||
/*0x00f0*/ f32 unk00f0;
|
||||
/*0x00f4*/ u32 unk00f4;
|
||||
/*0x00f8*/ u32 unk00f8;
|
||||
/*0x00fc*/ u32 unk00fc;
|
||||
/*0x00f8*/ f32 healthshowtime;
|
||||
/*0x00fc*/ u32 healthshowmode;
|
||||
/*0x0100*/ bool docentreupdown;
|
||||
/*0x0104*/ u32 unk0104;
|
||||
/*0x0108*/ bool prevupdown;
|
||||
@@ -2465,7 +2465,7 @@ struct player {
|
||||
/*0x1920*/ u8 buthistindex;
|
||||
/*0x1921*/ u8 buthistlen;
|
||||
/*0x1922*/ u8 invincible;
|
||||
/*0x1924*/ u32 healthdamagetype;
|
||||
/*0x1924*/ u32 healthdamagetype; // 0-7, decreases based on amount of damage taken
|
||||
/*0x1928*/ f32 bondleandown;
|
||||
/*0x192c*/ bool mpmenuon;
|
||||
/*0x1930*/ u32 mpmenumode;
|
||||
@@ -6299,4 +6299,12 @@ struct var800a4cc4 {
|
||||
u32 unk10;
|
||||
};
|
||||
|
||||
struct healthdamagetype {
|
||||
s32 openduration;
|
||||
s32 unk04;
|
||||
s32 unk08;
|
||||
s32 unk0c;
|
||||
s32 unk10;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user