mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-17 12:59:41 -04:00
Decompile aiIfSafetyLessThan
This commit is contained in:
+12
-2
@@ -2530,8 +2530,18 @@
|
||||
distance / 10, \
|
||||
label,
|
||||
|
||||
// If risk less than?
|
||||
#define cmd0129(score, label) \
|
||||
/**
|
||||
* Calculates a safety score based on several factors and compares it to the
|
||||
* given value.
|
||||
*
|
||||
* The safety score starts at 6.
|
||||
* Subtract 1 point if current chr has been shot.
|
||||
* Subtract 2 points if there are no other chrs nearby.
|
||||
* Subtract 1 point if there are 1 or 2 chrs nearby.
|
||||
*
|
||||
* So maximum safety is 6 and minimum safety is 3.
|
||||
*/
|
||||
#define if_calculated_safety_lt(score, label) \
|
||||
mkshort(0x0129), \
|
||||
score, \
|
||||
label,
|
||||
|
||||
@@ -297,7 +297,7 @@
|
||||
/*0x0126*/ bool aiIfPlayerUsingCmpOrAr34(void);
|
||||
/*0x0127*/ bool ai0127(void);
|
||||
/*0x0128*/ bool ai0128(void);
|
||||
/*0x0129*/ bool ai0129(void);
|
||||
/*0x0129*/ bool aiIfSafetyLessThan(void);
|
||||
/*0x012a*/ bool aiIfTargetMovingSlowly(void);
|
||||
/*0x012b*/ bool aiIfTargetMovingCloser(void);
|
||||
/*0x012c*/ bool aiIfTargetMovingAway(void);
|
||||
|
||||
Reference in New Issue
Block a user