mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-04 16:59:49 -04:00
Decompile aiIfGunUnclaimed
This commit is contained in:
@@ -417,8 +417,7 @@
|
||||
label,
|
||||
|
||||
// If behavior is zero, go to label if object exists.
|
||||
// If behavior is nonzero, do something related to the current chr and ignore
|
||||
// the object parameter.
|
||||
// If behavior is nonzero, set flag on unclaimed gun.
|
||||
// In practice this is always called with object = -1 and behavior = 1.
|
||||
#define if_gun_unclaimed(object, behavior, label) \
|
||||
mkshort(0x0061), \
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
/*0x005e*/ bool aiIfWeaponThrown(void);
|
||||
/*0x005f*/ bool aiIfWeaponThrownOnObject(void);
|
||||
/*0x0060*/ bool aiIfChrHasWeaponEquipped(void);
|
||||
/*0x0061*/ bool ai0061(void);
|
||||
/*0x0061*/ bool aiIfGunUnclaimed(void);
|
||||
/*0x0062*/ bool aiIfObjectHealthy(void);
|
||||
/*0x0063*/ bool ai0063(void);
|
||||
/*0x0065*/ bool ai0065(void);
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ struct position {
|
||||
u8 unk00;
|
||||
u8 flags;
|
||||
u16 unk02;
|
||||
struct chrdata *chr;
|
||||
void *master; // pointer to specific struct that has this position. eg. chrdata or weaponobj
|
||||
struct coord coord;
|
||||
u32 unk14;
|
||||
u32 unk18; // related to gun recovery
|
||||
|
||||
Reference in New Issue
Block a user