baanim.h documentation

This commit is contained in:
Banjo Kazooie
2023-02-17 20:08:45 -06:00
parent 1c4d1b54cd
commit 1aff1a433a
87 changed files with 904 additions and 850 deletions

View File

@@ -2,7 +2,7 @@
#include "functions.h"
#include "variables.h"
extern f32 func_8028EBA4();
extern f32 player_getYaw();
AnimCtrl *player_getAnimCtrlPtr(void);
Actor *__chJigsawDance_draw(ActorMarker *this, Gfx **gdl, Mtx **mptr, Vtx **arg3);
@@ -47,29 +47,29 @@ void __chJigsawDance_update(Actor * this){
break;
case 2:
player_getPosition(this->position);
this->yaw = func_8028EBA4();
this->yaw = player_getYaw();
plyrMvmt = player_getAnimCtrlPtr();
animctrl_setSmoothTransition(this->animctrl, 0);
animctrl_setIndex(this->animctrl, animctrl_getIndex(plyrMvmt));
func_8028774C(this->animctrl,animctrl_getAnimTimer(plyrMvmt));
animctrl_setStart(this->animctrl,animctrl_getAnimTimer(plyrMvmt));
animctrl_setDuration(this->animctrl, 1000.0f);
func_802875AC(this->animctrl, "chjigsawdance.c", 0x59);
animctrl_start(this->animctrl, "chjigsawdance.c", 0x59);
break;
case 3:
plyrMvmt = player_getAnimCtrlPtr();
animctrl_setSmoothTransition(this->animctrl, 0);
func_8028774C(this->animctrl,animctrl_getAnimTimer(plyrMvmt));
animctrl_setStart(this->animctrl,animctrl_getAnimTimer(plyrMvmt));
animctrl_setDuration(this->animctrl, 1000.0f);
func_802875AC(this->animctrl, "chjigsawdance.c", 0x62);
animctrl_start(this->animctrl, "chjigsawdance.c", 0x62);
break;
case 4:
player_getPosition(this->position);
this->yaw = func_8028EBA4();
this->yaw = player_getYaw();
plyrMvmt = player_getAnimCtrlPtr();
animctrl_setSmoothTransition(this->animctrl, 0);
func_8028774C(this->animctrl,animctrl_getAnimTimer(plyrMvmt));
animctrl_setStart(this->animctrl,animctrl_getAnimTimer(plyrMvmt));
animctrl_setDuration(this->animctrl, 1000.0f);
func_802875AC(this->animctrl, "chjigsawdance.c", 0x6e);
animctrl_start(this->animctrl, "chjigsawdance.c", 0x6e);
break;
case 5:
this->marker->propPtr->unk8_4 = 0;
@@ -93,11 +93,11 @@ void chJigsawDance_setState(Actor * this, u32 arg1){
break;
case 4:
player_getPosition(this->position);
this->yaw = func_8028EBA4();
this->yaw = player_getYaw();
animctrl_setSmoothTransition(this->animctrl, 0);
func_8028774C(this->animctrl, animctrl_getAnimTimer(player_getAnimCtrlPtr()));
animctrl_setStart(this->animctrl, animctrl_getAnimTimer(player_getAnimCtrlPtr()));
animctrl_setDuration(this->animctrl, 1000.0f);
func_802875AC(this->animctrl, "chjigsawdance.c", 0x97);
animctrl_start(this->animctrl, "chjigsawdance.c", 0x97);
break;
case 5:
func_80328A84(this, 5);

View File

@@ -113,15 +113,15 @@ void chtrainers_update(Actor *this){
}//L802CA6F8
}
bool chtrainers_802CA708(Actor *this){
bool chtrainers_canUse(Actor *this){
return this->unk10_12 && ability_isUnlocked(ABILITY_11_TURBO_TALON);
}
f32 chtrainers_802CA748(Actor *this){
f32 chtrainers_getDuration(Actor *this){
return this->velocity[0];
}
void chtrainers_802CA750(Actor *this){
void chtrainers_pickup(Actor *this){
func_80328A84(this, 1);
this->velocity[2] = 1.0f;
this->unk10_12 = 0;