Decompile chrTurn

This commit is contained in:
Ryan Dwyer
2021-06-24 12:16:14 +10:00
parent 8ff32f4fa8
commit f113b8cfca
3 changed files with 100 additions and 208 deletions
+13 -9
View File
@@ -3618,13 +3618,17 @@
#define TRACKTYPE_AMBIENT 5
#define TRACKTYPE_6 6
#define TVCMD_STOPSCROLL 0x00
#define TVCMD_SCROLLRELX 0x01
#define TVCMD_SCROLLRELY 0x02
#define TVCMD_SCROLLABSX 0x03
#define TVCMD_SCROLLABSY 0x04
#define TVCMD_SCALEABSX 0x05
#define TVCMD_SCALEABSY 0x06
#define TURNSTATE_TURNING 1 // chr is actively turning
#define TURNSTATE_OFF 2 // chr is not using the turning feature
#define TURNSTATE_ONTARGET 3 // chr is facing the target and will turn if target moves
#define TVCMD_STOPSCROLL 0x00
#define TVCMD_SCROLLRELX 0x01
#define TVCMD_SCROLLRELY 0x02
#define TVCMD_SCROLLABSX 0x03
#define TVCMD_SCROLLABSY 0x04
#define TVCMD_SCALEABSX 0x05
#define TVCMD_SCALEABSY 0x06
#define TVCMD_SETTEXTURE 0x07
#define TVCMD_PAUSE 0x08
#define TVCMD_SETCMDLIST 0x09
@@ -3632,8 +3636,8 @@
#define TVCMD_RESTART 0x0b
#define TVCMD_YIELD 0x0c
#define TVCMD_SETCOLOUR 0x0d
#define TVCMD_ROTATEABS 0x0e
#define TVCMD_ROTATEREL 0x0f
#define TVCMD_ROTATEABS 0x0e
#define TVCMD_ROTATEREL 0x0f
#define TVCMDLIST_00 0x00
#define TVCMDLIST_01 0x01
+1 -1
View File
@@ -138,7 +138,7 @@ void chrCreateFireslot(struct chrdata *chr, s32 handnum, bool withsound, bool wi
f32 chrGetInverseTheta(struct chrdata *chr);
f32 chrGetAimAngle(struct chrdata *chr);
f32 func0f03e754(struct chrdata *chr);
s32 func0f03e788(struct chrdata *chr, s32 turning, f32 arg2, f32 arg3, f32 arg4);
s32 chrTurn(struct chrdata *chr, s32 turning, f32 endanimframe, f32 speed, f32 toleranceangle);
bool func0f03e9f4(struct chrdata *chr, struct attackanimconfig *animcfg, s32 arg2, s32 arg3, f32 arg4);
void chrCalculateAimEndProperties(struct chrdata *chr, struct attackanimconfig *animcfg, bool hasleftgun, bool hasrightgun, f32 shootrotx);
f32 chrGetAimLimitAngle(f32 sqdist);