Decompile chr0f04c874

This commit is contained in:
Ryan Dwyer
2022-04-19 20:35:13 +10:00
parent 3019187375
commit b0f4af068f
4 changed files with 120 additions and 1332 deletions
+115 -1327
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -10466,10 +10466,10 @@ bool aiIfChrInSquadronDoingAction(void)
bool ai0139(void)
{
u8 *cmd = g_Vars.ailist + g_Vars.aioffset;
u32 flags = (cmd[3] << 16) | (cmd[4] << 8) | cmd[5] | (cmd[2] << 24);
u32 angle = (cmd[3] << 16) | (cmd[4] << 8) | cmd[5] | (cmd[2] << 24);
struct coord pos;
func0f04c874(g_Vars.chrdata, flags, &pos, cmd[7], cmd[6]);
chr0f04c874(g_Vars.chrdata, angle, &pos, cmd[7], cmd[6]);
g_Vars.aioffset += 8;
+2 -2
View File
@@ -2948,9 +2948,9 @@
// I think this is related to flanking, where the value arg is the angle
// relative to the player's direction. 335 is the same as 25 degress to the
// right (360 - 25).
#define cmd0139(value, u1, bool) \
#define cmd0139(angle, u1, bool) \
mkshort(0x0139), \
mkword(value), \
mkword(angle), \
u1, \
bool,
+1 -1
View File
@@ -219,7 +219,7 @@ s32 chrAssignCoverByCriteria(struct chrdata *chr, u16 arg1, s32 arg2);
s32 chrAssignCoverAwayFromDanger(struct chrdata *chr, s32 mindist, s32 maxdist);
bool chrRunFromPos(struct chrdata *chr, u32 speed, f32 distance, struct coord *frompos);
f32 func0f04c784(struct chrdata *chr);
bool func0f04c874(struct chrdata *chr, u32 angle360, struct coord *pos, u8 arg3, u8 arg4);
bool chr0f04c874(struct chrdata *chr, u32 angle360, struct coord *pos, u8 arg3, u8 arg4);
void rebuildTeams(void);
void rebuildSquadrons(void);
void chrAvoid(struct chrdata *chr);