Decompile chrCalculatePosition

This commit is contained in:
Ryan Dwyer
2020-06-20 23:54:13 +10:00
parent b7d3b80fd7
commit 07048062ce
4 changed files with 70 additions and 135 deletions
+3 -3
View File
@@ -74,11 +74,11 @@ void chrGoPosInitExpensive(struct chrdata *chr);
void chrGoPosAdvanceWaypoint(struct chrdata *chr);
u32 func0f0373dc(void);
u32 func0f0374a0(void);
s32 func0f0374e4(s32 arg0, s32 arg1, s32 arg2, s32 arg3);
void chrPatrolGetCurWaypointInfoWithFlags(struct chrdata *chr, struct coord *pos, s16 *rooms, u32 *flags);
u32 func0f037580(void);
u32 func0f0375b0(void);
void func0f0375e8(struct chrdata *chr, struct waydata *waydata, f32 arg2, struct coord *arg3, s16 *rooms);
void func0f0379b0(struct chrdata *chr, struct coord *pos);
void chrCalculatePosition(struct chrdata *chr, struct coord *pos);
void chrGoPosChooseAnimation(struct chrdata *chr);
s32 chrGoToPos(struct chrdata *chr, struct coord *pos, s16 *room, u32 flags);
u32 func0f038868(void);
@@ -223,7 +223,7 @@ f32 chrGetShield(struct chrdata *chr);
void func0f036358(struct chrdata *chr, s32 arg1);
void chrGoPosGetCurWaypointInfo(struct chrdata *chr, struct coord *pos, s16 *rooms);
void chrGoPosClearRestartTtl(struct chrdata *chr);
s32 func0f037560(s32 arg0, s32 arg1, s32 arg2);
void chrPatrolGetCurWaypointInfo(struct chrdata *chr, struct coord *pos, s16 *rooms);
struct path *pathFindById(u32 path_id);
void chrRecordLastVisibleTargetTime(struct chrdata *chr);
bool chrCanSeeTarget(struct chrdata *chr);
+9 -1
View File
@@ -543,7 +543,14 @@ struct waydata {
// These are the distances between the current waypoint and the previous
// when using cheap mode.
/*0x38*/ f32 segdistdone;
/*0x3c*/ f32 segdisttodo;
/*0x3c*/ f32 segdisttotal;
};
struct act_patrol {
/*0x02c*/ u32 unk02c;
/*0x030*/ u32 unk030;
/*0x034*/ u32 unk034;
/*0x038*/ struct waydata waydata;
};
struct act_gopos {
@@ -713,6 +720,7 @@ struct chrdata {
struct act_sidestep act_sidestep;
struct act_jumpout act_jumpout;
struct act_runpos act_runpos;
struct act_patrol act_patrol;
struct act_gopos act_gopos;
struct act_surprised act_surprised;
struct act_throwgrenade act_throwgrenade;