Decompile chrGetAttackEntityRelativeAngle

This commit is contained in:
Ryan Dwyer
2021-05-23 13:17:37 +10:00
parent 152c955a6f
commit e3e2b948db
4 changed files with 47 additions and 76 deletions
+3 -3
View File
@@ -20,8 +20,8 @@ bool weaponIsOneHanded(struct prop *prop);
f32 chrGetRangedSpeed(struct chrdata *chr, f32 min, f32 max);
s32 chrGetPercentageOfSlowness(struct chrdata *chr, s32 percentage);
f32 chrGetRangedArghSpeed(struct chrdata *chr, f32 min, f32 max);
f32 chrGetRelativeAttackAngle(struct chrdata *chr, u32 attackflags, s32 entityid);
f32 chrGetDistanceToEntity(struct chrdata *chr, u32 attackflags, s32 entityid);
f32 chrGetAttackEntityRelativeAngle(struct chrdata *chr, u32 attackflags, s32 entityid);
f32 chrGetAttackEntityDistance(struct chrdata *chr, u32 attackflags, s32 entityid);
void func0f02e3dc(struct coord *a, struct coord *b, struct coord *c, struct coord *d, struct coord *dst);
void func0f02e4f8(struct coord *arg0, struct coord *arg1, struct coord *dst);
f32 func0f02e550(struct prop *prop, f32 arg1, f32 arg2, u32 arg3, f32 ymax, f32 ymin);
@@ -181,7 +181,7 @@ void chrTick(struct chrdata *chr);
void func0f0482cc(u32 ailistid);
void func0f048398(void);
f32 chrGetAngleToPos(struct chrdata *chr, struct coord *pos);
u32 func0f048b78(void);
void chrGetAttackEntityPos(struct chrdata *chr, u32 attackflags, s32 entityid, struct coord *pos, s16 *rooms);
f32 chrGetAngleFromTargetsFov(struct chrdata *chr);
f32 chrGetVerticalAngleToTarget(struct chrdata *chr);
bool chrIsInTargetsFovX(struct chrdata *chr, u8 fov360);
+1 -1
View File
@@ -1082,7 +1082,7 @@ struct act_attack {
/*0x34*/ s8 maxshots; // number of shots to attempt in this anim
/*0x35*/ s8 onehanded;
/*0x36*/ s8 dorecoil;
/*0x37*/ s8 doneburst;
/*0x37*/ s8 dooneburst;
/*0x38*/ u8 firegun[2]; // whether this gun is going to attempt to fire in this anim
/*0x3a*/ u8 everytick[2]; // whether gun's fire rate is high enough to fire on every tick
/*0x3c*/ u8 singleshot[2];