mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 16:22:41 +02:00
Decompile aiIfSafetyLessThan
This commit is contained in:
1 parent
3bb1e43050
commit
354da43bd0
4 files changed
+57
-122
No files matched your search
+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