Attempt to decompile aiDetectEnemyOnSameFloor

This commit is contained in:
Ryan Dwyer
2020-02-15 20:03:29 +10:00
parent f5ed45ea10
commit df1a27dc14
5 changed files with 104 additions and 22 deletions
+4 -5
View File
@@ -2512,12 +2512,11 @@
label,
/**
* Tries to find a chr in the team who meets some criteria and sets them as the
* current chr's target.
*
* Probably used to run to them for safety or to alert them.
* Tries to find a chr who meets some criteria and sets them as the current
* chr's target. Only enemeies who are on the same floor will be considered.
* A line of sight check is not used.
*/
#define try_find_chr_in_team(label) \
#define set_target_to_enemy_on_same_floor(label) \
mkshort(0x0127), \
label,
+1 -1
View File
@@ -295,7 +295,7 @@
/*0x0124*/ bool aiGoToCover(void);
/*0x0125*/ bool ai0125(void);
/*0x0126*/ bool aiIfPlayerUsingCmpOrAr34(void);
/*0x0127*/ bool ai0127(void);
/*0x0127*/ bool aiDetectEnemyOnSameFloor(void);
/*0x0128*/ bool aiDetectEnemy(void);
/*0x0129*/ bool aiIfSafetyLessThan(void);
/*0x012a*/ bool aiIfTargetMovingSlowly(void);