mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-19 05:22:21 -04:00
Decompile propGetBbox and discover if_proppreset_height_lt AI command
This commit is contained in:
@@ -2210,9 +2210,16 @@
|
||||
#define remove_object_at_proppreset \
|
||||
mkshort(0x0104),
|
||||
|
||||
#define cmd0105(u1, label) \
|
||||
/**
|
||||
* Checks if the height (bounding box height, not Y value) of the current chr's
|
||||
* proppreset is less than the given value.
|
||||
*
|
||||
* If the prop is invalid, the computed height will be zero which causes the
|
||||
* check to pass.
|
||||
*/
|
||||
#define if_proppreset_height_lt(height, label) \
|
||||
mkshort(0x0105), \
|
||||
mkshort(u1), \
|
||||
mkshort(height), \
|
||||
label,
|
||||
|
||||
/**
|
||||
|
||||
@@ -94,7 +94,7 @@ u32 func0f028590(void);
|
||||
struct prop *chrGetEquippedWeaponProp(struct chrdata *chr, s32 hand);
|
||||
struct prop *chrGetEquippedWeaponPropWithCheck(struct chrdata *chr, s32 hand);
|
||||
bool chrUpdateGeometry(struct prop *prop, struct geo **arg1, struct geo **arg2);
|
||||
void func0f0289dc(struct prop *prop, f32 *width, f32 *ymax, f32 *ymin);
|
||||
void propChrGetBbox(struct prop *prop, f32 *width, f32 *ymax, f32 *ymin);
|
||||
u32 func0f028a50(void);
|
||||
u32 func0f028d50(void);
|
||||
u32 func0f028e18(void);
|
||||
|
||||
@@ -261,7 +261,7 @@
|
||||
/*0x0102*/ bool aiSetLights(void);
|
||||
/*0x0103*/ bool ai0103(void);
|
||||
/*0x0104*/ bool aiRemoveObjectAtPropPreset(void);
|
||||
/*0x0105*/ bool ai0105(void);
|
||||
/*0x0105*/ bool aiIfPropPresetHeightLessThan(void);
|
||||
/*0x0106*/ bool aiSetTarget(void);
|
||||
/*0x0107*/ bool aiIfPresetsTargetIsNotMyTarget(void);
|
||||
/*0x0108*/ bool aiIfChrTarget(void);
|
||||
|
||||
@@ -55,7 +55,7 @@ u32 func0f065e74(void);
|
||||
u32 func0f065e98(void);
|
||||
u32 func0f065f80(void);
|
||||
u32 func0f066054(void);
|
||||
void func0f066204(struct prop *prop, f32 *arg1, f32 *arg2, f32 *arg3);
|
||||
void propGetBbox(struct prop *prop, f32 *width, f32 *ymax, f32 *ymin);
|
||||
u32 func0f066290(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -232,7 +232,7 @@ u32 func0f086d60(void);
|
||||
void func0f086f40(struct prop *prop);
|
||||
u32 func0f087420(void);
|
||||
u32 func0f087458(void);
|
||||
u32 func0f08756c(void);
|
||||
void propObjGetBbox(struct prop *prop, f32 *width, f32 *ymax, f32 *ymin);
|
||||
u32 func0f087638(void);
|
||||
u32 func0f087668(void);
|
||||
u32 func0f08791c(void);
|
||||
|
||||
@@ -158,7 +158,7 @@ void func0f0c1d20(void);
|
||||
u32 func0f0c1e54(void);
|
||||
u32 func0f0c1f08(void);
|
||||
u32 func0f0c1ff4(void);
|
||||
u32 func0f0c20b8(void);
|
||||
void propPlayerGetBbox(struct prop *prop, f32 *width, f32 *ymax, f32 *ymin);
|
||||
u32 func0f0c2194(void);
|
||||
u32 func0f0c21a4(void);
|
||||
u32 func0f0c2210(void);
|
||||
|
||||
Reference in New Issue
Block a user