Discover and document AI command 0125 and decompile chrCheckCoverOutOfSight

This commit is contained in:
Ryan Dwyer
2020-05-29 18:08:11 +10:00
parent 4dba3418b3
commit 543071f3fd
7 changed files with 45 additions and 77 deletions
+6 -3
View File
@@ -2563,9 +2563,12 @@
mkshort(0x0124), \
speed,
// Related to command 012f
// globals.c only
#define cmd0125_if_or_try_something(label) \
/**
* Checks if the chr's cover is still out of sight of their target and updates a
* flag in the cover struct accordingly. The label is followed if the target
* can't see the cover.
*/
#define check_cover_out_of_sight(label) \
mkshort(0x0125), \
label,
+1 -1
View File
@@ -197,7 +197,7 @@ u32 func0f04af84(void);
struct prop *chrSpawnAtCoord(s32 body, s32 head, struct coord *pos, s16 *room, f32 arg4, u8 *ailist, u32 flags);
u32 func0f04b658(struct chrdata *chr);
bool chrMoveToPos(struct chrdata *chr, struct coord *pos, s16 *room, f32 arg3, u32 allowonscreen);
u32 func0f04b950(struct chrdata *chr, u32 cover, u32 arg2);
bool chrCheckCoverOutOfSight(struct chrdata *chr, s32 covernum, bool arg2);
s32 func0f04ba34(struct chrdata *chr, u16 arg1, u32 arg2);
u32 func0f04bffc(struct chrdata *chr, u32 arg1, u32 arg2);
void chrRunFromPos(struct chrdata *chr, u32 speed, f32 distance, struct coord *pos);
+1 -1
View File
@@ -293,7 +293,7 @@
/*0x0122*/ bool ai0122(void);
/*0x0123*/ bool ai0123(void);
/*0x0124*/ bool aiGoToCover(void);
/*0x0125*/ bool ai0125(void);
/*0x0125*/ bool aiCheckCoverOutOfSight(void);
/*0x0126*/ bool aiIfPlayerUsingCmpOrAr34(void);
/*0x0127*/ bool aiDetectEnemyOnSameFloor(void);
/*0x0128*/ bool aiDetectEnemy(void);