Decompile chrGoToCoverProp

This commit is contained in:
Ryan Dwyer
2021-06-24 23:49:57 +10:00
parent 9c0d5adc55
commit 2de55cc20c
7 changed files with 111 additions and 295 deletions
+6 -1
View File
@@ -445,7 +445,12 @@
mkshort(0x002d), \
label,
#define cmd002e(label) \
/**
* Does nothing due to a bug in the implementation. But if it worked, it would
* make the chr find a suitable prop in their current room to use as cover and
* run to it.
*/
#define try_go_to_cover_prop(label) \
mkshort(0x002e), \
label,
+2 -1
View File
@@ -2794,6 +2794,7 @@
#define OBJHFLAG_00001000 0x00001000
#define OBJHFLAG_PADLOCKEDDOOR 0x00002000
#define OBJHFLAG_ACTIVATED_BY_BOND 0x00004000
#define OBJHFLAG_00008000 0x00008000
#define OBJHFLAG_ACTIVATED_BY_COOP 0x00040000
#define OBJHFLAG_HASOWNER 0x00080000
#define OBJHFLAG_00100000 0x00100000
@@ -2812,7 +2813,7 @@
#define OBJH2FLAG_CANREGEN 0x04
#define OBJH2FLAG_08 0x08
#define OBJH2FLAG_10 0x10
#define OBJH2FLAG_DESTROYED 0x40
#define OBJH2FLAG_DESTROYED 0x40
#define OBJH2FLAG_80 0x80
#define OBJTYPE_DOOR 0x01
+1 -1
View File
@@ -114,7 +114,7 @@ bool chrGoToPad(struct chrdata *chr, s32 padnum, u32 speed);
bool func0f03abd0(struct chrdata *chr, struct coord *pos, u32 flags);
s32 func0f03aca0(struct chrdata *chr, f32 arg1, u8 arg2);
bool chrTryRunFromTarget(struct chrdata *chr);
u32 func0f03b1e0(struct chrdata *chr);
bool chrGoToCoverProp(struct chrdata *chr);
bool chrDropItem(struct chrdata *chr, u32 modelnum, u32 weaponnum);
void chrPunchInflictDamage(struct chrdata *chr, s32 damage, s32 range, u8 reverse);
bool chrTryPunch(struct chrdata *chr, u8 reverse);
+1 -1
View File
@@ -50,7 +50,7 @@
/*0x002b*/ bool aiTryJogToTargetProp(void);
/*0x002c*/ bool aiTryWalkToTargetProp(void);
/*0x002d*/ bool aiTryRunToTargetProp(void);
/*0x002e*/ bool ai002e(void);
/*0x002e*/ bool aiTryGoToCoverProp(void);
/*0x002f*/ bool aiTryJogToChr(void);
/*0x0030*/ bool aiTryWalkToChr(void);
/*0x0031*/ bool aiTryRunToChr(void);