mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-30 07:44:34 -04:00
Decompile chrSetPadPresetToPadOnRouteToTarget
This commit is contained in:
@@ -612,9 +612,11 @@
|
||||
label,
|
||||
|
||||
/**
|
||||
* Checks if the chr is in a loaded room.
|
||||
* Checks if the current chr can see their target. If so, the chr's pad preset
|
||||
* is set to a pad along the route to their target. The pad chosen is the pad
|
||||
* on the route which is closest to the target and in sight of the current chr.
|
||||
*/
|
||||
#define if_in_loaded_room(label) \
|
||||
#define set_pad_preset_to_pad_on_route_to_target(label) \
|
||||
mkshort(0x0042), \
|
||||
label,
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ u32 func0f04a4ec(struct chrdata *chr, u8 arg1);
|
||||
bool chrSetPadPresetToWaypointWithinTargetQuadrant(struct chrdata *chr, u8 arg1);
|
||||
bool func0f04a7dc(u32 chrnum, struct chrdata *chr, f32 distance, s32 padnum);
|
||||
bool func0f04a848(u8 chrnum, struct chrdata *chr, f32 distance, struct coord *pos, s16 *room);
|
||||
u32 chrIsInLoadedRoom(struct chrdata *chr);
|
||||
bool chrSetPadPresetToPadOnRouteToTarget(struct chrdata *chr);
|
||||
u32 func0f04aeb0(void);
|
||||
bool func0f04af84(f32 chrwidth, struct coord *pos, s16 *rooms, f32 angle, bool arg4, bool arg5, bool arg6);
|
||||
struct prop *chrSpawnAtCoord(s32 body, s32 head, struct coord *pos, s16 *room, f32 arg4, u8 *ailist, u32 flags);
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
/*0x003f*/ bool aiIfCanSeeTarget(void);
|
||||
/*0x0040*/ bool aiIfTargetNearlyInSight(void);
|
||||
/*0x0041*/ bool aiIfNearlyInTargetsSight(void);
|
||||
/*0x0042*/ bool aiIfInLoadedRoom(void);
|
||||
/*0x0042*/ bool aiSetPadPresetToPadOnRouteToTarget(void);
|
||||
/*0x0043*/ bool aiIfSawTargetRecently(void);
|
||||
/*0x0044*/ bool aiIfHeardTargetRecently(void);
|
||||
/*0x0045*/ bool ai0045(void);
|
||||
|
||||
@@ -81,11 +81,11 @@ struct g_vars {
|
||||
/*000314*/ bool mplayerisrunning; // combat sim with any number of players, coop with human buddy, and counter-op
|
||||
/*000318*/ bool normmplayerisrunning; // combat sim with any number of players
|
||||
/*00031c*/ s32 lvmpbotlevel;
|
||||
/*000320*/ s32 unk000320;
|
||||
/*000324*/ s32 unk000324;
|
||||
/*000320*/ s32 lockscreen;
|
||||
/*000324*/ bool bondvisible;
|
||||
/*000328*/ bool bondcollisions;
|
||||
/*00032c*/ bool enableslopes;
|
||||
/*000330*/ u32 unk000330;
|
||||
/*000330*/ u32 padrandomroutes;
|
||||
/*000334*/ s32 maxprops;
|
||||
/*000338*/ struct prop *props; // pointer to array
|
||||
/*00033c*/ struct prop *list1head;
|
||||
|
||||
Reference in New Issue
Block a user