Decompile playerChooseThirdPersonAnimation

This commit is contained in:
Ryan Dwyer 2022-01-17 20:18:39 +10:00
parent ca55385682
commit 4499898e1f
10 changed files with 334 additions and 925 deletions

View File

@ -8004,7 +8004,7 @@
"flag08": false
},
{
"id": "ANIM_029B",
"id": "ANIM_ONBIKE_UNARMED",
"file": "029b.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8016,7 +8016,7 @@
"flag08": false
},
{
"id": "ANIM_029C",
"id": "ANIM_ONBIKE_PISTOL",
"file": "029c.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8028,7 +8028,7 @@
"flag08": false
},
{
"id": "ANIM_029D",
"id": "ANIM_ONBIKE_DUALGUNS",
"file": "029d.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8040,7 +8040,7 @@
"flag08": false
},
{
"id": "ANIM_029E",
"id": "ANIM_ONBIKE_HEAVYGUN",
"file": "029e.bin",
"numframes": 12,
"bytesperframe": 0,

View File

@ -8004,7 +8004,7 @@
"flag08": false
},
{
"id": "ANIM_029B",
"id": "ANIM_ONBIKE_UNARMED",
"file": "029b.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8016,7 +8016,7 @@
"flag08": false
},
{
"id": "ANIM_029C",
"id": "ANIM_ONBIKE_PISTOL",
"file": "029c.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8028,7 +8028,7 @@
"flag08": false
},
{
"id": "ANIM_029D",
"id": "ANIM_ONBIKE_DUALGUNS",
"file": "029d.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8040,7 +8040,7 @@
"flag08": false
},
{
"id": "ANIM_029E",
"id": "ANIM_ONBIKE_HEAVYGUN",
"file": "029e.bin",
"numframes": 12,
"bytesperframe": 0,

View File

@ -8004,7 +8004,7 @@
"flag08": false
},
{
"id": "ANIM_029B",
"id": "ANIM_ONBIKE_UNARMED",
"file": "029b.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8016,7 +8016,7 @@
"flag08": false
},
{
"id": "ANIM_029C",
"id": "ANIM_ONBIKE_PISTOL",
"file": "029c.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8028,7 +8028,7 @@
"flag08": false
},
{
"id": "ANIM_029D",
"id": "ANIM_ONBIKE_DUALGUNS",
"file": "029d.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8040,7 +8040,7 @@
"flag08": false
},
{
"id": "ANIM_029E",
"id": "ANIM_ONBIKE_HEAVYGUN",
"file": "029e.bin",
"numframes": 12,
"bytesperframe": 0,

View File

@ -8004,7 +8004,7 @@
"flag08": false
},
{
"id": "ANIM_029B",
"id": "ANIM_ONBIKE_UNARMED",
"file": "029b.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8016,7 +8016,7 @@
"flag08": false
},
{
"id": "ANIM_029C",
"id": "ANIM_ONBIKE_PISTOL",
"file": "029c.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8028,7 +8028,7 @@
"flag08": false
},
{
"id": "ANIM_029D",
"id": "ANIM_ONBIKE_DUALGUNS",
"file": "029d.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8040,7 +8040,7 @@
"flag08": false
},
{
"id": "ANIM_029E",
"id": "ANIM_ONBIKE_HEAVYGUN",
"file": "029e.bin",
"numframes": 12,
"bytesperframe": 0,

View File

@ -8004,7 +8004,7 @@
"flag08": false
},
{
"id": "ANIM_029B",
"id": "ANIM_ONBIKE_UNARMED",
"file": "029b.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8016,7 +8016,7 @@
"flag08": false
},
{
"id": "ANIM_029C",
"id": "ANIM_ONBIKE_PISTOL",
"file": "029c.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8028,7 +8028,7 @@
"flag08": false
},
{
"id": "ANIM_029D",
"id": "ANIM_ONBIKE_DUALGUNS",
"file": "029d.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8040,7 +8040,7 @@
"flag08": false
},
{
"id": "ANIM_029E",
"id": "ANIM_ONBIKE_HEAVYGUN",
"file": "029e.bin",
"numframes": 12,
"bytesperframe": 0,

View File

@ -8004,7 +8004,7 @@
"flag08": false
},
{
"id": "ANIM_029B",
"id": "ANIM_ONBIKE_UNARMED",
"file": "029b.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8016,7 +8016,7 @@
"flag08": false
},
{
"id": "ANIM_029C",
"id": "ANIM_ONBIKE_PISTOL",
"file": "029c.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8028,7 +8028,7 @@
"flag08": false
},
{
"id": "ANIM_029D",
"id": "ANIM_ONBIKE_DUALGUNS",
"file": "029d.bin",
"numframes": 12,
"bytesperframe": 0,
@ -8040,7 +8040,7 @@
"flag08": false
},
{
"id": "ANIM_029E",
"id": "ANIM_ONBIKE_HEAVYGUN",
"file": "029e.bin",
"numframes": 12,
"bytesperframe": 0,

View File

@ -2592,7 +2592,7 @@ bool botApplyMovement(struct chrdata *chr)
speedforwards = aibot->unk06c * cosf(angle) - sinf(angle) * aibot->unk070;
speedsideways = aibot->unk06c * sinf(angle) + cosf(angle) * aibot->unk070;
func0f0c2a58(chr, botGuessCrouchPos(chr), speedsideways, speedforwards, aibot->speedtheta, &aibot->angleoffset, &aibot->unk068);
playerChooseThirdPersonAnimation(chr, botGuessCrouchPos(chr), speedsideways, speedforwards, aibot->speedtheta, &aibot->angleoffset, &aibot->unk068);
angle2 = chrGetInverseTheta(chr) - aibot->angleoffset;

File diff suppressed because it is too large Load Diff

View File

@ -269,7 +269,7 @@ extern bool g_PlayersWithControl[];
extern bool g_PlayerInvincible;
extern s32 g_InCutscene;
extern s16 g_DeathAnimations[];
extern u32 g_NumDeathAnimations;
extern s32 g_NumDeathAnimations;
extern s32 g_ScissorX1;
extern s32 g_ScissorX2;
extern s32 g_ScissorY1;

View File

@ -77,7 +77,7 @@ void currentPlayerSetShieldFrac(f32 frac);
s32 getMissionTime(void);
s32 playerTickBeams(struct prop *prop);
s32 playerTickThirdPerson(struct prop *prop);
void func0f0c2a58(struct chrdata *chr, s32 crouchpos, f32 speedsideways, f32 speedforwards, f32 speedtheta, f32 *angleoffset, struct attackanimconfig **animcfg);
void playerChooseThirdPersonAnimation(struct chrdata *chr, s32 crouchpos, f32 speedsideways, f32 speedforwards, f32 speedtheta, f32 *angleoffset, struct attackanimconfig **animcfg);
Gfx *playerRender(struct prop *prop, Gfx *gdl, bool withalpha);
Gfx *currentPlayerLoadMatrix(Gfx *gdl);
void func0f0c3320(Mtxf *matrices, s32 count);