mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-29 15:33:02 -04:00
Attempt to decompile nbombInflictDamage
This commit is contained in:
+10
-2
@@ -3156,10 +3156,18 @@
|
||||
value, \
|
||||
bool,
|
||||
|
||||
#define damage_player(chr, u1, operation) \
|
||||
/**
|
||||
* Poison or unpoison the given chr by the given amount.
|
||||
*
|
||||
* If operation is 0, the chr is poisoned, likely without any ongoing effects.
|
||||
* If operation is 2, the chr is poisoned, likely with the same effects as being
|
||||
* hit by a combat knife.
|
||||
* If operation is anything else, the chr is unpoisoned by the given amount.
|
||||
*/
|
||||
#define poison_chr(chr, amount, operation) \
|
||||
mkshort(0x016e), \
|
||||
chr, \
|
||||
u1, \
|
||||
amount, \
|
||||
operation,
|
||||
|
||||
// Likely related to being disarmed.
|
||||
|
||||
@@ -500,7 +500,7 @@
|
||||
#define CHRCFLAG_00040000 0x00040000 // Used a lot
|
||||
#define CHRCFLAG_RUNFASTER 0x00080000
|
||||
#define CHRCFLAG_KILLCOUNTABLE 0x00100000
|
||||
#define CHRCFLAG_00200000 0x00200000 // Unset by cmd 00fd
|
||||
#define CHRCFLAG_TRIGGERSHOTLIST 0x00200000
|
||||
#define CHRCFLAG_00400000 0x00400000 // Not used in scripts
|
||||
#define CHRCFLAG_UNPLAYABLE 0x00800000
|
||||
#define CHRCFLAG_PUSHABLE 0x01000000 // Typically set on allies during init
|
||||
|
||||
@@ -48,7 +48,7 @@ u32 func0f033728(void);
|
||||
u32 func0f0338e0(void);
|
||||
void chrSetShield(struct chrdata *chr, f32 shield);
|
||||
u32 func0f034080(void);
|
||||
void func0f034124(struct chrdata *chr, f32 arg1, struct coord *coord, u8 *arg3, struct prop *prop);
|
||||
void chrPoison(struct chrdata *chr, f32 arg1, struct coord *coord, u8 *arg3, struct prop *prop);
|
||||
void func0f03417c(struct chrdata *chr, f32 arg1, struct coord *coord, u32 arg3, struct prop *prop);
|
||||
void func0f0341dc(struct chrdata *chr, f32 damage, struct coord *coord, struct hand *hand, struct prop *prop, u32 arg5, struct prop *prop2, s32 arg7, s32 arg8, s32 arg9, u32 arg10);
|
||||
void func0f034330(struct chrdata *chr, f32 damage, struct coord *vector, u8 *arg3, struct prop *prop, s32 arg5);
|
||||
|
||||
@@ -343,7 +343,7 @@
|
||||
/*0x016b*/ bool ai016b(void);
|
||||
/*0x016c*/ bool aiNoOp016c(void);
|
||||
/*0x016d*/ bool aiChrAdjustMotionBlur(void);
|
||||
/*0x016e*/ bool aiDamagePlayer(void);
|
||||
/*0x016e*/ bool aiPoisonChr(void);
|
||||
/*0x016f*/ bool aiIfChrHasGun(void);
|
||||
/*0x0170*/ bool aiDoGunCommand(void);
|
||||
/*0x0171*/ bool aiIfDistanceToGunLessThan(void);
|
||||
|
||||
@@ -40,7 +40,7 @@ void func0f0035c0(void);
|
||||
void func0f00372c(void);
|
||||
void func0f0037ac(void);
|
||||
void func0f004314(void);
|
||||
void func0f00438c(s32 roomnum, s32 start, s32 limit);
|
||||
void roomAdjustLighting(s32 roomnum, s32 start, s32 limit);
|
||||
void func0f004558(s32 roomnum, s32 increment, s32 limit);
|
||||
void func0f004604(s32 roomnum);
|
||||
void func0f004c6c(void);
|
||||
|
||||
@@ -11,7 +11,7 @@ s32 nbombCalculateAlpha(struct nbomb *nbomb);
|
||||
Gfx *nbombCreateGdl(void);
|
||||
Gfx *nbombRender(Gfx *gdl, struct nbomb *nbomb, Gfx *subgdl);
|
||||
void func0f0099a4(void);
|
||||
void func0f0099e4(struct nbomb *nbomb);
|
||||
void nbombInflictDamage(struct nbomb *nbomb);
|
||||
void nbombTick(struct nbomb *nbomb);
|
||||
void nbombsTick(void);
|
||||
Gfx *nbombsRender(Gfx *gdl);
|
||||
|
||||
Reference in New Issue
Block a user