mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-11 06:04:37 -04:00
Decompile chr0f04c874
This commit is contained in:
+115
-1327
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user