rename animctrl
to anctrl
to match source debug string and tooie naming
rename `rumbleManager` to `bamotor`
This commit is contained in:
@@ -129,10 +129,10 @@ void bsant_walk_update(void){
|
||||
func_80299628(0);
|
||||
func_8029E48C();
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.7781f))
|
||||
if(anctrl_isAt(aCtrl, 0.7781f))
|
||||
func_8029E448(0);
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.2781f))
|
||||
if(anctrl_isAt(aCtrl, 0.2781f))
|
||||
func_8029E448(1);
|
||||
|
||||
if(func_8029B300() == 0 && baphysics_is_slower_than(1.0f))
|
||||
@@ -155,14 +155,14 @@ void bsant_walk_end(void){
|
||||
void bsant_jump_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
func_8029E554();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_60_ANIM_BSANT_JUMP);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setTransitionDuration(aCtrl, 0.1f);
|
||||
animctrl_setStart(aCtrl, 0.2987f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.4423f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsant.c", 0x17c);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_60_ANIM_BSANT_JUMP);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setTransitionDuration(aCtrl, 0.1f);
|
||||
anctrl_setStart(aCtrl, 0.2987f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.4423f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsant.c", 0x17c);
|
||||
func_8029C7F4(1, YAW_STATE_1_DEFAULT, 3, BA_PHYSICS_AIRBORN);
|
||||
if(func_8029B2E8() != 0.0f)
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -189,15 +189,15 @@ void bsant_jump_update(void){
|
||||
|
||||
switch(bsant_substate){
|
||||
case 0://L8029EA88
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setDuration(aCtrl, 5.0f);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setDuration(aCtrl, 5.0f);
|
||||
baanim_setEnd(0.5026f);
|
||||
bsant_substate = 1;
|
||||
}
|
||||
break;
|
||||
case 1://L8029EABC
|
||||
if(func_8028B254(0x82)){
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
baanim_setEnd(1.0f);
|
||||
bsant_substate = 2;
|
||||
}
|
||||
@@ -210,7 +210,7 @@ void bsant_jump_update(void){
|
||||
}
|
||||
break;
|
||||
case 3://L8029EB24
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp2C = BS_35_ANT_IDLE;
|
||||
break;
|
||||
}//L8029EB38
|
||||
@@ -235,12 +235,12 @@ void bsant_fall_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
func_8029E554();
|
||||
D_8037D298 = 0;
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_60_ANIM_BSANT_JUMP);
|
||||
animctrl_setDuration(aCtrl, 1.9f);
|
||||
animctrl_setStart(aCtrl, 0.4423f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
animctrl_start(aCtrl, "bsant.c", 0x208);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_60_ANIM_BSANT_JUMP);
|
||||
anctrl_setDuration(aCtrl, 1.9f);
|
||||
anctrl_setStart(aCtrl, 0.4423f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_start(aCtrl, "bsant.c", 0x208);
|
||||
func_8029C7F4(1, YAW_STATE_1_DEFAULT, 3, BA_PHYSICS_AIRBORN);
|
||||
bsant_substate = 0;
|
||||
}
|
||||
@@ -258,7 +258,7 @@ void bsant_fall_update(void){
|
||||
switch(bsant_substate){
|
||||
case 0:
|
||||
if(func_8028B254(0x5A)){
|
||||
animctrl_setDuration(aCtrl, 2.0f);
|
||||
anctrl_setDuration(aCtrl, 2.0f);
|
||||
baanim_setEnd(1.0f);
|
||||
bsant_substate = 1;
|
||||
}
|
||||
@@ -286,12 +286,12 @@ static void __bsant_recoil_init(int take_damage){
|
||||
f32 sp20[3];
|
||||
|
||||
func_8029E554();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_28_ANIM_BSANT_OW);
|
||||
animctrl_setDuration(aCtrl, 1.4f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.4899f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsant.c", 0x272);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_28_ANIM_BSANT_OW);
|
||||
anctrl_setDuration(aCtrl, 1.4f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.4899f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsant.c", 0x272);
|
||||
if(take_damage == 1)
|
||||
func_8030E58C(SFX_38_BANJO_AYE_1, 1.8f);
|
||||
else
|
||||
@@ -375,13 +375,13 @@ void bsant_die_init(void){
|
||||
f32 sp20[3];
|
||||
func_8029E554();
|
||||
func_8029B930();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_29_ANIM_BSANT_DIE);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.523f);
|
||||
animctrl_setDuration(aCtrl, 1.6f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsant.c", 0x2f6);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_29_ANIM_BSANT_DIE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.523f);
|
||||
anctrl_setDuration(aCtrl, 1.6f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsant.c", 0x2f6);
|
||||
func_8030E58C(SFX_36_BANJO_DOH, 1.8f);
|
||||
_player_getPosition(sp2C);
|
||||
func_80294980(sp20);
|
||||
@@ -421,13 +421,13 @@ void bsant_die_update(void){
|
||||
}
|
||||
break;
|
||||
case 1://L8029F2C0
|
||||
if(animctrl_isAt(aCtrl, 0.72f)){
|
||||
if(anctrl_isAt(aCtrl, 0.72f)){
|
||||
D_8037D290 = 0.0f;
|
||||
bsant_substate = 2;
|
||||
}
|
||||
break;
|
||||
case 2://L8029F2F0
|
||||
if(animctrl_isAt(aCtrl, 0.77f)){
|
||||
if(anctrl_isAt(aCtrl, 0.77f)){
|
||||
FUNC_8030E624(SFX_1F_HITTING_AN_ENEMY_3, 0.8f, 18000);
|
||||
FUNC_8030E624(SFX_38_BANJO_AYE_1, 1.8f, 18000);
|
||||
}
|
||||
|
@@ -60,13 +60,13 @@ void bsbarge_init(void){
|
||||
AnimCtrl *plyrMvmnt;
|
||||
|
||||
plyrMvmnt = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(plyrMvmnt);
|
||||
animctrl_setSmoothTransition(plyrMvmnt, 0);
|
||||
animctrl_setIndex(plyrMvmnt, ASSET_1C_ANIM_BSBBARGE);
|
||||
animctrl_setDuration(plyrMvmnt, 1.0f);
|
||||
animctrl_setSubRange(plyrMvmnt, 0, 0.375f);
|
||||
animctrl_setPlaybackType(plyrMvmnt, ANIMCTRL_ONCE);
|
||||
animctrl_start(plyrMvmnt, "bsbbarge.c", 0x98);
|
||||
anctrl_reset(plyrMvmnt);
|
||||
anctrl_setSmoothTransition(plyrMvmnt, 0);
|
||||
anctrl_setIndex(plyrMvmnt, ASSET_1C_ANIM_BSBBARGE);
|
||||
anctrl_setDuration(plyrMvmnt, 1.0f);
|
||||
anctrl_setSubRange(plyrMvmnt, 0, 0.375f);
|
||||
anctrl_setPlaybackType(plyrMvmnt, ANIMCTRL_ONCE);
|
||||
anctrl_start(plyrMvmnt, "bsbbarge.c", 0x98);
|
||||
D_8037D2A4 = 0;
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_LOCKED_ROTATION);
|
||||
baphysics_set_target_yaw(yaw_getIdeal());
|
||||
@@ -92,10 +92,10 @@ void bsbarge_update(void){
|
||||
miscFlag_set(MISC_FLAG_A);
|
||||
switch(D_8037D2A5){
|
||||
case 0:
|
||||
if(animctrl_isAt(plyrMvmnt, 0.1392f))
|
||||
if(anctrl_isAt(plyrMvmnt, 0.1392f))
|
||||
func_80299BD4();
|
||||
|
||||
if(!animctrl_isStopped(plyrMvmnt))
|
||||
if(!anctrl_isStopped(plyrMvmnt))
|
||||
break;
|
||||
|
||||
if(miscFlag_isFalse(MISC_FLAG_A)){
|
||||
@@ -120,7 +120,7 @@ void bsbarge_update(void){
|
||||
if(!batimer_isZero(1))
|
||||
break;
|
||||
|
||||
animctrl_setDuration(plyrMvmnt, 1.0f);
|
||||
anctrl_setDuration(plyrMvmnt, 1.0f);
|
||||
baanim_setEnd(0.565f);
|
||||
baphysics_set_target_horizontal_velocity(D_8037D2A0);
|
||||
baphysics_set_horizontal_velocity(yaw_getIdeal(), baphysics_get_target_horizontal_velocity());
|
||||
@@ -131,8 +131,8 @@ void bsbarge_update(void){
|
||||
break;
|
||||
case 2:
|
||||
baphysics_set_target_horizontal_velocity(D_8037D2A0);
|
||||
if(animctrl_isStopped(plyrMvmnt)){
|
||||
animctrl_setDuration(plyrMvmnt, 2.0f);
|
||||
if(anctrl_isStopped(plyrMvmnt)){
|
||||
anctrl_setDuration(plyrMvmnt, 2.0f);
|
||||
baanim_setEnd(0.6f);
|
||||
batimer_set(0, 0.1f);
|
||||
D_8037D2A5 = 3;
|
||||
@@ -146,7 +146,7 @@ void bsbarge_update(void){
|
||||
}
|
||||
baphysics_set_target_horizontal_velocity(D_8037D2A0);
|
||||
if(D_8037D2A0 < 200.0f){
|
||||
animctrl_setDuration(plyrMvmnt, 1.5f);
|
||||
anctrl_setDuration(plyrMvmnt, 1.5f);
|
||||
baanim_setEnd(1.0f);
|
||||
D_8037D2A5 = 4;
|
||||
}
|
||||
@@ -155,12 +155,12 @@ void bsbarge_update(void){
|
||||
case 4:
|
||||
if(!player_isStable())
|
||||
sp24 = BS_2F_FALL;
|
||||
if(animctrl_isAt(plyrMvmnt, 0.7f)){
|
||||
if(anctrl_isAt(plyrMvmnt, 0.7f)){
|
||||
D_8037D2A0 = 0.0f;
|
||||
D_8037D2A6 = 0;
|
||||
}
|
||||
baphysics_set_target_horizontal_velocity(D_8037D2A0);
|
||||
if(animctrl_isAt(plyrMvmnt, 0.9193f))
|
||||
if(anctrl_isAt(plyrMvmnt, 0.9193f))
|
||||
sp24 = BS_20_LANDING;
|
||||
break;
|
||||
}
|
||||
|
@@ -37,21 +37,21 @@ void bseggass_update(void) {
|
||||
func_80346C10(&sp28, -1, 0, ITEM_D_EGGS, 0);
|
||||
}
|
||||
if (has_eggs) {
|
||||
if (animctrl_isAt(plyr_mvmt, 0.3837f)) {
|
||||
if (anctrl_isAt(plyr_mvmt, 0.3837f)) {
|
||||
func_8030E760(SFX_3E_POOP_NOISE, 1.4f, 28000);
|
||||
func_8033E3F0(COMMON_PARTICLE_4_EGG_ASS, 1);
|
||||
item_dec(ITEM_D_EGGS);
|
||||
ability_use(7);
|
||||
}
|
||||
if ((animctrl_isAt(plyr_mvmt, 0.4885f)) && (D_8037D2E1 < D_8037D2E0)) {
|
||||
animctrl_setStart(plyr_mvmt, 0.349f);
|
||||
animctrl_start(plyr_mvmt, "bsbeggass.c", 0x5E);
|
||||
if ((anctrl_isAt(plyr_mvmt, 0.4885f)) && (D_8037D2E1 < D_8037D2E0)) {
|
||||
anctrl_setStart(plyr_mvmt, 0.349f);
|
||||
anctrl_start(plyr_mvmt, "bsbeggass.c", 0x5E);
|
||||
D_8037D2E1++;
|
||||
}
|
||||
}
|
||||
if (animctrl_isStopped(plyr_mvmt)) {
|
||||
if (anctrl_isStopped(plyr_mvmt)) {
|
||||
next_state = (button_held(BUTTON_Z))? BS_CROUCH : BS_1_IDLE;
|
||||
} else if (0.6 < (f64) animctrl_getAnimTimer(plyr_mvmt)) {
|
||||
} else if (0.6 < (f64) anctrl_getAnimTimer(plyr_mvmt)) {
|
||||
next_state = func_802ADCD4(0);
|
||||
}
|
||||
if (func_8028B094())
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include "core2/ba/physics.h"
|
||||
|
||||
void yaw_setVelocityBounded(f32, f32);
|
||||
void animctrl_start(AnimCtrl *, char*, s32);
|
||||
void anctrl_start(AnimCtrl *, char*, s32);
|
||||
|
||||
/* .bss */
|
||||
u8 D_8037D2F0;
|
||||
@@ -40,27 +40,27 @@ void bsegghead_update(void) {
|
||||
func_80346C10(&sp28, -1, 0, ITEM_D_EGGS, 0);
|
||||
}
|
||||
if (has_eggs) {
|
||||
if (animctrl_isAt(aCtrl, 0.1f))
|
||||
if (anctrl_isAt(aCtrl, 0.1f))
|
||||
func_8030E760(SFX_46_KAZOOIE_CHOKING_UP, 1.0f, 0x7fff);
|
||||
|
||||
if (animctrl_isAt(aCtrl, 0.4f))
|
||||
if (anctrl_isAt(aCtrl, 0.4f))
|
||||
func_8030E760(SFX_57_KAZOOIE_HEGH, 1.0f, 0x7fff);
|
||||
|
||||
if (animctrl_isAt(aCtrl, 0.4704f)){
|
||||
if (anctrl_isAt(aCtrl, 0.4704f)){
|
||||
func_8033E3F0(COMMON_PARTICLE_1_EGG_HEAD, 1);
|
||||
item_dec(ITEM_D_EGGS);
|
||||
ability_use(7);
|
||||
}
|
||||
if ((animctrl_isAt(aCtrl, 0.5919f)) && (D_8037D2F1 < D_8037D2F0)) {
|
||||
animctrl_setStart(aCtrl, 0.3878f);
|
||||
animctrl_start(aCtrl, "bsbegghead.c", 0x62);
|
||||
if ((anctrl_isAt(aCtrl, 0.5919f)) && (D_8037D2F1 < D_8037D2F0)) {
|
||||
anctrl_setStart(aCtrl, 0.3878f);
|
||||
anctrl_start(aCtrl, "bsbegghead.c", 0x62);
|
||||
D_8037D2F1++;
|
||||
}
|
||||
}
|
||||
if (animctrl_isStopped(aCtrl)) {
|
||||
if (anctrl_isStopped(aCtrl)) {
|
||||
next_state = (button_held(BUTTON_Z))? BS_CROUCH : BS_1_IDLE;
|
||||
|
||||
} else if (0.65 < (f64) animctrl_getAnimTimer(aCtrl)) {
|
||||
} else if (0.65 < (f64) anctrl_getAnimTimer(aCtrl)) {
|
||||
next_state = func_802ADCD4(0);
|
||||
}
|
||||
if (func_8028B094())
|
||||
|
@@ -53,7 +53,7 @@ void func_802A2790(s32 arg0, f32 arg1, s32 arg2) {
|
||||
void func_802A2810(void) {
|
||||
AnimCtrl *plyrMvPtr;
|
||||
plyrMvPtr = baanim_getAnimCtrlPtr();
|
||||
if (animctrl_isAt(plyrMvPtr, 0.9f)) {
|
||||
if (anctrl_isAt(plyrMvPtr, 0.9f)) {
|
||||
D_8037D301++;
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ f32 func_802A2858(void){
|
||||
|
||||
void func_802A28CC(void){
|
||||
AnimCtrl *sp1c = baanim_getAnimCtrlPtr();
|
||||
animctrl_setDuration(sp1c, func_802A2858());
|
||||
anctrl_setDuration(sp1c, func_802A2858());
|
||||
}
|
||||
|
||||
void func_802A2900(void){
|
||||
@@ -97,7 +97,7 @@ void func_802A298C(void){
|
||||
func_802A2790(0x4e, 1.24f, 0x4e20);
|
||||
}
|
||||
|
||||
if((0.7 < D_8037D308) && animctrl_isAt(sp1c, 0.5698f)){
|
||||
if((0.7 < D_8037D308) && anctrl_isAt(sp1c, 0.5698f)){
|
||||
func_802A2790(0x47, 1.0f, 0x55f0);
|
||||
}
|
||||
}
|
||||
@@ -114,13 +114,13 @@ void bsbflap_update(void){
|
||||
bafalldamage_start();
|
||||
func_802A2900();
|
||||
func_802A298C();
|
||||
if(animctrl_isAt(sp18, 0.9f)){
|
||||
animctrl_setSmoothTransition(sp18, 0);
|
||||
animctrl_setIndex(sp18, ASSET_17_ANIM_BSBFLAP);
|
||||
animctrl_setDuration(sp18, func_802A2858());
|
||||
animctrl_setPlaybackType(sp18, ANIMCTRL_LOOP);
|
||||
animctrl_setStart(sp18, 0.0f);
|
||||
animctrl_start(sp18, "bsbflap.c", 0xe1);
|
||||
if(anctrl_isAt(sp18, 0.9f)){
|
||||
anctrl_setSmoothTransition(sp18, 0);
|
||||
anctrl_setIndex(sp18, ASSET_17_ANIM_BSBFLAP);
|
||||
anctrl_setDuration(sp18, func_802A2858());
|
||||
anctrl_setPlaybackType(sp18, ANIMCTRL_LOOP);
|
||||
anctrl_setStart(sp18, 0.0f);
|
||||
anctrl_start(sp18, "bsbflap.c", 0xe1);
|
||||
baphysics_set_vertical_velocity(D_80364A10);
|
||||
baphysics_set_gravity(D_80364A14);
|
||||
baphysics_set_terminal_velocity(D_80364A18);
|
||||
@@ -143,12 +143,13 @@ void bsbflap_update(void){
|
||||
func_802A2810();
|
||||
func_802A28CC();
|
||||
func_802A298C();
|
||||
if(D_8037D301 == 4)
|
||||
if(D_8037D301 == 4) {
|
||||
D_8037D300 = 3;
|
||||
}
|
||||
if(button_released(BUTTON_A)){
|
||||
baphysics_reset_gravity();
|
||||
baphysics_reset_terminal_velocity();
|
||||
animctrl_setDuration(sp18, 1.0f);
|
||||
anctrl_setDuration(sp18, 1.0f);
|
||||
D_8037D300 = 4;
|
||||
}
|
||||
break;
|
||||
@@ -161,7 +162,7 @@ void bsbflap_update(void){
|
||||
if(button_released(BUTTON_A)){
|
||||
baphysics_reset_gravity();
|
||||
baphysics_reset_terminal_velocity();
|
||||
animctrl_setDuration(sp18, 1.0f);
|
||||
anctrl_setDuration(sp18, 1.0f);
|
||||
bafalldamage_set_state(2);
|
||||
D_8037D300 = 4;
|
||||
}
|
||||
|
@@ -28,12 +28,12 @@ void _bsbflip_802A2DC0(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
f32 sp20[3];
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_4B_ANIM_BSBFLIP_ENTER);
|
||||
animctrl_setDuration(aCtrl, 2.2f);
|
||||
animctrl_setStart(aCtrl, 0.8566f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsbflip.c", 0x69); //nice
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_4B_ANIM_BSBFLIP_ENTER);
|
||||
anctrl_setDuration(aCtrl, 2.2f);
|
||||
anctrl_setStart(aCtrl, 0.8566f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsbflip.c", 0x69); //nice
|
||||
baphysics_set_type(BA_PHYSICS_LOCKED_ROTATION);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
ml_vec3f_clear(sp20);
|
||||
@@ -43,14 +43,14 @@ void _bsbflip_802A2DC0(void){
|
||||
|
||||
void bsbflip_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_4B_ANIM_BSBFLIP_ENTER);
|
||||
animctrl_setDuration(aCtrl, 2.3f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.7866f);
|
||||
animctrl_setStart(aCtrl, 0.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsbflip.c", 0x80);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_4B_ANIM_BSBFLIP_ENTER);
|
||||
anctrl_setDuration(aCtrl, 2.3f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.7866f);
|
||||
anctrl_setStart(aCtrl, 0.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsbflip.c", 0x80);
|
||||
func_8029C7F4(1,1,2, BA_PHYSICS_LOCKED_ROTATION);
|
||||
func_8029B324(0, 0.03f);
|
||||
func_8029B324(1, 1.0f);
|
||||
@@ -63,16 +63,16 @@ void bsbflip_update(void){
|
||||
enum bs_e sp24 = 0;
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
if( animctrl_isAt(aCtrl, 0.2394f)
|
||||
&& animctrl_getPlaybackType(aCtrl) != 2
|
||||
&& animctrl_getIndex(aCtrl) == 0x4B
|
||||
if( anctrl_isAt(aCtrl, 0.2394f)
|
||||
&& anctrl_getPlaybackType(aCtrl) != 2
|
||||
&& anctrl_getIndex(aCtrl) == 0x4B
|
||||
){
|
||||
func_8030E760(SFX_2_CLAW_SWIPE, 0.558f, 22000);
|
||||
}
|
||||
|
||||
switch(D_8037D310){
|
||||
case 0://L802A2FD4
|
||||
if(animctrl_isAt(aCtrl, 0.1837f)){
|
||||
if(anctrl_isAt(aCtrl, 0.1837f)){
|
||||
if(func_8029B2E8() != 0.0f){
|
||||
yaw_setUpdateState(2);
|
||||
func_8029957C(3);
|
||||
@@ -91,20 +91,20 @@ void bsbflip_update(void){
|
||||
baphysics_set_vertical_velocity(D_80364A20);
|
||||
baphysics_set_gravity(D_80364A24);
|
||||
baphysics_set_terminal_velocity(D_80364A28);
|
||||
animctrl_setDuration(aCtrl, 1.9f);
|
||||
anctrl_setDuration(aCtrl, 1.9f);
|
||||
func_8030E4E4(SFX_33_BANJO_AHOO);
|
||||
D_8037D310 = 1;
|
||||
}
|
||||
break;
|
||||
case 1://L802A30F8
|
||||
_bsbflip_802A2D60();
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_4C_ANIM_BSBFLIP_HOLD);
|
||||
animctrl_setDuration(aCtrl, 0.13f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(aCtrl, "bsbflip.c", 0xd9);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_4C_ANIM_BSBFLIP_HOLD);
|
||||
anctrl_setDuration(aCtrl, 0.13f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(aCtrl, "bsbflip.c", 0xd9);
|
||||
D_8037D310 = 2;
|
||||
}//L802A316C
|
||||
if(should_beak_bust()){
|
||||
@@ -115,12 +115,12 @@ void bsbflip_update(void){
|
||||
if(player_isFallTumbling())
|
||||
sp24 = BS_3D_FALL_TUMBLING;
|
||||
if(button_released(BUTTON_A)){
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_61_ANIM_BSBFLIP_EXIT);
|
||||
animctrl_setDuration(aCtrl, 0.8f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsbflip.c", 0xee);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_61_ANIM_BSBFLIP_EXIT);
|
||||
anctrl_setDuration(aCtrl, 0.8f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsbflip.c", 0xee);
|
||||
baphysics_reset_terminal_velocity();
|
||||
D_8037D310 = 3;
|
||||
}//L802A320C
|
||||
@@ -147,7 +147,7 @@ void bsbflip_update(void){
|
||||
}
|
||||
break;
|
||||
case 4://L802A32C0
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp24 = BS_2_WALK_SLOW;
|
||||
sp24 = func_8029C9C0(sp24);
|
||||
break;
|
||||
|
@@ -157,8 +157,8 @@ void bsbfly_enter_update(void){
|
||||
|
||||
switch(D_8037D344){
|
||||
case 0:
|
||||
if(animctrl_isAt(aCtrl, 0.2416f)){
|
||||
animctrl_setDuration(aCtrl, 2.4f);
|
||||
if(anctrl_isAt(aCtrl, 0.2416f)){
|
||||
anctrl_setDuration(aCtrl, 2.4f);
|
||||
baphysics_set_vertical_velocity(1600.0f);
|
||||
func_8030E58C(SFX_C_TAKING_FLIGHT_LIFTOFF, 0.7f);
|
||||
D_8037D344 = 1;
|
||||
@@ -226,7 +226,7 @@ void bsbfly_update(void){
|
||||
|
||||
if(sp2C || D_8037D346){
|
||||
if(sp2C){
|
||||
animctrl_setDuration(aCtrl, 0.3f);
|
||||
anctrl_setDuration(aCtrl, 0.3f);
|
||||
func_802D8BE4(0);
|
||||
}
|
||||
if(D_8037D346){
|
||||
@@ -253,13 +253,13 @@ void bsbfly_update(void){
|
||||
baphysics_set_vertical_velocity(sp30 * 400.0);
|
||||
}
|
||||
if(!sp30){
|
||||
animctrl_setDuration(aCtrl, 0.62f);
|
||||
anctrl_setDuration(aCtrl, 0.62f);
|
||||
func_802A33D8();
|
||||
D_8037D344 = 0;
|
||||
}
|
||||
break;
|
||||
}//L802A3CB8
|
||||
if(animctrl_isAt(aCtrl, 0.1358f)){
|
||||
if(anctrl_isAt(aCtrl, 0.1358f)){
|
||||
func_8030EBC8(SFX_2_CLAW_SWIPE, 0.6f, 0.7f, 0x2710, 0x2ee0);
|
||||
}
|
||||
baphysics_set_gravity(-300.0f);
|
||||
@@ -377,11 +377,11 @@ void func_802A411C(void) {
|
||||
sp58 = baanim_getAnimCtrlPtr();
|
||||
switch (D_8037D344) {
|
||||
case 0:
|
||||
if (animctrl_isAt(sp58, 0.6905f)) {
|
||||
if (anctrl_isAt(sp58, 0.6905f)) {
|
||||
baphysics_set_type(BA_PHYSICS_UNK8);
|
||||
func_802914CC(5);
|
||||
ncDynamicCam5_func_802BF590(&D_8037D338);
|
||||
animctrl_setDuration(sp58, 0.05f);
|
||||
anctrl_setDuration(sp58, 0.05f);
|
||||
func_80299CF4(SFX_50_KAZOOIE_RRRUH, 1.3f, 0x7FFF);
|
||||
D_8037D345 = 1;
|
||||
D_8037D324 = 0.0f;
|
||||
@@ -429,11 +429,11 @@ void func_802A411C(void) {
|
||||
if (sp48[0]*sp48[0] + sp48[1]*sp48[1] + sp48[2]*sp48[2] > 16000000.0f) {
|
||||
next_state = BS_57_BOMB_END;
|
||||
}
|
||||
if (animctrl_isStopped(sp58) != 0) {
|
||||
animctrl_setIndex(sp58, 0x47);
|
||||
animctrl_setDuration(sp58, 0.3f);
|
||||
animctrl_setPlaybackType(sp58, ANIMCTRL_LOOP);
|
||||
animctrl_start(sp58, "bsbfly.c", 0x361);
|
||||
if (anctrl_isStopped(sp58) != 0) {
|
||||
anctrl_setIndex(sp58, 0x47);
|
||||
anctrl_setDuration(sp58, 0.3f);
|
||||
anctrl_setPlaybackType(sp58, ANIMCTRL_LOOP);
|
||||
anctrl_start(sp58, "bsbfly.c", 0x361);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -447,15 +447,15 @@ void func_802A4404(void){
|
||||
}
|
||||
|
||||
void func_802A4430(void){
|
||||
AnimCtrl *plyr_animctrl;
|
||||
AnimCtrl *plyr_anctrl;
|
||||
|
||||
plyr_animctrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(plyr_animctrl);
|
||||
animctrl_setTransitionDuration(plyr_animctrl, 0.3f);
|
||||
animctrl_setIndex(plyr_animctrl, ASSET_CC_ANIM_BSFLY_BEAKBOMB_END);
|
||||
animctrl_setDuration(plyr_animctrl, 0.38f);
|
||||
animctrl_setPlaybackType(plyr_animctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(plyr_animctrl, "bsbfly.c", 0x38a);
|
||||
plyr_anctrl = baanim_getAnimCtrlPtr();
|
||||
anctrl_reset(plyr_anctrl);
|
||||
anctrl_setTransitionDuration(plyr_anctrl, 0.3f);
|
||||
anctrl_setIndex(plyr_anctrl, ASSET_CC_ANIM_BSFLY_BEAKBOMB_END);
|
||||
anctrl_setDuration(plyr_anctrl, 0.38f);
|
||||
anctrl_setPlaybackType(plyr_anctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(plyr_anctrl, "bsbfly.c", 0x38a);
|
||||
func_8029C7F4(1, 1, 3, BA_PHYSICS_LOCKED_ROTATION);
|
||||
func_8029E070(1);
|
||||
func_802A3430();
|
||||
@@ -535,7 +535,7 @@ void bsbfly_beakbomb_crash_init(void) {
|
||||
func_8029E070(1);
|
||||
FUNC_8030E624(SFX_1F_HITTING_AN_ENEMY_3, 0.8f, 32750);
|
||||
func_80299CF4(SFX_36_BANJO_DOH, 1.0f, 28000);
|
||||
rumbleManager_80250D94(1.0f, 0.5f, 0.5f);
|
||||
baMotor_80250D94(1.0f, 0.5f, 0.5f);
|
||||
item_dec(ITEM_14_HEALTH);
|
||||
func_802A46C8();
|
||||
baMarker_collisionOff();
|
||||
@@ -546,18 +546,18 @@ void func_802A47E0(void) {
|
||||
AnimCtrl *sp1C;
|
||||
|
||||
sp1C = baanim_getAnimCtrlPtr();
|
||||
if (animctrl_isAt(sp1C, 0.3659f)) {
|
||||
if (anctrl_isAt(sp1C, 0.3659f)) {
|
||||
FUNC_8030E624(SFX_1F_HITTING_AN_ENEMY_3, 1.0f, 14000);
|
||||
func_80299CF4(SFX_8B_KAZOOIE_RAWW, 1.0f, 28000);
|
||||
}
|
||||
if (animctrl_isAt(sp1C, 0.6862f)) {
|
||||
if (anctrl_isAt(sp1C, 0.6862f)) {
|
||||
FUNC_8030E624(SFX_1F_HITTING_AN_ENEMY_3, 0.8f, 18000);
|
||||
func_80299CF4(SFX_38_BANJO_AYE_1, 1.0f, 22000);
|
||||
}
|
||||
if (animctrl_isAt(sp1C, 0.92f)) {
|
||||
if (anctrl_isAt(sp1C, 0.92f)) {
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
}
|
||||
if (animctrl_getAnimTimer(sp1C) < 0.8) {
|
||||
if (anctrl_getAnimTimer(sp1C) < 0.8) {
|
||||
func_802929F8();
|
||||
}
|
||||
}
|
||||
@@ -572,7 +572,7 @@ void func_802A48B4(void) {
|
||||
switch (D_8037D344) {
|
||||
case 0:
|
||||
func_802A47E0();
|
||||
if (animctrl_isAt(sp18, 0.2f) != 0) {
|
||||
if (anctrl_isAt(sp18, 0.2f) != 0) {
|
||||
if (item_getCount(ITEM_14_HEALTH) == 0) {
|
||||
func_8029C984();
|
||||
func_8029151C(0xD);
|
||||
@@ -581,19 +581,19 @@ void func_802A48B4(void) {
|
||||
batimer_set(0, 2.5f);
|
||||
D_8037D344 = 2;
|
||||
}
|
||||
} else if (animctrl_isAt(sp18, 0.92f)) {
|
||||
} else if (anctrl_isAt(sp18, 0.92f)) {
|
||||
baanim_playForDuration_once(ASSET_D2_ANIM_BSSPLAT, 2.25f);
|
||||
D_8037D344 = 1;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (animctrl_isAt(sp18, 0.219f)) {
|
||||
if (anctrl_isAt(sp18, 0.219f)) {
|
||||
func_80299CF4(SFX_36_BANJO_DOH, 1.0f, 16000);
|
||||
}
|
||||
if (animctrl_isAt(sp18, 0.63f)) {
|
||||
if (anctrl_isAt(sp18, 0.63f)) {
|
||||
next_state = BS_20_LANDING;
|
||||
}
|
||||
if (animctrl_isStopped(sp18)) {
|
||||
if (anctrl_isStopped(sp18)) {
|
||||
next_state = BS_1_IDLE;
|
||||
}
|
||||
if (func_8028B094()) {
|
||||
@@ -636,7 +636,7 @@ void func_802A4A78(s32 arg0) {
|
||||
func_802BB3DC(2, 100.0f, 0.85f);
|
||||
baanim_playForDuration_onceSmooth(ASSET_D3_ANIM_BSBFLY_BEAKBOMB_REBOUND, 1.2f);
|
||||
func_80299BFC(1.0f);
|
||||
rumbleManager_80250D94(1.0f, 0.5f, 0.5f);
|
||||
baMotor_80250D94(1.0f, 0.5f, 0.5f);
|
||||
_player_getPosition(sp3C);
|
||||
func_80294980(sp30);
|
||||
func_80257F18(sp30, sp3C, &sp28);
|
||||
@@ -664,7 +664,7 @@ void func_802A4C34(s32 arg0) {
|
||||
s32 next_state;
|
||||
|
||||
next_state = 0;
|
||||
if (animctrl_isStopped(baanim_getAnimCtrlPtr())) {
|
||||
if (anctrl_isStopped(baanim_getAnimCtrlPtr())) {
|
||||
next_state = BS_24_FLY;
|
||||
}
|
||||
if (player_isStable()) {
|
||||
@@ -743,7 +743,7 @@ void func_802A4EC8(void) {
|
||||
if (player_isStable()) {
|
||||
next_state = BS_20_LANDING;
|
||||
}
|
||||
if (animctrl_isStopped(sp18) && (func_8028B094() || func_80294530())) {
|
||||
if (anctrl_isStopped(sp18) && (func_8028B094() || func_80294530())) {
|
||||
D_8037D346 = 1;
|
||||
next_state = BS_24_FLY;
|
||||
}
|
||||
@@ -768,7 +768,7 @@ void func_802A4FC8(void) {
|
||||
s32 next_state;
|
||||
|
||||
next_state = 0;
|
||||
if (animctrl_isAt(baanim_getAnimCtrlPtr(), 0.1358f) != 0) {
|
||||
if (anctrl_isAt(baanim_getAnimCtrlPtr(), 0.1358f) != 0) {
|
||||
func_8030EBC8(SFX_2_CLAW_SWIPE, 0.6f, 0.7f, 10000, 12000);
|
||||
}
|
||||
if (func_80298850() == 0) {
|
||||
|
@@ -95,12 +95,12 @@ void func_802A5404(void){
|
||||
|
||||
void __bsblongleg_enterFromTrot(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_40_ANIM_BSLONGLEG_ENTER_FROM_BTROT);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsblongleg.c", 0xe1);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_40_ANIM_BSLONGLEG_ENTER_FROM_BTROT);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsblongleg.c", 0xe1);
|
||||
stateTimer_set(STATE_TIMER_2_LONGLEG, D_8037D35C);
|
||||
func_803219F4(2);
|
||||
func_8030E2C4(D_8037D361);
|
||||
@@ -109,12 +109,12 @@ void __bsblongleg_enterFromTrot(void){
|
||||
|
||||
void __bsblongleg_enter(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_16_ANIM_BSBTROT_ENTER);
|
||||
animctrl_setDuration(aCtrl, 0.5f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsblongleg.c", 0xf6);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_16_ANIM_BSBTROT_ENTER);
|
||||
anctrl_setDuration(aCtrl, 0.5f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsblongleg.c", 0xf6);
|
||||
D_8037D360 = 0;
|
||||
}
|
||||
|
||||
@@ -140,11 +140,11 @@ void bsblongleg_enter_update(void){
|
||||
func_80299594(1, 0.5f);
|
||||
switch(D_8037D360){
|
||||
case 0:
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
__bsblongleg_enterFromTrot();
|
||||
break;
|
||||
case 1:
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
next_state = BS_26_LONGLEG_IDLE;
|
||||
break;
|
||||
}
|
||||
@@ -200,10 +200,10 @@ void bsblongleg_stand_end(void){
|
||||
void bsblongleg_walk_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_42_ANIM_BSLONGLEG_WALK);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(aCtrl, "bsblongleg.c", 0x1a1);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_42_ANIM_BSLONGLEG_WALK);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(aCtrl, "bsblongleg.c", 0x1a1);
|
||||
func_8029C7F4(2,1,1, BA_PHYSICS_NORMAL);
|
||||
baanim_setVelocityMapRanges(D_80364A40, D_80364A44, D_80364A48, D_80364A4C);
|
||||
}
|
||||
@@ -215,10 +215,10 @@ void bsblongleg_walk_update(void){
|
||||
func_80299594(1, 0.5f);
|
||||
func_8029AD28(0.47f, 4);
|
||||
func_8029AD28(0.97f, 3);
|
||||
if(animctrl_isAt(aCtrl, 0.7781f))
|
||||
if(anctrl_isAt(aCtrl, 0.7781f))
|
||||
func_802A5208(0);
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.2781f))
|
||||
if(anctrl_isAt(aCtrl, 0.2781f))
|
||||
func_802A5208(1);
|
||||
|
||||
func_802A524C();
|
||||
@@ -249,25 +249,25 @@ void bsblongleg_walk_end(void){
|
||||
|
||||
void func_802A5AB0(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setDirection(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_40_ANIM_BSLONGLEG_ENTER_FROM_BTROT);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsblongleg.c", 0x200);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setDirection(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_40_ANIM_BSLONGLEG_ENTER_FROM_BTROT);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsblongleg.c", 0x200);
|
||||
D_8037D360 = 0;
|
||||
}
|
||||
|
||||
void func_802A5B34(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_7_ANIM_BSBTROT_EXIT);
|
||||
animctrl_setDuration(aCtrl, 0.6f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsblongleg.c", 0x210);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_7_ANIM_BSBTROT_EXIT);
|
||||
anctrl_setDuration(aCtrl, 0.6f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsblongleg.c", 0x210);
|
||||
D_8037D360 = 1;
|
||||
}
|
||||
|
||||
@@ -288,15 +288,15 @@ void bsblongleg_exit_update(void){
|
||||
func_80299628(1);
|
||||
switch(D_8037D360){
|
||||
case 0://L802A5C7C
|
||||
if(animctrl_isAt(aCtrl, 0.68f))
|
||||
if(anctrl_isAt(aCtrl, 0.68f))
|
||||
func_8030E2C4(D_8037D361);
|
||||
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
func_802A5B34();
|
||||
|
||||
break;
|
||||
case 1://L802A5CB4
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
next_state = BS_1_IDLE;
|
||||
break;
|
||||
}
|
||||
@@ -316,14 +316,14 @@ void bsblongleg_exit_end(void){
|
||||
void bsblongleg_jump_init(void){
|
||||
AnimCtrl * aCtrl = baanim_getAnimCtrlPtr();
|
||||
D_8037D350 = 0.14f;
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_3D_ANIM_BSLONGLEG_JUMP);
|
||||
animctrl_setTransitionDuration(aCtrl, 0.134f);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setStart(aCtrl, D_8037D350);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.42f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsblongleg.c", 0x27F);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_3D_ANIM_BSLONGLEG_JUMP);
|
||||
anctrl_setTransitionDuration(aCtrl, 0.134f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setStart(aCtrl, D_8037D350);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.42f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsblongleg.c", 0x27F);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
if(func_8029B2E8() != 0.0f)
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -352,37 +352,37 @@ void bsblongleg_jump_update(void){
|
||||
switch(D_8037D360){
|
||||
case 0://L802A5F24
|
||||
if((sp34[1] < 100.0f) || sp30 < 10.0f)
|
||||
animctrl_setDuration(aCtrl, 0.4f);
|
||||
anctrl_setDuration(aCtrl, 0.4f);
|
||||
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.5282f);
|
||||
animctrl_setDuration(aCtrl, 4.5f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.5282f);
|
||||
anctrl_setDuration(aCtrl, 4.5f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D360 = 1;
|
||||
}
|
||||
break;
|
||||
case 1://L802A5FA8
|
||||
if((0.4 < animctrl_getAnimTimer(aCtrl)) && sp30 < 70.0f){
|
||||
D_8037D350 = animctrl_getAnimTimer(aCtrl);
|
||||
if((0.4 < anctrl_getAnimTimer(aCtrl)) && sp30 < 70.0f){
|
||||
D_8037D350 = anctrl_getAnimTimer(aCtrl);
|
||||
D_8037D354 = sp30;
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
D_8037D360 = 2;
|
||||
}
|
||||
break;
|
||||
case 2://L802A6020
|
||||
animctrl_setAnimTimer(aCtrl, ml_map_f(sp30, D_8037D354, 1.0f, D_8037D350, 0.6703f));
|
||||
anctrl_setAnimTimer(aCtrl, ml_map_f(sp30, D_8037D354, 1.0f, D_8037D350, 0.6703f));
|
||||
func_80299594(1, 0.5f);
|
||||
if(player_isStable()){
|
||||
func_8029C5E8();
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 1.3f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 1.3f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D360 = 3;
|
||||
}
|
||||
break;
|
||||
case 3://L802A60AC
|
||||
func_80299594(1, 0.5f);
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp44 = BS_26_LONGLEG_IDLE;
|
||||
|
||||
if(button_pressed(BUTTON_A))
|
||||
@@ -409,11 +409,11 @@ void bsblongleg_jump_end(void){
|
||||
void bsblongleg_slide_init(void){
|
||||
AnimCtrl * aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_3D_ANIM_BSLONGLEG_JUMP);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
animctrl_setStart(aCtrl, 0.0865f);
|
||||
animctrl_start(aCtrl, "bsblongleg.c", 0x339);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_3D_ANIM_BSLONGLEG_JUMP);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_setStart(aCtrl, 0.0865f);
|
||||
anctrl_start(aCtrl, "bsblongleg.c", 0x339);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_LOCKED_ROTATION);
|
||||
baphysics_set_target_yaw(yaw_getIdeal());
|
||||
baphysics_set_horizontal_velocity(yaw_getIdeal(), baphysics_get_target_horizontal_velocity());
|
||||
|
@@ -6,7 +6,7 @@
|
||||
#include "core2/ba/physics.h"
|
||||
|
||||
void baModel_80292048(s32, f32, f32, f32);
|
||||
void animctrl_start(AnimCtrl *, char *, s32);
|
||||
void anctrl_start(AnimCtrl *, char *, s32);
|
||||
|
||||
/* .data */
|
||||
f32 D_80364A60 = -1400.0f;
|
||||
@@ -83,37 +83,37 @@ void bsbpeck_update(void){
|
||||
|
||||
switch(D_8037D374){
|
||||
case 0://L802A6770
|
||||
if(animctrl_isAt(aCtrl, 0.9126f)){
|
||||
animctrl_setIndex(aCtrl, ASSET_19_ANIM_BSBPECK_ENTER);
|
||||
animctrl_setStart(aCtrl, 0.0f);
|
||||
animctrl_setDuration(aCtrl, 0.35f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(aCtrl, "bsbpeck.c", 0xbd);
|
||||
if(anctrl_isAt(aCtrl, 0.9126f)){
|
||||
anctrl_setIndex(aCtrl, ASSET_19_ANIM_BSBPECK_ENTER);
|
||||
anctrl_setStart(aCtrl, 0.0f);
|
||||
anctrl_setDuration(aCtrl, 0.35f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(aCtrl, "bsbpeck.c", 0xbd);
|
||||
D_8037D370 = 0.5f;
|
||||
D_8037D374 = 1;
|
||||
}
|
||||
break;
|
||||
case 1://L802A67E8
|
||||
if(animctrl_isAt(aCtrl, 0.1621f))
|
||||
if(anctrl_isAt(aCtrl, 0.1621f))
|
||||
func_802A664C();
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.7f))
|
||||
if(anctrl_isAt(aCtrl, 0.7f))
|
||||
func_802A664C();
|
||||
|
||||
D_8037D370 -= time_getDelta();
|
||||
if(D_8037D370 < 0.0f){
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_1A_ANIM_BSBPECK);
|
||||
animctrl_setDirection(aCtrl, 0);
|
||||
animctrl_setDuration(aCtrl, 0.2f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsbpeck.c", 0xd4);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_1A_ANIM_BSBPECK);
|
||||
anctrl_setDirection(aCtrl, 0);
|
||||
anctrl_setDuration(aCtrl, 0.2f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsbpeck.c", 0xd4);
|
||||
D_8037D374 = 2;
|
||||
}
|
||||
break;
|
||||
case 2://L802A68C4
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp24 = BS_2F_FALL;
|
||||
break;
|
||||
}//L802A68D8
|
||||
|
@@ -16,13 +16,13 @@ u8 D_8037D382;
|
||||
/* .code */
|
||||
void bsbshock_charge_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_48_ANIM_BSBSHOCK_CHARGE);
|
||||
animctrl_setTransitionDuration(aCtrl, 0.4f);
|
||||
animctrl_setDuration(aCtrl, 4.2f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.1061f);
|
||||
animctrl_setPlaybackType(aCtrl,1);
|
||||
animctrl_start(aCtrl, "bsbshock.c", 0x61);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_48_ANIM_BSBSHOCK_CHARGE);
|
||||
anctrl_setTransitionDuration(aCtrl, 0.4f);
|
||||
anctrl_setDuration(aCtrl, 4.2f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.1061f);
|
||||
anctrl_setPlaybackType(aCtrl,1);
|
||||
anctrl_start(aCtrl, "bsbshock.c", 0x61);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
|
||||
if(func_8029B2E8() != 0.0f)
|
||||
@@ -69,26 +69,26 @@ void bsbshock_charge_update(void){
|
||||
sp2C = BS_3D_FALL_TUMBLING;
|
||||
|
||||
if(func_8028B254(0x82)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 2.8f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 2.8f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D381 = 1;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if(animctrl_isAt(aCtrl, 0.11f))
|
||||
if(anctrl_isAt(aCtrl, 0.11f))
|
||||
func_8030E2C4(D_8037D382);
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.4036f))
|
||||
animctrl_setDuration(aCtrl, 1.4f);
|
||||
if(anctrl_isAt(aCtrl, 0.4036f))
|
||||
anctrl_setDuration(aCtrl, 1.4f);
|
||||
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp2C = BS_1_IDLE;
|
||||
break;
|
||||
}//L802A6CAC
|
||||
|
||||
if(func_8028B254(0x3C)){
|
||||
if(animctrl_getAnimTimer(aCtrl) < 0.3637 && button_released(8)){
|
||||
if(anctrl_getAnimTimer(aCtrl) < 0.3637 && button_released(8)){
|
||||
D_8037D380 = 0;
|
||||
}//L802A6CF4
|
||||
if(player_isStable())
|
||||
@@ -101,10 +101,10 @@ void bsbshock_charge_update(void){
|
||||
if(should_beak_bust())
|
||||
sp2C = BS_F_BBUSTER;
|
||||
}//L802A6D44
|
||||
if(animctrl_isAt( aCtrl, 0.3637f) && D_8037D380)
|
||||
if(anctrl_isAt( aCtrl, 0.3637f) && D_8037D380)
|
||||
sp2C = BS_BSHOCK_JUMP;
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.5551f)){
|
||||
if(anctrl_isAt(aCtrl, 0.5551f)){
|
||||
baphysics_set_vertical_velocity(180.0f);
|
||||
baModel_80292158(0.0f);
|
||||
func_80298528(50.0f);
|
||||
@@ -127,14 +127,14 @@ void bsbshock_charge_end(void){
|
||||
|
||||
void bsbshock_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_49_ANIM_BSBSHOCK_JUMP);
|
||||
animctrl_setDuration(aCtrl, 0.8f);
|
||||
animctrl_setStart(aCtrl, 0.5304f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl,1);
|
||||
animctrl_start(aCtrl, "bsbshock.c", 0x13a);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_49_ANIM_BSBSHOCK_JUMP);
|
||||
anctrl_setDuration(aCtrl, 0.8f);
|
||||
anctrl_setStart(aCtrl, 0.5304f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl,1);
|
||||
anctrl_start(aCtrl, "bsbshock.c", 0x13a);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
|
||||
if(func_8029B2E8() != 0.0f)
|
||||
@@ -161,7 +161,7 @@ void bsbshock_update(void){
|
||||
|
||||
func_802B6FA8();
|
||||
baphysics_get_velocity(sp20);
|
||||
if(animctrl_isAt(aCtrl, 0.7f))
|
||||
if(anctrl_isAt(aCtrl, 0.7f))
|
||||
sfxsource_playHighPriority(SFX_53_BANJO_HUIII);
|
||||
|
||||
if(button_released(BUTTON_A) && 0.0f < sp20[1])
|
||||
|
@@ -155,11 +155,11 @@ void func_802A7738(void) {
|
||||
|
||||
temp_v0 = baanim_getAnimCtrlPtr();
|
||||
temp_s0 = temp_v0;
|
||||
animctrl_reset(temp_v0);
|
||||
animctrl_setIndex(temp_s0, ASSET_3F_ANIM_BSSWIM_DIVE_MOVE);
|
||||
animctrl_setStart(temp_s0, 0.4626f);
|
||||
animctrl_setDuration(temp_s0, 1.0f);
|
||||
animctrl_start(temp_s0, "bsbswim.c", 0x186);
|
||||
anctrl_reset(temp_v0);
|
||||
anctrl_setIndex(temp_s0, ASSET_3F_ANIM_BSSWIM_DIVE_MOVE);
|
||||
anctrl_setStart(temp_s0, 0.4626f);
|
||||
anctrl_setDuration(temp_s0, 1.0f);
|
||||
anctrl_start(temp_s0, "bsbswim.c", 0x186);
|
||||
func_802A7140();
|
||||
func_802A744C();
|
||||
D_8037D390 = 0.0f;
|
||||
@@ -192,27 +192,27 @@ void func_802A7838(void) {
|
||||
func_802A77D8();
|
||||
D_8037D390 = ml_max_f(D_8037D390 - 10.0f, 0.0f);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.1f)) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.1f)) {
|
||||
func_8030EB88(SFX_0_BLOOP, 1.2f, 1.4f);
|
||||
D_8037D390 = 600.0f;
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.4626f)) {
|
||||
animctrl_setDuration(anim_ctrl, 1.0f);
|
||||
if (anctrl_isAt(anim_ctrl, 0.4626f)) {
|
||||
anctrl_setDuration(anim_ctrl, 1.0f);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.2766f)) {
|
||||
animctrl_setDuration(anim_ctrl, 3.0f);
|
||||
if (anctrl_isAt(anim_ctrl, 0.2766f)) {
|
||||
anctrl_setDuration(anim_ctrl, 3.0f);
|
||||
}
|
||||
if (!button_held(BUTTON_B)) {
|
||||
if (button_held(BUTTON_A)) {
|
||||
temp_f2 = (f64) animctrl_getAnimTimer(anim_ctrl);
|
||||
temp_f2 = (f64) anctrl_getAnimTimer(anim_ctrl);
|
||||
if (temp_f2 <= 0.4625 && 0.1 < temp_f2) {
|
||||
next_state = BS_39_DIVE_A;
|
||||
}
|
||||
} else if (animctrl_isAt(anim_ctrl, 0.4625f)) {
|
||||
} else if (anctrl_isAt(anim_ctrl, 0.4625f)) {
|
||||
next_state = BS_2B_DIVE_IDLE;
|
||||
}
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.4625f) && !button_held(BUTTON_B)) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.4625f) && !button_held(BUTTON_B)) {
|
||||
if (button_held(BUTTON_A)) {
|
||||
next_state = BS_39_DIVE_A;
|
||||
} else {
|
||||
@@ -251,13 +251,13 @@ void func_802A7AB0(void) {
|
||||
func_802A71D8();
|
||||
func_802A7304();
|
||||
func_802A77D8();
|
||||
if (animctrl_isAt(anim_ctl, 0.17f)) {
|
||||
if (anctrl_isAt(anim_ctl, 0.17f)) {
|
||||
func_8030E760(SFX_0_BLOOP, 1.9f, 10000);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctl, 0.67f)) {
|
||||
if (anctrl_isAt(anim_ctl, 0.67f)) {
|
||||
func_8030E760(SFX_0_BLOOP, 1.7f, 10000);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctl, 0.99f)) {
|
||||
if (anctrl_isAt(anim_ctl, 0.99f)) {
|
||||
if (!button_held(BUTTON_A)) {
|
||||
next_state = BS_2B_DIVE_IDLE;
|
||||
}
|
||||
@@ -315,7 +315,7 @@ void func_802A7CA8(void) {
|
||||
if (baanim_isAt(0.3f)) {
|
||||
func_80292EA4();
|
||||
}
|
||||
if (animctrl_isStopped(baanim_getAnimCtrlPtr())) {
|
||||
if (anctrl_isStopped(baanim_getAnimCtrlPtr())) {
|
||||
next_state = BS_2B_DIVE_IDLE;
|
||||
}
|
||||
bs_setState(next_state);
|
||||
@@ -354,7 +354,7 @@ void func_802A7E2C(void) {
|
||||
switch (D_8037D396) {
|
||||
case 0:
|
||||
pitch_setIdeal(50.0f);
|
||||
if (animctrl_isAt(sp38, 0.7247f)) {
|
||||
if (anctrl_isAt(sp38, 0.7247f)) {
|
||||
sp34 = pitch_get();
|
||||
sp30 = yaw_get();
|
||||
func_80256E24(sp24, sp34, sp30, 0.0f, 0.0f, 800.0f);
|
||||
@@ -369,7 +369,7 @@ void func_802A7E2C(void) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (animctrl_isAt(sp38, 0.6f)) {
|
||||
if (anctrl_isAt(sp38, 0.6f)) {
|
||||
func_8030E4E4(SFX_0_BLOOP);
|
||||
}
|
||||
if (!player_inWater()) {
|
||||
@@ -521,19 +521,19 @@ void func_802A846C(void) {
|
||||
sp28 = ml_max_f(sp28, 600.0f);
|
||||
}
|
||||
if (sp28 > 80.0f) {
|
||||
animctrl_reset(temp_s0);
|
||||
animctrl_setIndex(temp_s0, ASSET_4F_ANIM_BSTWIRL);
|
||||
animctrl_setPlaybackType(temp_s0, ANIMCTRL_STOPPED);
|
||||
animctrl_setDuration(temp_s0, 1.2f);
|
||||
animctrl_setStart(temp_s0, 0.8204f);
|
||||
animctrl_start(temp_s0, "bsbswim.c", 0x417);
|
||||
anctrl_reset(temp_s0);
|
||||
anctrl_setIndex(temp_s0, ASSET_4F_ANIM_BSTWIRL);
|
||||
anctrl_setPlaybackType(temp_s0, ANIMCTRL_STOPPED);
|
||||
anctrl_setDuration(temp_s0, 1.2f);
|
||||
anctrl_setStart(temp_s0, 0.8204f);
|
||||
anctrl_start(temp_s0, "bsbswim.c", 0x417);
|
||||
} else {
|
||||
animctrl_reset(temp_s0);
|
||||
animctrl_setIndex(temp_s0, ASSET_57_ANIM_BSSWIM_IDLE);
|
||||
animctrl_setPlaybackType(temp_s0, ANIMCTRL_LOOP);
|
||||
animctrl_setDuration(temp_s0, 1.2f);
|
||||
animctrl_setStart(temp_s0, 0.6412f);
|
||||
animctrl_start(temp_s0, "bsbswim.c", 0x41E);
|
||||
anctrl_reset(temp_s0);
|
||||
anctrl_setIndex(temp_s0, ASSET_57_ANIM_BSSWIM_IDLE);
|
||||
anctrl_setPlaybackType(temp_s0, ANIMCTRL_LOOP);
|
||||
anctrl_setDuration(temp_s0, 1.2f);
|
||||
anctrl_setStart(temp_s0, 0.6412f);
|
||||
anctrl_start(temp_s0, "bsbswim.c", 0x41E);
|
||||
}
|
||||
D_8037D398 = ml_map_f(sp28, 40.0f, 1000.0f, -300.0f, -1200.0f);
|
||||
baphysics_set_vertical_velocity(D_8037D398);
|
||||
|
@@ -161,10 +161,10 @@ int func_802A8C60(void){
|
||||
}
|
||||
|
||||
void _bsbtrot_802A8C98(AnimCtrl *aCtrl, enum asset_e arg1){
|
||||
if(animctrl_getIndex(aCtrl) != arg1){
|
||||
animctrl_setIndex(aCtrl, arg1);
|
||||
animctrl_setStart(aCtrl, animctrl_getAnimTimer(aCtrl));
|
||||
animctrl_start(aCtrl, "bsbtrot.c", 0x12e);
|
||||
if(anctrl_getIndex(aCtrl) != arg1){
|
||||
anctrl_setIndex(aCtrl, arg1);
|
||||
anctrl_setStart(aCtrl, anctrl_getAnimTimer(aCtrl));
|
||||
anctrl_start(aCtrl, "bsbtrot.c", 0x12e);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -226,10 +226,10 @@ void bsbtrot_enter_update(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
func_802952A8(0,1);
|
||||
func_80299628(1);
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
next_state = BS_15_BTROT_IDLE;
|
||||
|
||||
if(0.5 < animctrl_getAnimTimer(aCtrl))
|
||||
if(0.5 < anctrl_getAnimTimer(aCtrl))
|
||||
next_state = func_802A8D84(next_state);
|
||||
|
||||
bs_setState(next_state);
|
||||
@@ -298,11 +298,11 @@ void bsbtrot_walk_update(void){
|
||||
_bsbtrot_802A8C98(aCtrl, func_802A9030());
|
||||
func_80299628(1);
|
||||
func_802A89D4();
|
||||
if(animctrl_isAt(aCtrl, 0.2781f))
|
||||
if(anctrl_isAt(aCtrl, 0.2781f))
|
||||
func_802A880C(1);
|
||||
|
||||
func_8029AD28(0.2781f, 4);
|
||||
if(animctrl_isAt(aCtrl, 0.7781f))
|
||||
if(anctrl_isAt(aCtrl, 0.7781f))
|
||||
func_802A880C(0);
|
||||
|
||||
func_8029AD28(0.7781f, 3);
|
||||
@@ -310,7 +310,7 @@ void bsbtrot_walk_update(void){
|
||||
func_802A87C0();
|
||||
}
|
||||
else{
|
||||
if(animctrl_isAt(aCtrl, 0.2115f) || animctrl_isAt(aCtrl, 0.7115f))
|
||||
if(anctrl_isAt(aCtrl, 0.2115f) || anctrl_isAt(aCtrl, 0.7115f))
|
||||
func_802A87C0();
|
||||
}
|
||||
if(!func_8029B300() && baphysics_is_slower_than(1.0f))
|
||||
@@ -344,14 +344,14 @@ void func_802A9320(void){}
|
||||
void bsbtrot_jump_init(void){
|
||||
AnimCtrl * aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_27_ANIM_BSBTROR_JUMP);
|
||||
animctrl_setDuration(aCtrl, 1.4f);
|
||||
animctrl_setTransitionDuration(aCtrl, 0.1f);
|
||||
animctrl_setStart(aCtrl, 0.2f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.4002f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsbtrot.c", 0x272);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_27_ANIM_BSBTROR_JUMP);
|
||||
anctrl_setDuration(aCtrl, 1.4f);
|
||||
anctrl_setTransitionDuration(aCtrl, 0.1f);
|
||||
anctrl_setStart(aCtrl, 0.2f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.4002f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsbtrot.c", 0x272);
|
||||
func_802A8A40();
|
||||
baanim_setUpdateType(BAANIM_UPDATE_1_NORMAL);
|
||||
yaw_setUpdateState(1);
|
||||
@@ -388,18 +388,18 @@ void bsbtrot_jump_update(void){
|
||||
|
||||
switch(D_8037D3A4){
|
||||
case 0://L802A9530
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.4653f);
|
||||
animctrl_setDuration(aCtrl, 10.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.4653f);
|
||||
anctrl_setDuration(aCtrl, 10.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D3A4 = 1;
|
||||
}
|
||||
break;
|
||||
case 1://L802A9578
|
||||
if(func_8028B254(0x8C)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.7328f);
|
||||
animctrl_setDuration(aCtrl, 1.4f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.7328f);
|
||||
anctrl_setDuration(aCtrl, 1.4f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D3A4 = 2;
|
||||
}
|
||||
break;
|
||||
@@ -407,9 +407,9 @@ void bsbtrot_jump_update(void){
|
||||
func_80299628(1);
|
||||
if(player_isStable()){
|
||||
func_8029C5E8();
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.8798f);
|
||||
animctrl_setDuration(aCtrl, 0.9f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.8798f);
|
||||
anctrl_setDuration(aCtrl, 0.9f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
func_8029957C(1);
|
||||
D_8037D3A4 = 3;
|
||||
if(220.0f < baphysics_get_target_horizontal_velocity())
|
||||
@@ -422,10 +422,10 @@ void bsbtrot_jump_update(void){
|
||||
func_80299AAC();
|
||||
func_802A9320();
|
||||
func_80299628(1);
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.8898f);
|
||||
animctrl_setDuration(aCtrl, 2.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.8898f);
|
||||
anctrl_setDuration(aCtrl, 2.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D3A4 = 4;
|
||||
}
|
||||
func_8029C22C();
|
||||
@@ -436,10 +436,10 @@ void bsbtrot_jump_update(void){
|
||||
|
||||
func_802A9320();
|
||||
func_80299628(1);
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 1.2f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 1.2f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D3A4 = 5;
|
||||
}
|
||||
func_8029C22C();
|
||||
@@ -449,7 +449,7 @@ void bsbtrot_jump_update(void){
|
||||
func_80299AAC();
|
||||
func_802A9320();
|
||||
func_80299628(1);
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp2C = BS_15_BTROT_IDLE;
|
||||
break;
|
||||
}//LL802A97D0
|
||||
@@ -487,7 +487,7 @@ void bsbtrot_exit_init(void){
|
||||
|
||||
void bsbtrot_exit_update(void){
|
||||
enum bs_e sp1C = 0;
|
||||
if(animctrl_isStopped(baanim_getAnimCtrlPtr()))
|
||||
if(anctrl_isStopped(baanim_getAnimCtrlPtr()))
|
||||
sp1C = BS_1_IDLE;
|
||||
|
||||
bs_setState(sp1C);
|
||||
@@ -499,11 +499,11 @@ void bsbtrot_exit_end(void){
|
||||
|
||||
void bsbtrot_slide_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_27_ANIM_BSBTROR_JUMP);
|
||||
animctrl_setStart(aCtrl, 0.069f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
animctrl_start(aCtrl, "bsbtrot.c", 0x382);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_27_ANIM_BSBTROR_JUMP);
|
||||
anctrl_setStart(aCtrl, 0.069f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_start(aCtrl, "bsbtrot.c", 0x382);
|
||||
func_802A8A40();
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_LOCKED_ROTATION);
|
||||
baphysics_set_target_yaw(yaw_getIdeal());
|
||||
@@ -566,12 +566,12 @@ int bsbtrot_inSet(s32 move_indx){
|
||||
|
||||
void bsbtrot_fall_init(void){
|
||||
AnimCtrl * aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_27_ANIM_BSBTROR_JUMP);
|
||||
animctrl_setDuration(aCtrl, 1.4f);
|
||||
animctrl_setStart(aCtrl, 0.4653f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
animctrl_start(aCtrl, "bsbtrot.c", 0x400);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_27_ANIM_BSBTROR_JUMP);
|
||||
anctrl_setDuration(aCtrl, 1.4f);
|
||||
anctrl_setStart(aCtrl, 0.4653f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_start(aCtrl, "bsbtrot.c", 0x400);
|
||||
func_802A8A40();
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
baphysics_set_target_yaw(yaw_getIdeal());
|
||||
@@ -597,9 +597,9 @@ void bsbtrot_fall_update(void){
|
||||
switch (D_8037D3A4){
|
||||
case 0://L802A9D90
|
||||
if(func_8028B254(0x8C)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.7328f);
|
||||
animctrl_setDuration(aCtrl, 1.4f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.7328f);
|
||||
anctrl_setDuration(aCtrl, 1.4f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D3A4 = 1;
|
||||
}
|
||||
break;
|
||||
@@ -607,9 +607,9 @@ void bsbtrot_fall_update(void){
|
||||
func_80299628(1);
|
||||
if(player_isStable()){
|
||||
func_8029C5E8();
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.8798f);
|
||||
animctrl_setDuration(aCtrl, 0.9f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.8798f);
|
||||
anctrl_setDuration(aCtrl, 0.9f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
func_8029957C(1);
|
||||
if(220.0f < baphysics_get_target_horizontal_velocity()){
|
||||
func_80299AAC();
|
||||
@@ -624,10 +624,10 @@ void bsbtrot_fall_update(void){
|
||||
|
||||
func_802A9320();
|
||||
func_80299628(1);
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.8898f);
|
||||
animctrl_setDuration(aCtrl, 2.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.8898f);
|
||||
anctrl_setDuration(aCtrl, 2.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D3A4 = 3;
|
||||
}
|
||||
func_8029C22C();
|
||||
@@ -638,10 +638,10 @@ void bsbtrot_fall_update(void){
|
||||
|
||||
func_802A9320();
|
||||
func_80299628(1);
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 1.2f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 1.2f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D3A4 = 4;
|
||||
}
|
||||
func_8029C22C();
|
||||
@@ -652,7 +652,7 @@ void bsbtrot_fall_update(void){
|
||||
|
||||
func_802A9320();
|
||||
func_80299628(1);
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp2C = BS_15_BTROT_IDLE;
|
||||
break;
|
||||
}//LL802A9FE8
|
||||
@@ -742,7 +742,7 @@ void bsbtrot_ow_update(void){
|
||||
if(player_isStable() && baanim_isStopped())
|
||||
sp1C = BS_15_BTROT_IDLE;
|
||||
|
||||
if(animctrl_isStopped(baanim_getAnimCtrlPtr()) && player_inWater())
|
||||
if(anctrl_isStopped(baanim_getAnimCtrlPtr()) && player_inWater())
|
||||
sp1C = BS_2D_SWIM_IDLE;
|
||||
|
||||
bs_setState(sp1C);
|
||||
|
@@ -96,7 +96,7 @@ void bsbwhirl_enter_init(void){
|
||||
void bsbwhirl_enter_update(void){
|
||||
enum bs_e sp1C = 0;
|
||||
func_802952A8(1,1);
|
||||
if(animctrl_isStopped(baanim_getAnimCtrlPtr()))
|
||||
if(anctrl_isStopped(baanim_getAnimCtrlPtr()))
|
||||
sp1C = BS_1B_WONDERWING_IDLE;
|
||||
bs_setState(sp1C);
|
||||
}
|
||||
@@ -172,14 +172,14 @@ void bsbwhirl_walk_end(void){
|
||||
void bsbwhirl_jump_init(void){
|
||||
AnimCtrl * aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_1B_ANIM_BSWHIRL_JUMP);
|
||||
animctrl_setDuration(aCtrl, 0.8f);
|
||||
animctrl_setTransitionDuration(aCtrl, 0.134f);
|
||||
animctrl_setStart(aCtrl, 0.14f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.4495f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsbwhirl.c", 0x181);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_1B_ANIM_BSWHIRL_JUMP);
|
||||
anctrl_setDuration(aCtrl, 0.8f);
|
||||
anctrl_setTransitionDuration(aCtrl, 0.134f);
|
||||
anctrl_setStart(aCtrl, 0.14f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.4495f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsbwhirl.c", 0x181);
|
||||
func_8029C7F4(1,1,3,BA_PHYSICS_AIRBORN);
|
||||
if(func_8029B2E8() != 0.0f)
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -207,9 +207,9 @@ void bsbwhirl_jump_update(void){
|
||||
switch(D_8037D3B4){
|
||||
case 0://L802AAB48
|
||||
if(func_8028B254(0x82)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 0.8f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 0.8f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D3B4 = 1;
|
||||
}
|
||||
break;
|
||||
@@ -223,7 +223,7 @@ void bsbwhirl_jump_update(void){
|
||||
}
|
||||
break;
|
||||
case 2://L802AABC8
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp2C = BS_1B_WONDERWING_IDLE;
|
||||
sp2C = func_802AA510(sp2C);
|
||||
break;
|
||||
@@ -243,13 +243,13 @@ void bsbwhirl_jump_end(void){
|
||||
void bsbwhirl_exit_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setDirection(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_22_ANIM_BSWHIRL_EXIT);
|
||||
animctrl_setDuration(aCtrl, 0.5f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsbwhirl.c", 0x201);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setDirection(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_22_ANIM_BSWHIRL_EXIT);
|
||||
anctrl_setDuration(aCtrl, 0.5f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsbwhirl.c", 0x201);
|
||||
baanim_setUpdateType(BAANIM_UPDATE_1_NORMAL);
|
||||
func_8029957C(2);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
@@ -259,7 +259,7 @@ void bsbwhirl_exit_init(void){
|
||||
void bsbwhirl_exit_update(void){
|
||||
enum bs_e sp1C = 0;
|
||||
|
||||
if(animctrl_isStopped(baanim_getAnimCtrlPtr()))
|
||||
if(anctrl_isStopped(baanim_getAnimCtrlPtr()))
|
||||
sp1C = BS_1_IDLE;
|
||||
|
||||
bs_setState(sp1C);
|
||||
|
@@ -57,13 +57,13 @@ void bsbbuster_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
f32 sp20[3];
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_1D_ANIM_BSBBUSTER);
|
||||
animctrl_setDuration(aCtrl, 1.02f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.35f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsbbuster.c", 0x81);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_1D_ANIM_BSBBUSTER);
|
||||
anctrl_setDuration(aCtrl, 1.02f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.35f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsbbuster.c", 0x81);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
baphysics_set_gravity(0.0f);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
@@ -90,13 +90,13 @@ void bsbbuster_update(void){
|
||||
f32 player_position[3];
|
||||
|
||||
D_8037D2B8 = 0;
|
||||
if(animctrl_isAt(aCtrl, 0.24f))
|
||||
if(anctrl_isAt(aCtrl, 0.24f))
|
||||
func_80299BD4();
|
||||
|
||||
switch(D_8037D2BA){
|
||||
case 0://8029FDF0
|
||||
if(animctrl_isStopped(baanim_getAnimCtrlPtr())){
|
||||
animctrl_setDuration(aCtrl, 0.4f);
|
||||
if(anctrl_isStopped(baanim_getAnimCtrlPtr())){
|
||||
anctrl_setDuration(aCtrl, 0.4f);
|
||||
D_8037D2BA = 1;
|
||||
}
|
||||
break;
|
||||
@@ -121,7 +121,7 @@ void bsbbuster_update(void){
|
||||
D_8037D2B4++;
|
||||
}
|
||||
if(D_8037D2B6 == 0 && func_8028B254(0x4b)){
|
||||
rumbleManager_80250D94(1.0f, 0.3f, 0.4f);
|
||||
baMotor_80250D94(1.0f, 0.3f, 0.4f);
|
||||
D_8037D2B6++;
|
||||
}
|
||||
D_8037D2B9 = miscFlag_isTrue(MISC_FLAG_8);
|
||||
@@ -169,24 +169,24 @@ void bsbbuster_update(void){
|
||||
baphysics_set_gravity(D_8036499C);
|
||||
}
|
||||
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.7299f);
|
||||
animctrl_setDuration(aCtrl, 1.9f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.7299f);
|
||||
anctrl_setDuration(aCtrl, 1.9f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D2BA = 4;
|
||||
}
|
||||
break;
|
||||
|
||||
case 4://802A01CC
|
||||
func_802B6FA8();
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.74f);
|
||||
animctrl_setDuration(aCtrl, 15.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.74f);
|
||||
anctrl_setDuration(aCtrl, 15.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
}
|
||||
if(player_isStable()){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 1.9f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 1.9f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
sp44 = BS_20_LANDING;
|
||||
}
|
||||
break;
|
||||
|
@@ -60,7 +60,7 @@ void func_802A0630(void){
|
||||
mvmnt = baanim_getAnimCtrlPtr();
|
||||
switch(D_8037D2C0){
|
||||
case 0:
|
||||
if(!animctrl_isAt(mvmnt, 0.266f))
|
||||
if(!anctrl_isAt(mvmnt, 0.266f))
|
||||
break;
|
||||
baphysics_set_vertical_velocity(1600.0f);
|
||||
func_8030E58C(SFX_C_TAKING_FLIGHT_LIFTOFF, 0.7f);
|
||||
@@ -68,7 +68,7 @@ void func_802A0630(void){
|
||||
break;
|
||||
case 1:
|
||||
func_802A04F0();
|
||||
if(animctrl_isStopped(mvmnt))
|
||||
if(anctrl_isStopped(mvmnt))
|
||||
baanim_playForDuration_loopSmooth(ASSET_1DC_ANIM_BEE_FLY, 0.38f);
|
||||
if(baphysics_get_vertical_velocity() < 0.0f)
|
||||
next_state = BS_BEE_FLY;
|
||||
@@ -192,7 +192,7 @@ void bsbeefly_update(void){
|
||||
baflap_add(1.0f);
|
||||
}
|
||||
sp44 = baflap_getCount();
|
||||
animctrl_setDuration(sp48, D_803649B0[sp44]);
|
||||
anctrl_setDuration(sp48, D_803649B0[sp44]);
|
||||
sp24 = &D_803649C4[sp44];
|
||||
sp40 = 0.9f;
|
||||
sp40 += *sp24;
|
||||
|
@@ -133,14 +133,14 @@ void func_802A12FC(void){
|
||||
|
||||
s0 = baanim_getAnimCtrlPtr();
|
||||
func_802A0340();
|
||||
animctrl_reset(s0);
|
||||
animctrl_setSmoothTransition(s0, 0);
|
||||
animctrl_setIndex(s0, ASSET_1E2_ANIM_BEE_JUMP);
|
||||
animctrl_setSubRange(s0, 0, 0.34f);
|
||||
animctrl_setStart(s0, 0.1f);
|
||||
animctrl_setDuration(s0, 1.2f);
|
||||
animctrl_setPlaybackType(s0, ANIMCTRL_ONCE);
|
||||
animctrl_start(s0, "bsbeemain.c", 0x15b);
|
||||
anctrl_reset(s0);
|
||||
anctrl_setSmoothTransition(s0, 0);
|
||||
anctrl_setIndex(s0, ASSET_1E2_ANIM_BEE_JUMP);
|
||||
anctrl_setSubRange(s0, 0, 0.34f);
|
||||
anctrl_setStart(s0, 0.1f);
|
||||
anctrl_setDuration(s0, 1.2f);
|
||||
anctrl_setPlaybackType(s0, ANIMCTRL_ONCE);
|
||||
anctrl_start(s0, "bsbeemain.c", 0x15b);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
if(func_8029B2E8() != 0.0f){
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -173,7 +173,7 @@ void func_802A1438(void){
|
||||
baanim_setEndAndDuration(0.715f, 0.7f);
|
||||
D_8037D2D4 = 2;
|
||||
}else{
|
||||
if(animctrl_isStopped(sp28)){
|
||||
if(anctrl_isStopped(sp28)){
|
||||
baanim_setEndAndDuration(0.51f, 4.0f);
|
||||
D_8037D2D4 = 1;
|
||||
}
|
||||
@@ -195,7 +195,7 @@ void func_802A1438(void){
|
||||
break;
|
||||
case 3:
|
||||
func_80299628(0);
|
||||
if(animctrl_isStopped(sp28)){
|
||||
if(anctrl_isStopped(sp28)){
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
sp2c = BS_85_BEE_IDLE;
|
||||
}
|
||||
@@ -228,13 +228,13 @@ void func_802A1664(void){
|
||||
|
||||
s0 = baanim_getAnimCtrlPtr();
|
||||
func_802A0340();
|
||||
animctrl_reset(s0);
|
||||
animctrl_setIndex(s0, ASSET_1E2_ANIM_BEE_JUMP);
|
||||
animctrl_setStart(s0, 0.34f);
|
||||
animctrl_setDuration(s0, 8.0f);
|
||||
animctrl_setSubRange(s0, 0, 0.51f);
|
||||
animctrl_setPlaybackType(s0, ANIMCTRL_ONCE);
|
||||
animctrl_start(s0, "bsbeemain.c", 0x1e2);
|
||||
anctrl_reset(s0);
|
||||
anctrl_setIndex(s0, ASSET_1E2_ANIM_BEE_JUMP);
|
||||
anctrl_setStart(s0, 0.34f);
|
||||
anctrl_setDuration(s0, 8.0f);
|
||||
anctrl_setSubRange(s0, 0, 0.51f);
|
||||
anctrl_setPlaybackType(s0, ANIMCTRL_ONCE);
|
||||
anctrl_start(s0, "bsbeemain.c", 0x1e2);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
D_8037D2D4 = 0;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ void func_802A170C(void){
|
||||
break;
|
||||
case 2:
|
||||
func_80299628(0);
|
||||
if(animctrl_isStopped(sp28)){
|
||||
if(anctrl_isStopped(sp28)){
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
sp2c = BS_85_BEE_IDLE;
|
||||
}
|
||||
@@ -307,12 +307,12 @@ void func_802A18E8(s32 arg0){
|
||||
//sp40 = arg0;
|
||||
sp3C = baanim_getAnimCtrlPtr();
|
||||
func_802A0340();
|
||||
animctrl_reset(sp3C);
|
||||
animctrl_setIndex(sp3C, ASSET_1E0_ANIM_BEE_OW);
|
||||
animctrl_setDuration(sp3C, 1.0f);
|
||||
animctrl_setSubRange(sp3C, 0, 0.7518f);
|
||||
animctrl_setPlaybackType(sp3C, ANIMCTRL_ONCE);
|
||||
animctrl_start(sp3C, "bsbeemain.c", 0x269);
|
||||
anctrl_reset(sp3C);
|
||||
anctrl_setIndex(sp3C, ASSET_1E0_ANIM_BEE_OW);
|
||||
anctrl_setDuration(sp3C, 1.0f);
|
||||
anctrl_setSubRange(sp3C, 0, 0.7518f);
|
||||
anctrl_setPlaybackType(sp3C, ANIMCTRL_ONCE);
|
||||
anctrl_start(sp3C, "bsbeemain.c", 0x269);
|
||||
if(arg0 == 1){
|
||||
func_8030E58C(SFX_38_BANJO_AYE_1, 1.8f);
|
||||
}else{
|
||||
@@ -400,13 +400,13 @@ void bsbeemain_die_init(void){
|
||||
sp3C = baanim_getAnimCtrlPtr();
|
||||
func_8029B930();
|
||||
func_802A0340();
|
||||
animctrl_reset(sp3C);
|
||||
animctrl_setSmoothTransition(sp3C, 0);
|
||||
animctrl_setIndex(sp3C, ASSET_1E1_ANIM_BEE_DIE);
|
||||
animctrl_setSubRange(sp3C, 0, 0.3966f);
|
||||
animctrl_setDuration(sp3C, 1.7f);
|
||||
animctrl_setPlaybackType(sp3C, ANIMCTRL_ONCE);
|
||||
animctrl_start(sp3C, "bsbeemain.c", 0x2ef);
|
||||
anctrl_reset(sp3C);
|
||||
anctrl_setSmoothTransition(sp3C, 0);
|
||||
anctrl_setIndex(sp3C, ASSET_1E1_ANIM_BEE_DIE);
|
||||
anctrl_setSubRange(sp3C, 0, 0.3966f);
|
||||
anctrl_setDuration(sp3C, 1.7f);
|
||||
anctrl_setPlaybackType(sp3C, ANIMCTRL_ONCE);
|
||||
anctrl_start(sp3C, "bsbeemain.c", 0x2ef);
|
||||
func_8029C7F4(1,1,2, BA_PHYSICS_LOCKED_ROTATION);
|
||||
_player_getPosition(sp2C);
|
||||
func_80294980(sp20);
|
||||
|
@@ -31,10 +31,10 @@ void func_802AAEE0(void){
|
||||
|
||||
void bscarry_idle_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_72_ANIM_BSCARRY_IDLE);
|
||||
animctrl_setDuration(aCtrl, 1.2f);
|
||||
animctrl_start(aCtrl, "bscarry.c", 0x6f);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_72_ANIM_BSCARRY_IDLE);
|
||||
anctrl_setDuration(aCtrl, 1.2f);
|
||||
anctrl_start(aCtrl, "bscarry.c", 0x6f);
|
||||
func_8029C7F4(1,1,1, BA_PHYSICS_NORMAL);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
pitch_setAngVel(1000.0f, 12.0f);
|
||||
@@ -59,11 +59,11 @@ void bscarry_idle_end(void){
|
||||
|
||||
void bscarry_walk_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_73_ANIM_BSCARRY_WALK);
|
||||
animctrl_setDuration(aCtrl, 0.8f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(aCtrl, "bscarry.c", 0xac);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_73_ANIM_BSCARRY_WALK);
|
||||
anctrl_setDuration(aCtrl, 0.8f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(aCtrl, "bscarry.c", 0xac);
|
||||
func_8029C7F4(2,1,1, BA_PHYSICS_NORMAL);
|
||||
baanim_setVelocityMapRanges(D_80364AF0, D_80364AF4, D_80364AF8, D_80364AFC);
|
||||
}
|
||||
|
@@ -29,29 +29,29 @@ void bsclaw_update(void){
|
||||
AnimCtrl * aCtrl = baanim_getAnimCtrlPtr();
|
||||
f32 sp24;
|
||||
|
||||
sp24 = animctrl_getAnimTimer(aCtrl);
|
||||
_bsclawHitboxActive = animctrl_isAt(aCtrl, 0.1488f)
|
||||
sp24 = anctrl_getAnimTimer(aCtrl);
|
||||
_bsclawHitboxActive = anctrl_isAt(aCtrl, 0.1488f)
|
||||
|| (0.04879999999999998 < sp24 && sp24 < 0.2488)
|
||||
|| animctrl_isAt(aCtrl, 0.3288f)
|
||||
|| anctrl_isAt(aCtrl, 0.3288f)
|
||||
|| (0.22879999999999998 < sp24 && sp24 < 0.42879999999999998)
|
||||
|| animctrl_isAt(aCtrl, 0.5788f)
|
||||
|| anctrl_isAt(aCtrl, 0.5788f)
|
||||
|| (0.4788 < sp24 && sp24 < 0.6788);
|
||||
if(animctrl_isAt(aCtrl, 0.5788f))
|
||||
if(anctrl_isAt(aCtrl, 0.5788f))
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
|
||||
func_8029AD28(0.08f, 3);
|
||||
func_8029AD28(0.34f, 4);
|
||||
func_8029AD28(0.53f, 3);
|
||||
if(animctrl_isAt(aCtrl, 0.1188f))
|
||||
if(anctrl_isAt(aCtrl, 0.1188f))
|
||||
func_8030EB00(SFX_2_CLAW_SWIPE, 0.98f, 1.0f);
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.2888f))
|
||||
if(anctrl_isAt(aCtrl, 0.2888f))
|
||||
func_8030EB00(SFX_2_CLAW_SWIPE, 1.04f, 1.06f);
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.4888f))
|
||||
if(anctrl_isAt(aCtrl, 0.4888f))
|
||||
func_8030EB00(SFX_2_CLAW_SWIPE, 1.1f, 1.12f);
|
||||
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp2C = BS_1_IDLE;
|
||||
|
||||
if(!player_isStable())
|
||||
|
@@ -101,7 +101,7 @@ void bsclimb_idle_update(void){
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if(animctrl_isStopped(anim_ctrl)){
|
||||
if(anctrl_isStopped(anim_ctrl)){
|
||||
baanim_playForDuration_loopSmooth(ASSET_B2_ANIM_BSCLIMB_IDLE_2, 2.64f);
|
||||
func_802AB750(3.0f, 4.0f);
|
||||
D_8037D3D0 = 0;
|
||||
|
@@ -183,14 +183,14 @@ void bscroc_walk_end(void){
|
||||
void bscroc_jump_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
animctrl_setIndex(aCtrl, ASSET_11C_ANIM_BSCROC_JUMP);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.35f);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setStart(aCtrl, 0.1f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bscroc.c", 0x1ac);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
anctrl_setIndex(aCtrl, ASSET_11C_ANIM_BSCROC_JUMP);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.35f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setStart(aCtrl, 0.1f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bscroc.c", 0x1ac);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
if(func_8029B2E8() != 0.0f){
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -222,7 +222,7 @@ void bscroc_jump_update(void){
|
||||
baanim_setEndAndDuration(0.6538f, 0.7f);
|
||||
D_8037D3EC = 2;
|
||||
}
|
||||
else if(animctrl_isStopped(aCtrl))
|
||||
else if(anctrl_isStopped(aCtrl))
|
||||
{
|
||||
baanim_setEndAndDuration(0.5036f, 3.0f);
|
||||
D_8037D3EC = 1;
|
||||
@@ -244,7 +244,7 @@ void bscroc_jump_update(void){
|
||||
break;
|
||||
case 3:
|
||||
func_80299628(0);
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
sp2C = BS_5E_CROC_IDLE;
|
||||
}
|
||||
@@ -273,12 +273,12 @@ void bscroc_jump_end(void){
|
||||
void bscroc_fall_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_11C_ANIM_BSCROC_JUMP);
|
||||
animctrl_setStart(aCtrl, 0.5036f);
|
||||
animctrl_setDuration(aCtrl, 0.7f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
animctrl_start(aCtrl, "bscroc.c", 0x235);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_11C_ANIM_BSCROC_JUMP);
|
||||
anctrl_setStart(aCtrl, 0.5036f);
|
||||
anctrl_setDuration(aCtrl, 0.7f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_start(aCtrl, "bscroc.c", 0x235);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
D_8037D3EC = 0;
|
||||
}
|
||||
@@ -312,7 +312,7 @@ void bscroc_fall_update(void){
|
||||
}//L802AC850
|
||||
|
||||
if(player_isStable()){
|
||||
if(func_8029B300() > 0 || (D_8037D3EC == 2 && animctrl_isStopped(aCtrl))){
|
||||
if(func_8029B300() > 0 || (D_8037D3EC == 2 && anctrl_isStopped(aCtrl))){
|
||||
if(miscFlag_isTrue(MISC_FLAG_19)){
|
||||
next_state = badrone_transform();
|
||||
}else{
|
||||
@@ -334,12 +334,12 @@ static void __bscroc_recoil_init(s32 damage){
|
||||
f32 player_position[3];
|
||||
f32 sp20[3];
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_11D_ANIM_BSCROC_BOUNCE);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.7518f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bscroc.c", 0x2a5);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_11D_ANIM_BSCROC_BOUNCE);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.7518f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bscroc.c", 0x2a5);
|
||||
if(damage == 1)
|
||||
func_8030E58C(SFX_38_BANJO_AYE_1, 1.8f);
|
||||
else
|
||||
@@ -422,13 +422,13 @@ void bscroc_die_init(void){
|
||||
f32 sp20[3];
|
||||
|
||||
func_8029B930();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
animctrl_setIndex(aCtrl, ASSET_11E_ANIM_BSCROC_DIE);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.3966f);
|
||||
animctrl_setDuration(aCtrl, 1.7f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bscroc.c", 0x32b);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
anctrl_setIndex(aCtrl, ASSET_11E_ANIM_BSCROC_DIE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.3966f);
|
||||
anctrl_setDuration(aCtrl, 1.7f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bscroc.c", 0x32b);
|
||||
func_8029C7F4(1,1,2, BA_PHYSICS_LOCKED_ROTATION);
|
||||
_player_getPosition(player_position);
|
||||
func_80294980(sp20);
|
||||
@@ -526,20 +526,20 @@ void bscroc_bite_update(void){
|
||||
|
||||
func_802ABE70();
|
||||
func_80299628(0);
|
||||
if(animctrl_isAt(aCtrl, 0.99f)){
|
||||
if(anctrl_isAt(aCtrl, 0.99f)){
|
||||
switch(++D_8037D3F4){
|
||||
case 1:
|
||||
func_802ACF58();
|
||||
animctrl_setDuration(aCtrl, 0.28f);
|
||||
anctrl_setDuration(aCtrl, 0.28f);
|
||||
break;
|
||||
case 2:
|
||||
func_802ACF58();
|
||||
animctrl_setDuration(aCtrl, 0.32f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setDuration(aCtrl, 0.32f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(animctrl_isAt(aCtrl, 0.6f)){
|
||||
if(anctrl_isAt(aCtrl, 0.6f)){
|
||||
func_8030EB00(SFX_6D_CROC_BITE, 1.0f, 1.1f);
|
||||
}
|
||||
|
||||
@@ -573,19 +573,19 @@ void bscroc_eat_bad_update(void){
|
||||
|
||||
func_802ABE70();
|
||||
func_80299628(0);
|
||||
if(animctrl_isAt(aCtrl, 0.3518f)){
|
||||
if(anctrl_isAt(aCtrl, 0.3518f)){
|
||||
func_8030E58C(SFX_A0_COUGHING, 0.9f);
|
||||
}
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.5282f)){
|
||||
if(anctrl_isAt(aCtrl, 0.5282f)){
|
||||
func_8030E58C(SFX_A0_COUGHING, 0.85f);
|
||||
}
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.6671f)){
|
||||
if(anctrl_isAt(aCtrl, 0.6671f)){
|
||||
sfxsource_playHighPriority(SFX_C6_SHAKING_MOUTH);
|
||||
}
|
||||
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
next_state = BS_5E_CROC_IDLE;
|
||||
}
|
||||
|
||||
@@ -634,14 +634,14 @@ void bscroc_eat_good_update(void){
|
||||
D_8037D3F0 = ml_max_f(0.1f, D_8037D3F0 - 0.05);
|
||||
func_80299628(0);
|
||||
func_802ABF54();
|
||||
if(animctrl_isAt(aCtrl, 0.99f)){
|
||||
if(anctrl_isAt(aCtrl, 0.99f)){
|
||||
switch(++D_8037D3F4){
|
||||
case 1:
|
||||
animctrl_setDuration(aCtrl, 0.28f);
|
||||
anctrl_setDuration(aCtrl, 0.28f);
|
||||
break;
|
||||
case 2:
|
||||
animctrl_setDuration(aCtrl, 0.32f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setDuration(aCtrl, 0.32f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
break;
|
||||
case 3:
|
||||
if(D_8037D3F5)
|
||||
@@ -652,10 +652,10 @@ void bscroc_eat_good_update(void){
|
||||
}
|
||||
}//L802AD4B0
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.62f))
|
||||
if(anctrl_isAt(aCtrl, 0.62f))
|
||||
func_8030EB00(SFX_4C_LIP_SMACK, 1.2f, 1.3f);
|
||||
|
||||
if(D_8037D3F4 == 2 && animctrl_isAt(aCtrl, 0.9))
|
||||
if(D_8037D3F4 == 2 && anctrl_isAt(aCtrl, 0.9))
|
||||
func_8030EB00(SFX_AE_YUMYUM_TALKING, 1.45f, 1.55f);
|
||||
|
||||
bs_setState(next_state);
|
||||
|
@@ -29,7 +29,7 @@ void func_802AD728(void){
|
||||
}
|
||||
|
||||
void func_802AD768(AnimCtrl *aCtrl, f32 arg1){
|
||||
animctrl_setDuration(aCtrl, ml_map_f(arg1, 0.0f, 180.0f, 0.5, 0.2f));
|
||||
anctrl_setDuration(aCtrl, ml_map_f(arg1, 0.0f, 180.0f, 0.5, 0.2f));
|
||||
}
|
||||
|
||||
void func_802AD7B0(AnimCtrl *aCtrl){
|
||||
@@ -53,12 +53,12 @@ void bscrouch_init(void){
|
||||
sp24 = 0.0f;
|
||||
break;
|
||||
}
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_1_ANIM_BSCROUCH_ENTER);
|
||||
animctrl_setDuration(aCtrl, 0.5f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_setStart(aCtrl, sp24);
|
||||
animctrl_start(aCtrl, "bscrouch.c", 0xa0);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_1_ANIM_BSCROUCH_ENTER);
|
||||
anctrl_setDuration(aCtrl, 0.5f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setStart(aCtrl, sp24);
|
||||
anctrl_start(aCtrl, "bscrouch.c", 0xa0);
|
||||
baanim_setUpdateType(BAANIM_UPDATE_1_NORMAL);
|
||||
yaw_setUpdateState(3);
|
||||
yaw_setVelocityBounded(350.0f, 14.0f);
|
||||
@@ -121,7 +121,7 @@ void bscrouch_update(void){
|
||||
if(temp_f2 != 0.0f){
|
||||
func_802AD6D0();
|
||||
}else{
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
func_802AD728();
|
||||
}
|
||||
break;
|
||||
@@ -133,12 +133,12 @@ void bscrouch_update(void){
|
||||
if(temp_f2 != 0.0f)
|
||||
break;
|
||||
|
||||
if((f64)animctrl_getAnimTimer(aCtrl) <= 0.5){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.5f);
|
||||
if((f64)anctrl_getAnimTimer(aCtrl) <= 0.5){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.5f);
|
||||
}else{
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
}
|
||||
animctrl_setPlaybackType(aCtrl,1);
|
||||
anctrl_setPlaybackType(aCtrl,1);
|
||||
D_8037D404 = 3;
|
||||
break;
|
||||
|
||||
@@ -146,11 +146,11 @@ void bscrouch_update(void){
|
||||
func_802AD768(aCtrl, temp_f2);
|
||||
func_802AD7B0(aCtrl);
|
||||
if(temp_f2 != 0.0f){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
D_8037D404 = 4;
|
||||
}else{
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
yaw_setIdeal(yaw_get());
|
||||
func_802AD728();
|
||||
}
|
||||
|
@@ -28,13 +28,13 @@ void bsdie_init(void){
|
||||
f32 sp2C[3];
|
||||
f32 sp20[3];
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_9_ANIM_BSDIE);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.3356f);
|
||||
animctrl_setDuration(aCtrl, 2.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsdie.c", 0x7e);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_9_ANIM_BSDIE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.3356f);
|
||||
anctrl_setDuration(aCtrl, 2.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsdie.c", 0x7e);
|
||||
func_8029B930();
|
||||
func_8030E58C(SFX_36_BANJO_DOH, 1.0f);
|
||||
_player_getPosition(sp2C);
|
||||
@@ -71,12 +71,12 @@ void bsdie_update(void){
|
||||
switch(D_8037D414){
|
||||
case 0://L802AE0B8
|
||||
if(_bsdie_802ADE00()){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
baphysics_set_vertical_velocity(400.0f);
|
||||
func_80299DB8();
|
||||
FUNC_8030E624(SFX_39_BANJO_AYE_2, 1.0f, 18000);
|
||||
rumbleManager_80250D94(1.0f, 1.0f, 0.4f);
|
||||
baMotor_80250D94(1.0f, 1.0f, 0.4f);
|
||||
_bsdie_802ADE20();
|
||||
D_8037D414 = 1;
|
||||
}
|
||||
@@ -85,7 +85,7 @@ void bsdie_update(void){
|
||||
if(_bsdie_802ADE00()){
|
||||
func_80299E00();
|
||||
FUNC_8030E624(SFX_38_BANJO_AYE_1, 1.0f, 18000);
|
||||
rumbleManager_80250D94(1.0f, 0.5f, 0.4f);
|
||||
baMotor_80250D94(1.0f, 0.5f, 0.4f);
|
||||
D_8037D414 = 2;
|
||||
}
|
||||
break;
|
||||
@@ -94,10 +94,10 @@ void bsdie_update(void){
|
||||
if(140.0f < D_8037D410)
|
||||
func_802929F8();
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.6538f))
|
||||
animctrl_setDuration(aCtrl, 4.0f);
|
||||
if(anctrl_isAt(aCtrl, 0.6538f))
|
||||
anctrl_setDuration(aCtrl, 4.0f);
|
||||
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
D_8037D410 = 0.0f;
|
||||
D_8037D414 = 3;
|
||||
}
|
||||
@@ -111,7 +111,7 @@ void bsdie_update(void){
|
||||
if( batimer_get(0) != 0.0f
|
||||
&& func_80294574()
|
||||
&& ( D_8037D414
|
||||
|| ( animctrl_isStopped(aCtrl)
|
||||
|| ( anctrl_isStopped(aCtrl)
|
||||
&& ( player_getYPosition() < (func_80294500() - 150.0f))
|
||||
)
|
||||
)
|
||||
|
@@ -71,11 +71,11 @@ void func_802AECE4(void){
|
||||
}
|
||||
|
||||
if( 250.0f <= gu_sqrtf(sp20[0]*sp20[0] + sp20[2]*sp20[2])
|
||||
&& animctrl_getIndex(aCtrl) == ASSET_3_ANIM_BSWALK
|
||||
&& anctrl_getIndex(aCtrl) == ASSET_3_ANIM_BSWALK
|
||||
){
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_C_ANIM_BSWALK_RUN);
|
||||
animctrl_start(aCtrl, "bsdronegoto.c", 0x9d);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_C_ANIM_BSWALK_RUN);
|
||||
anctrl_start(aCtrl, "bsdronegoto.c", 0x9d);
|
||||
}
|
||||
|
||||
if(baphysics_goto_done() && D_8037D441 == 0){
|
||||
|
@@ -23,12 +23,12 @@ void bsjig_jiggy_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
int tmp;
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
animctrl_setIndex(aCtrl, ASSET_2E_ANIM_BSJIG_JIGGY);
|
||||
animctrl_setDuration(aCtrl, 4.3f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsjig.c", 0x7f);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
anctrl_setIndex(aCtrl, ASSET_2E_ANIM_BSJIG_JIGGY);
|
||||
anctrl_setDuration(aCtrl, 4.3f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsjig.c", 0x7f);
|
||||
yaw_setIdeal(func_8029B41C()); //face camera
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_NORMAL);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
@@ -61,19 +61,19 @@ void bsjig_jiggy_update(void){
|
||||
|
||||
yaw_setIdeal(func_8029B41C());
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.6502f))
|
||||
if(anctrl_isAt(aCtrl, 0.6502f))
|
||||
func_80299BD4();
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.835f)){
|
||||
if(anctrl_isAt(aCtrl, 0.835f)){
|
||||
D_8037D4B0++;
|
||||
item_inc(ITEM_E_JIGGY);
|
||||
func_8030E58C(SFX_4B_GULPING, 1.3f);
|
||||
}
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.94f))
|
||||
if(anctrl_isAt(aCtrl, 0.94f))
|
||||
sfxsource_playHighPriority(0x3ea);
|
||||
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
if(D_8037D4B1)
|
||||
sp1C = BS_34_JIG_NOTEDOOR;
|
||||
else
|
||||
@@ -165,11 +165,11 @@ void bsjig_notedoor_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
D_8037D4B2 = (bs_getPrevState() == BS_44_JIG_JIGGY);
|
||||
miscFlag_clear(MISC_FLAG_1A);
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_282_ANIM_BSJIG_NOTEDOOR);
|
||||
animctrl_setDuration(aCtrl, 3.6f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsjig.c", 0x14d);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_282_ANIM_BSJIG_NOTEDOOR);
|
||||
anctrl_setDuration(aCtrl, 3.6f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsjig.c", 0x14d);
|
||||
yaw_setIdeal(func_8029B41C());
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_NORMAL);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
|
@@ -43,22 +43,22 @@ void bsjump_init(void){
|
||||
}
|
||||
|
||||
if(sp30 == BS_11_BPECK){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.6667f);
|
||||
animctrl_setStart(aCtrl, 0.5042f);
|
||||
animctrl_setDuration(aCtrl, 8.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.6667f);
|
||||
anctrl_setStart(aCtrl, 0.5042f);
|
||||
anctrl_setDuration(aCtrl, 8.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D4C0 = 1;
|
||||
}
|
||||
else {
|
||||
D_8037D4C1 = (sp30 == BS_2D_SWIM_IDLE) || (sp30 == BS_2E_SWIM);
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_8_ANIM_BSJUMP);
|
||||
animctrl_setDuration(aCtrl, 1.9f);
|
||||
animctrl_setTransitionDuration(aCtrl, 0.134f);
|
||||
animctrl_setStart(aCtrl, 0.3f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.5042f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsjump.c", 0x95);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_8_ANIM_BSJUMP);
|
||||
anctrl_setDuration(aCtrl, 1.9f);
|
||||
anctrl_setTransitionDuration(aCtrl, 0.134f);
|
||||
anctrl_setStart(aCtrl, 0.3f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.5042f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsjump.c", 0x95);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
if(func_8029B2E8() != 0.0f){
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -103,16 +103,16 @@ void bsjump_update(void){
|
||||
|
||||
switch(D_8037D4C0){
|
||||
case 0://L802B1428
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.6667);
|
||||
animctrl_setDuration(aCtrl, 4.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.6667);
|
||||
anctrl_setDuration(aCtrl, 4.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D4C0 = 1;
|
||||
}
|
||||
if(func_8028B254(0x82)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 1.4f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 1.4f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D4C0 = 2;
|
||||
}
|
||||
break;
|
||||
@@ -125,9 +125,9 @@ void bsjump_update(void){
|
||||
sp34 = BS_BSHOCK_CHARGE;
|
||||
}
|
||||
if(func_8028B254(0x5A)){
|
||||
animctrl_setSubRange(aCtrl, 0.0, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 2.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 2.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D4C0 = 2;
|
||||
}
|
||||
break;
|
||||
@@ -177,12 +177,12 @@ void bsjump_fall_init(void){
|
||||
baphysics_set_vertical_velocity(700.0f);
|
||||
|
||||
sp20 = (bs_getPrevState() == BS_12_BFLIP)? 0 : 1;
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, sp20);
|
||||
animctrl_setIndex(aCtrl, ASSET_B0_ANIM_BSJUMP_FALL);
|
||||
animctrl_setTransitionDuration(aCtrl, 0.3f);
|
||||
animctrl_setDuration(aCtrl, 0.38f);
|
||||
animctrl_start(aCtrl, "bsjump.c", 0x188);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, sp20);
|
||||
anctrl_setIndex(aCtrl, ASSET_B0_ANIM_BSJUMP_FALL);
|
||||
anctrl_setTransitionDuration(aCtrl, 0.3f);
|
||||
anctrl_setDuration(aCtrl, 0.38f);
|
||||
anctrl_start(aCtrl, "bsjump.c", 0x188);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
D_8037D4C0 = 0;
|
||||
}
|
||||
@@ -202,12 +202,12 @@ void bsjump_fall_update(void){
|
||||
switch(D_8037D4C0){
|
||||
case 0://L802B17B8
|
||||
if(func_8028B254(0x5a)){
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_8_ANIM_BSJUMP);
|
||||
animctrl_setStart(aCtrl, 0.6667f);
|
||||
animctrl_setDuration(aCtrl, 2.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsjump.c", 0x1b5);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_8_ANIM_BSJUMP);
|
||||
anctrl_setStart(aCtrl, 0.6667f);
|
||||
anctrl_setDuration(aCtrl, 2.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsjump.c", 0x1b5);
|
||||
D_8037D4C0 = 1;
|
||||
}
|
||||
break;
|
||||
@@ -253,14 +253,14 @@ void func_802B1928(void) {
|
||||
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
climbRelease();
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_8_ANIM_BSJUMP);
|
||||
animctrl_setDuration(anim_ctrl, 1.9f);
|
||||
animctrl_setTransitionDuration(anim_ctrl, 0.134f);
|
||||
animctrl_setStart(anim_ctrl, 0.3f);
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.5042f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(anim_ctrl, "bsjump.c", 0x201);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_8_ANIM_BSJUMP);
|
||||
anctrl_setDuration(anim_ctrl, 1.9f);
|
||||
anctrl_setTransitionDuration(anim_ctrl, 0.134f);
|
||||
anctrl_setStart(anim_ctrl, 0.3f);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.5042f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(anim_ctrl, "bsjump.c", 0x201);
|
||||
baanim_setUpdateType(BAANIM_UPDATE_1_NORMAL);
|
||||
yaw_setUpdateState(1);
|
||||
func_8029957C(3);
|
||||
@@ -288,24 +288,24 @@ void func_802B1A54(void) {
|
||||
}
|
||||
switch (D_8037D4C0) {
|
||||
case 0:
|
||||
if (animctrl_isStopped(anim_ctrl)) {
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.6667f);
|
||||
animctrl_setDuration(anim_ctrl, 4.0f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
if (anctrl_isStopped(anim_ctrl)) {
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.6667f);
|
||||
anctrl_setDuration(anim_ctrl, 4.0f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4C0 = 1;
|
||||
}
|
||||
if (func_8028B254(130)) {
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(anim_ctrl, 1.4f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(anim_ctrl, 1.4f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4C0 = 2;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (func_8028B254(90)) {
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(anim_ctrl, 2.0f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(anim_ctrl, 2.0f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4C0 = 2;
|
||||
}
|
||||
break;
|
||||
@@ -333,14 +333,14 @@ void func_802B1BF4(void) {
|
||||
if(bs_getPrevState() == BS_12_BFLIP){
|
||||
smooth_transition = FALSE;
|
||||
}
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setSmoothTransition(anim_ctrl, smooth_transition);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_8_ANIM_BSJUMP);
|
||||
animctrl_setTransitionDuration(anim_ctrl, 0.3f);
|
||||
animctrl_setDuration(anim_ctrl, 1.9f);
|
||||
animctrl_setStart(anim_ctrl, 0.6667f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_STOPPED);
|
||||
animctrl_start(anim_ctrl, "bsjump.c", 0x298);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setSmoothTransition(anim_ctrl, smooth_transition);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_8_ANIM_BSJUMP);
|
||||
anctrl_setTransitionDuration(anim_ctrl, 0.3f);
|
||||
anctrl_setDuration(anim_ctrl, 1.9f);
|
||||
anctrl_setStart(anim_ctrl, 0.6667f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_STOPPED);
|
||||
anctrl_start(anim_ctrl, "bsjump.c", 0x298);
|
||||
yaw_setIdeal(func_8029B41C());
|
||||
baanim_setUpdateType(BAANIM_UPDATE_1_NORMAL);
|
||||
yaw_setUpdateState(1);
|
||||
@@ -363,9 +363,9 @@ void func_802B1CF8(void) {
|
||||
switch (D_8037D4C0) {
|
||||
case 0:
|
||||
if (func_8028B254(90)) {
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(anim_ctrl, 2.0f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(anim_ctrl, 2.0f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4C0 = 1;
|
||||
}
|
||||
break;
|
||||
|
@@ -15,13 +15,13 @@ void bsow_init(void){
|
||||
AnimCtrl *plyr_mvmnt;
|
||||
|
||||
plyr_mvmnt = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(plyr_mvmnt);
|
||||
animctrl_setSmoothTransition(plyr_mvmnt, 0);
|
||||
animctrl_setSubRange(plyr_mvmnt, 0.0f, 0.534399986267f);
|
||||
animctrl_setIndex(plyr_mvmnt, ASSET_4D_ANIM_BSOW);
|
||||
animctrl_setDuration(plyr_mvmnt, 1.70000004768f);
|
||||
animctrl_setPlaybackType(plyr_mvmnt, ANIMCTRL_ONCE);
|
||||
animctrl_start(plyr_mvmnt, "bsow.c", 0x50);
|
||||
anctrl_reset(plyr_mvmnt);
|
||||
anctrl_setSmoothTransition(plyr_mvmnt, 0);
|
||||
anctrl_setSubRange(plyr_mvmnt, 0.0f, 0.534399986267f);
|
||||
anctrl_setIndex(plyr_mvmnt, ASSET_4D_ANIM_BSOW);
|
||||
anctrl_setDuration(plyr_mvmnt, 1.70000004768f);
|
||||
anctrl_setPlaybackType(plyr_mvmnt, ANIMCTRL_ONCE);
|
||||
anctrl_start(plyr_mvmnt, "bsow.c", 0x50);
|
||||
func_80299BFC(1.0f);
|
||||
func_802B360C();
|
||||
baMarker_collisionOff();
|
||||
|
@@ -114,11 +114,11 @@ void bspumpkin_walk_init(void) {
|
||||
AnimCtrl *anim_ctrl;
|
||||
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_A0_ANIM_BSPUMPKIN_WALK);
|
||||
animctrl_setDuration(anim_ctrl, 0.8f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(anim_ctrl, "bspumpkin.c", 0x11D);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_A0_ANIM_BSPUMPKIN_WALK);
|
||||
anctrl_setDuration(anim_ctrl, 0.8f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(anim_ctrl, "bspumpkin.c", 0x11D);
|
||||
func_8029C7F4(2, 1, 1, BA_PHYSICS_NORMAL);
|
||||
baanim_setVelocityMapRanges(D_80364CF0, D_80364CF4, D_80364CF8, D_80364CFC);
|
||||
func_802900B4();
|
||||
@@ -152,12 +152,12 @@ void bspumpkin_jump_init(void) {
|
||||
AnimCtrl *anim_ctrl;
|
||||
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_A1_ANIM_BSPUMPKIN_JUMP);
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.3941f);
|
||||
animctrl_setDuration(anim_ctrl, 1.2f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(anim_ctrl, "bspumpkin.c", 0x16C);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_A1_ANIM_BSPUMPKIN_JUMP);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.3941f);
|
||||
anctrl_setDuration(anim_ctrl, 1.2f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(anim_ctrl, "bspumpkin.c", 0x16C);
|
||||
func_8029C7F4(1, 1, 3, BA_PHYSICS_AIRBORN);
|
||||
if (func_8029B2E8() != 0.0f) {
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -188,13 +188,13 @@ void bspumpkin_jump_update(void) {
|
||||
if (baphysics_get_vertical_velocity() < 0.0f) {
|
||||
if (func_8028B254(130)) {
|
||||
func_80292E48();
|
||||
animctrl_setDuration(anim_ctrl, 0.7f);
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.8059f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setDuration(anim_ctrl, 0.7f);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.8059f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4E0 = 2;
|
||||
} else {
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.662f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.662f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4E0 = 1;
|
||||
}
|
||||
}
|
||||
@@ -202,22 +202,22 @@ void bspumpkin_jump_update(void) {
|
||||
case 1:
|
||||
if (func_8028B254(130)) {
|
||||
func_80292E48();
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.8059f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.8059f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4E0 = 2;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (player_isStable()) {
|
||||
func_8029AE48();
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(anim_ctrl, 1.2f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(anim_ctrl, 1.2f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4E0 = 3;
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (animctrl_isStopped(anim_ctrl)) {
|
||||
if (anctrl_isStopped(anim_ctrl)) {
|
||||
func_80292EA4();
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
next_state = BS_48_PUMPKIN_IDLE;
|
||||
@@ -246,12 +246,12 @@ void bspumpkin_fall_init(void) {
|
||||
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
D_8037D4E4 = 0;
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_A1_ANIM_BSPUMPKIN_JUMP);
|
||||
animctrl_setStart(anim_ctrl, 0.662f);
|
||||
animctrl_setDuration(anim_ctrl, 0.7f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_STOPPED);
|
||||
animctrl_start(anim_ctrl, "bspumpkin.c", 0x1F1);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_A1_ANIM_BSPUMPKIN_JUMP);
|
||||
anctrl_setStart(anim_ctrl, 0.662f);
|
||||
anctrl_setDuration(anim_ctrl, 0.7f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_STOPPED);
|
||||
anctrl_start(anim_ctrl, "bspumpkin.c", 0x1F1);
|
||||
func_8029C7F4(1, 1, 3, BA_PHYSICS_AIRBORN);
|
||||
D_8037D4E0 = 0;
|
||||
}
|
||||
@@ -271,8 +271,8 @@ void bspumpkin_fall_update(void) {
|
||||
switch (D_8037D4E0) {
|
||||
case 0:
|
||||
if (func_8028B254(130)) {
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.8059f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.8059f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4E0 = 1;
|
||||
}
|
||||
break;
|
||||
@@ -280,16 +280,16 @@ void bspumpkin_fall_update(void) {
|
||||
if (player_isStable()) {
|
||||
func_8029AE48();
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(anim_ctrl, 1.2f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(anim_ctrl, 1.2f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
D_8037D4E0 = 2;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
break;
|
||||
}
|
||||
if (player_isStable() && ((func_8029B300() > 0) || (D_8037D4E0 == 2 && animctrl_isStopped(anim_ctrl)))) {
|
||||
if (player_isStable() && ((func_8029B300() > 0) || (D_8037D4E0 == 2 && anctrl_isStopped(anim_ctrl)))) {
|
||||
if (miscFlag_isTrue(MISC_FLAG_19)) {
|
||||
next_state = badrone_transform();
|
||||
} else {
|
||||
@@ -342,12 +342,12 @@ void __bspumpkin_bounce_init(s32 arg0) {
|
||||
f32 sp20[3];
|
||||
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_236_ANIM_BSPUMPKIN_REBOUND);
|
||||
animctrl_setDuration(anim_ctrl, 1.3f);
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.45f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(anim_ctrl, "bspumpkin.c", 0x2AB);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_236_ANIM_BSPUMPKIN_REBOUND);
|
||||
anctrl_setDuration(anim_ctrl, 1.3f);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.45f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(anim_ctrl, "bspumpkin.c", 0x2AB);
|
||||
if (arg0 == 1) {
|
||||
func_8030E58C(SFX_38_BANJO_AYE_1, 1.8f);
|
||||
} else {
|
||||
@@ -433,13 +433,13 @@ void bspumpkin_die_init(void) {
|
||||
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
func_8029B930();
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setSmoothTransition(anim_ctrl, 0);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_188_ANIM_BSPUMPKIN_DIE);
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.1439f);
|
||||
animctrl_setDuration(anim_ctrl, 3.5f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(anim_ctrl, "bspumpkin.c", 0x32E);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setSmoothTransition(anim_ctrl, 0);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_188_ANIM_BSPUMPKIN_DIE);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.1439f);
|
||||
anctrl_setDuration(anim_ctrl, 3.5f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(anim_ctrl, "bspumpkin.c", 0x32E);
|
||||
func_8030E58C(SFX_36_BANJO_DOH, 1.8f);
|
||||
_player_getPosition(plyr_pos);
|
||||
func_80294980(sp20);
|
||||
|
@@ -96,13 +96,13 @@ void func_802B3868(void) {
|
||||
} else {
|
||||
sp20 = D_8037D504 + 0.5;
|
||||
}
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setSmoothTransition(anim_ctrl, 0);
|
||||
animctrl_setSubRange(anim_ctrl, 0.0f, 0.5823f);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_F_ANIM_BSREBOUND);
|
||||
animctrl_setDuration(anim_ctrl, sp20);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(anim_ctrl, "bsrebound.c", 0xC6);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setSmoothTransition(anim_ctrl, 0);
|
||||
anctrl_setSubRange(anim_ctrl, 0.0f, 0.5823f);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_F_ANIM_BSREBOUND);
|
||||
anctrl_setDuration(anim_ctrl, sp20);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(anim_ctrl, "bsrebound.c", 0xC6);
|
||||
func_8030E58C(SFX_56_BANJO_HUI, 1.0f);
|
||||
batimer_set(0, 1.5f);
|
||||
baMarker_collisionOff();
|
||||
@@ -125,7 +125,7 @@ void func_802B3954(void) {
|
||||
if (player_isFallTumbling() && D_8037D500 == 0) {
|
||||
next_state = BS_3D_FALL_TUMBLING;
|
||||
}
|
||||
if (animctrl_isStopped(anim_ctrl) && func_8028B094() && (D_8037D500 == 0)) {
|
||||
if (anctrl_isStopped(anim_ctrl) && func_8028B094() && (D_8037D500 == 0)) {
|
||||
next_state = BS_2F_FALL;
|
||||
}
|
||||
bs_setState(next_state);
|
||||
|
@@ -23,19 +23,19 @@ void func_802B3AAC(enum asset_e anim_id, f32 anim_duration) {
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
if (anim_id == ASSET_14A_ANIM_BSREST_LISTEN) {
|
||||
func_8029E070(1);
|
||||
switch (animctrl_getIndex(baanim_getAnimCtrlPtr())) {
|
||||
switch (anctrl_getIndex(baanim_getAnimCtrlPtr())) {
|
||||
case ASSET_14A_ANIM_BSREST_LISTEN:
|
||||
baanim_playForDuration_loopSmooth(anim_id, anim_duration);
|
||||
break;
|
||||
case ASSET_167_ANIM_BSREST_MOVE:
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_167_ANIM_BSREST_MOVE);
|
||||
animctrl_setDuration(anim_ctrl, 0.4f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_167_ANIM_BSREST_MOVE);
|
||||
anctrl_setDuration(anim_ctrl, 0.4f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
break;
|
||||
default:
|
||||
baanim_playForDuration_once(ASSET_167_ANIM_BSREST_MOVE, 0.5f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@@ -54,10 +54,10 @@ bool func_802B3BB0(void) {
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
func_802B3A50();
|
||||
sp20 = FALSE;
|
||||
switch(animctrl_getIndex(anim_ctrl)){
|
||||
switch(anctrl_getIndex(anim_ctrl)){
|
||||
case ASSET_167_ANIM_BSREST_MOVE:
|
||||
if (baanim_isStopped() != 0) {
|
||||
if (animctrl_isPlayedForwards(anim_ctrl) != 0) {
|
||||
if (anctrl_isPlayedForwards(anim_ctrl) != 0) {
|
||||
baanim_playForDuration_loopSmooth(ASSET_14A_ANIM_BSREST_LISTEN, 11.4f);
|
||||
} else if (func_80298850() == 0) {
|
||||
sp20 = TRUE;
|
||||
@@ -66,13 +66,13 @@ bool func_802B3BB0(void) {
|
||||
break;
|
||||
case ASSET_14A_ANIM_BSREST_LISTEN:
|
||||
if (func_80298850() == 0) {
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setDirection(anim_ctrl, 0);
|
||||
animctrl_setIndex(anim_ctrl, 0x167);
|
||||
animctrl_setStart(anim_ctrl, 1.0f);
|
||||
animctrl_setDuration(anim_ctrl, 0.5f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(anim_ctrl, "bsrest.c", 0xA3);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setDirection(anim_ctrl, 0);
|
||||
anctrl_setIndex(anim_ctrl, 0x167);
|
||||
anctrl_setStart(anim_ctrl, 1.0f);
|
||||
anctrl_setDuration(anim_ctrl, 0.5f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(anim_ctrl, "bsrest.c", 0xA3);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
@@ -63,11 +63,11 @@ void bsslide_init(void){
|
||||
}
|
||||
}
|
||||
}
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, D_8037D520);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_start(aCtrl, "bsslide.c", 0x7f);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, D_8037D520);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_start(aCtrl, "bsslide.c", 0x7f);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_LOCKED_ROTATION);
|
||||
baphysics_set_target_yaw(yaw_getIdeal());
|
||||
baphysics_set_horizontal_velocity(yaw_getIdeal() ,baphysics_get_target_horizontal_velocity());
|
||||
|
@@ -6,7 +6,7 @@
|
||||
#include "core2/ba/physics.h"
|
||||
|
||||
void func_80292900(f32, f32);
|
||||
void rumbleManager_80250D94(f32, f32, f32);
|
||||
void baMotor_80250D94(f32, f32, f32);
|
||||
|
||||
/* .bss */
|
||||
u8 D_8037D530;
|
||||
@@ -29,10 +29,10 @@ void bssplat_init(void){
|
||||
if(func_8029CEB0() == 4){
|
||||
FUNC_8030E624(SFX_116_DEAF_RUSTLING, 0.7f, 32000);
|
||||
FUNC_8030E624(SFX_116_DEAF_RUSTLING, 0.8f, 32000);
|
||||
rumbleManager_80250D94(0.75f, 0.25f, 0.3f);
|
||||
baMotor_80250D94(0.75f, 0.25f, 0.3f);
|
||||
}else{
|
||||
FUNC_8030E624(SFX_1F_HITTING_AN_ENEMY_3, 0.8f, 32750);
|
||||
rumbleManager_80250D94(1.0f, 0.5f, 0.4f);
|
||||
baMotor_80250D94(1.0f, 0.5f, 0.4f);
|
||||
}
|
||||
func_80299CF4(SFX_38_BANJO_AYE_1, 1.0f, 28000);
|
||||
func_802B4570();
|
||||
@@ -58,17 +58,17 @@ void bssplat_update(void){
|
||||
if(func_8028B094())
|
||||
sp1C = BS_2F_FALL;
|
||||
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
baanim_playForDuration_once(ASSET_D2_ANIM_BSSPLAT, 2.25f);
|
||||
D_8037D530 = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
case 1://L802B47C8
|
||||
if(animctrl_isAt(aCtrl, 0.63f))
|
||||
if(anctrl_isAt(aCtrl, 0.63f))
|
||||
sp1C = BS_20_LANDING;
|
||||
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp1C = BS_1_IDLE;
|
||||
|
||||
if(func_8028B094())
|
||||
|
@@ -8,10 +8,10 @@
|
||||
extern f32 func_8029B2E8(void);
|
||||
void yaw_setVelocityBounded(f32, f32);
|
||||
|
||||
void animctrl_start(AnimCtrl *, char*, s32);
|
||||
void anctrl_start(AnimCtrl *, char*, s32);
|
||||
|
||||
void func_802900B4(void);
|
||||
void rumbleManager_80250D94(f32, f32, f32);
|
||||
void baMotor_80250D94(f32, f32, f32);
|
||||
|
||||
/* .data */
|
||||
u8 D_80364D20[] = {
|
||||
@@ -100,84 +100,84 @@ void bsstand_init(void){
|
||||
}
|
||||
|
||||
void func_802B4A10(AnimCtrl *arg0){
|
||||
if(animctrl_isAt(arg0, 0.2057f)){ //(30/145)
|
||||
if(anctrl_isAt(arg0, 0.2057f)){ //(30/145)
|
||||
FUNC_8030E624(SFX_21_EGG_BOUNCE_1, 1.8f, 16000);
|
||||
rumbleManager_80250D94(0.5f, 0.25f, 0.4f);
|
||||
baMotor_80250D94(0.5f, 0.25f, 0.4f);
|
||||
}//L802B4A54
|
||||
|
||||
if(animctrl_isAt(arg0, 0.2057f)) //(30/145)
|
||||
if(anctrl_isAt(arg0, 0.2057f)) //(30/145)
|
||||
func_80292E48();
|
||||
//L802B4A78
|
||||
|
||||
if(animctrl_isAt(arg0, 0.2555f)){ //(37/145)
|
||||
if(anctrl_isAt(arg0, 0.2555f)){ //(37/145)
|
||||
FUNC_8030E624(SFX_21_EGG_BOUNCE_1, 1.8f, 16000);
|
||||
rumbleManager_80250D94(0.5f, 0.25f, 0.4f);
|
||||
baMotor_80250D94(0.5f, 0.25f, 0.4f);
|
||||
}//L802B4AB0
|
||||
|
||||
if(animctrl_isAt(arg0, 0.2896f)){ //(42/145)
|
||||
if(anctrl_isAt(arg0, 0.2896f)){ //(42/145)
|
||||
FUNC_8030E624(SFX_21_EGG_BOUNCE_1, 1.8f, 16000);
|
||||
rumbleManager_80250D94(0.5f, 0.25f, 0.4f);
|
||||
baMotor_80250D94(0.5f, 0.25f, 0.4f);
|
||||
}//L802B4AEC
|
||||
|
||||
if(animctrl_isAt(arg0, 0.3f)){ //(43.5/145)?
|
||||
if(anctrl_isAt(arg0, 0.3f)){ //(43.5/145)?
|
||||
FUNC_8030E624(SFX_62_BANJO_ERGHH, 1.0f, 28000);
|
||||
}//L802B4B0C
|
||||
|
||||
if(animctrl_isAt(arg0, 0.3607f)){
|
||||
if(anctrl_isAt(arg0, 0.3607f)){
|
||||
func_80292EA4();
|
||||
}//L802B4B30
|
||||
|
||||
if(animctrl_isAt(arg0, 0.4183f)){
|
||||
if(anctrl_isAt(arg0, 0.4183f)){
|
||||
func_8030E58C(SFX_3F1_UNKNOWN, 1.6f);
|
||||
}//L802B4B50
|
||||
|
||||
if(animctrl_isAt(arg0, 0.455f)){
|
||||
if(anctrl_isAt(arg0, 0.455f)){
|
||||
func_8030E58C(SFX_3F1_UNKNOWN, 1.45f);
|
||||
}//L802B4B74
|
||||
|
||||
if(animctrl_isAt(arg0, 0.49f)){
|
||||
if(anctrl_isAt(arg0, 0.49f)){
|
||||
func_8030E58C(SFX_3F1_UNKNOWN, 1.4f);
|
||||
}//L802B4B98
|
||||
|
||||
if(animctrl_isAt(arg0, 0.5397f)){
|
||||
if(anctrl_isAt(arg0, 0.5397f)){
|
||||
func_802900D8();
|
||||
}//L802B4BBC
|
||||
|
||||
if(animctrl_isAt(arg0, 0.6619f)){
|
||||
if(anctrl_isAt(arg0, 0.6619f)){
|
||||
FUNC_8030E624(SFX_21_EGG_BOUNCE_1, 1.8f, 16000);
|
||||
rumbleManager_80250D94(0.5f, 0.25f, 0.4f);
|
||||
baMotor_80250D94(0.5f, 0.25f, 0.4f);
|
||||
}//L802B4BF4
|
||||
|
||||
if(animctrl_isAt(arg0, 0.6688f))
|
||||
if(anctrl_isAt(arg0, 0.6688f))
|
||||
func_80292E48();
|
||||
//L802B4C18
|
||||
|
||||
if(animctrl_isAt(arg0, 0.6964f)){
|
||||
if(anctrl_isAt(arg0, 0.6964f)){
|
||||
FUNC_8030E624(SFX_21_EGG_BOUNCE_1, 1.8f, 16000);
|
||||
rumbleManager_80250D94(0.5f, 0.25f, 0.4f);
|
||||
baMotor_80250D94(0.5f, 0.25f, 0.4f);
|
||||
}//L802B4C50
|
||||
|
||||
if(animctrl_isAt(arg0, 0.7747f))
|
||||
if(anctrl_isAt(arg0, 0.7747f))
|
||||
func_80292EA4();
|
||||
//L802B4C74
|
||||
|
||||
if(animctrl_isAt(arg0, 0.7822f)){
|
||||
if(anctrl_isAt(arg0, 0.7822f)){
|
||||
FUNC_8030E624(SFX_6F_BANJO_HEADSCRATCH, 1.0f, 14000);
|
||||
}//L802B4C90
|
||||
|
||||
if(animctrl_isAt(arg0, 0.8322f)){
|
||||
if(anctrl_isAt(arg0, 0.8322f)){
|
||||
FUNC_8030E624(SFX_6F_BANJO_HEADSCRATCH, 1.0f, 14000);
|
||||
}//L802B4CB0
|
||||
|
||||
if(animctrl_isAt(arg0, 0.8669f)){
|
||||
if(anctrl_isAt(arg0, 0.8669f)){
|
||||
FUNC_8030E624(SFX_6F_BANJO_HEADSCRATCH, 1.0f, 14000);
|
||||
}//L802B4CD0
|
||||
|
||||
if(animctrl_isAt(arg0, 0.9048f)){
|
||||
if(anctrl_isAt(arg0, 0.9048f)){
|
||||
FUNC_8030E624(SFX_6F_BANJO_HEADSCRATCH, 1.0f, 14000);
|
||||
}//L802B4CF0
|
||||
|
||||
if(animctrl_isAt(arg0, 0.9649f)){
|
||||
if(anctrl_isAt(arg0, 0.9649f)){
|
||||
func_802900D8();
|
||||
}//L802B4CF0
|
||||
}
|
||||
@@ -204,46 +204,46 @@ void bsstand_update(void) {
|
||||
sp18 = D_80364D20[D_8037D540];
|
||||
if (sp18 & 8) {
|
||||
if (sp18 & 4) {
|
||||
if (animctrl_isAt(anim_ctrl, 0.0909f)) func_80299BD4();
|
||||
if (animctrl_isAt(anim_ctrl, 0.0909f)) func_8029E070(1);
|
||||
if (animctrl_isAt(anim_ctrl, 0.6818f)) func_8029E070(0);
|
||||
if (anctrl_isAt(anim_ctrl, 0.0909f)) func_80299BD4();
|
||||
if (anctrl_isAt(anim_ctrl, 0.0909f)) func_8029E070(1);
|
||||
if (anctrl_isAt(anim_ctrl, 0.6818f)) func_8029E070(0);
|
||||
}//L802B4E70
|
||||
if (sp18 & 2) {
|
||||
if (animctrl_isAt(anim_ctrl, 0.7727f)) func_8029E070(1);
|
||||
if (animctrl_isAt(anim_ctrl, 0.9999f)) func_8029E070(0);
|
||||
if (anctrl_isAt(anim_ctrl, 0.7727f)) func_8029E070(1);
|
||||
if (anctrl_isAt(anim_ctrl, 0.9999f)) func_8029E070(0);
|
||||
}//L802B50E4
|
||||
} else if (sp18 & 0x20) {
|
||||
if (animctrl_getIndex(anim_ctrl) == ASSET_95_ANIM_BSSTAND_KAZOOIE_PECK) {
|
||||
if (anctrl_getIndex(anim_ctrl) == ASSET_95_ANIM_BSSTAND_KAZOOIE_PECK) {
|
||||
func_802B4A10(anim_ctrl);
|
||||
if (animctrl_isAt(anim_ctrl, 0.37f)) {
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setTransitionDuration(anim_ctrl, 0.1f);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_F6_ANIM_BSSTAND_PULL_KAZOOIE);
|
||||
animctrl_setDuration(anim_ctrl, 5.0f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(anim_ctrl, "bsstand.c", 0x170);
|
||||
if (anctrl_isAt(anim_ctrl, 0.37f)) {
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setTransitionDuration(anim_ctrl, 0.1f);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_F6_ANIM_BSSTAND_PULL_KAZOOIE);
|
||||
anctrl_setDuration(anim_ctrl, 5.0f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(anim_ctrl, "bsstand.c", 0x170);
|
||||
}
|
||||
} else {
|
||||
if (animctrl_isAt(anim_ctrl, 0.069f)) func_80299D2C(SFX_4B_GULPING, 1.4f, 0x4650);
|
||||
if (animctrl_isAt(anim_ctrl, 0.1677f)) func_80299D2C(SFX_8B_KAZOOIE_RAWW, 1.0f, 0x4650);
|
||||
if (animctrl_isAt(anim_ctrl, 0.2441f)) func_80299D2C(SFX_8B_KAZOOIE_RAWW, 1.03f, 0x4650);
|
||||
if (animctrl_isAt(anim_ctrl, 0.3141f)) func_80299D2C(SFX_8B_KAZOOIE_RAWW, 1.06f, 0x4650);
|
||||
if (animctrl_isAt(anim_ctrl, 0.3859f)) func_80299D2C(SFX_8B_KAZOOIE_RAWW, 1.5f, 0x7D00);
|
||||
if (animctrl_isAt(anim_ctrl, 0.414f)) func_80299CF4(SFX_2D_KABOING, 1.0f, 0x4650);
|
||||
if (animctrl_isAt(anim_ctrl, 0.55f)) func_80299CF4(SFX_A3_BANJO_DOUBLE_COUGH, 1.0f, 0x6D60);
|
||||
if (animctrl_isAt(anim_ctrl, 0.6187f)) func_80299D2C(SFX_A0_COUGHING, 1.7f, 0x4650);
|
||||
if (animctrl_isAt(anim_ctrl, 0.7108f)) func_80299D2C(SFX_A0_COUGHING, 1.6f, 0x4650);
|
||||
if (animctrl_isAt(anim_ctrl, 0.7927f)) func_80299D2C(SFX_A0_COUGHING, 1.5f, 0x4650);
|
||||
if (anctrl_isAt(anim_ctrl, 0.069f)) func_80299D2C(SFX_4B_GULPING, 1.4f, 0x4650);
|
||||
if (anctrl_isAt(anim_ctrl, 0.1677f)) func_80299D2C(SFX_8B_KAZOOIE_RAWW, 1.0f, 0x4650);
|
||||
if (anctrl_isAt(anim_ctrl, 0.2441f)) func_80299D2C(SFX_8B_KAZOOIE_RAWW, 1.03f, 0x4650);
|
||||
if (anctrl_isAt(anim_ctrl, 0.3141f)) func_80299D2C(SFX_8B_KAZOOIE_RAWW, 1.06f, 0x4650);
|
||||
if (anctrl_isAt(anim_ctrl, 0.3859f)) func_80299D2C(SFX_8B_KAZOOIE_RAWW, 1.5f, 0x7D00);
|
||||
if (anctrl_isAt(anim_ctrl, 0.414f)) func_80299CF4(SFX_2D_KABOING, 1.0f, 0x4650);
|
||||
if (anctrl_isAt(anim_ctrl, 0.55f)) func_80299CF4(SFX_A3_BANJO_DOUBLE_COUGH, 1.0f, 0x6D60);
|
||||
if (anctrl_isAt(anim_ctrl, 0.6187f)) func_80299D2C(SFX_A0_COUGHING, 1.7f, 0x4650);
|
||||
if (anctrl_isAt(anim_ctrl, 0.7108f)) func_80299D2C(SFX_A0_COUGHING, 1.6f, 0x4650);
|
||||
if (anctrl_isAt(anim_ctrl, 0.7927f)) func_80299D2C(SFX_A0_COUGHING, 1.5f, 0x4650);
|
||||
}
|
||||
} else /*L802B50D4*/if ((sp18 & 0x10) != 0) {
|
||||
func_802B4A10(anim_ctrl);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.9999f) != 0) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.9999f) != 0) {
|
||||
D_8037D540 = func_802B4870(D_8037D540);
|
||||
sp18 = D_80364D20[D_8037D540];
|
||||
if (sp18 & 0x10) {
|
||||
baanim_playForDuration_once(ASSET_95_ANIM_BSSTAND_KAZOOIE_PECK, 5.5f);
|
||||
animctrl_start(anim_ctrl, "bsstand.c", 0x1AB);
|
||||
anctrl_start(anim_ctrl, "bsstand.c", 0x1AB);
|
||||
func_8029E070(1);
|
||||
func_802900FC();
|
||||
} else if (sp18 & 0x20) {
|
||||
@@ -251,18 +251,18 @@ void bsstand_update(void) {
|
||||
func_8029E070(1);
|
||||
func_802900FC();
|
||||
} else if (sp18 & 8) {
|
||||
if (animctrl_getIndex(anim_ctrl) == ASSET_6F_ANIM_BSSTAND_IDLE) {
|
||||
sp1C = animctrl_getAnimTimer(anim_ctrl);
|
||||
if (anctrl_getIndex(anim_ctrl) == ASSET_6F_ANIM_BSSTAND_IDLE) {
|
||||
sp1C = anctrl_getAnimTimer(anim_ctrl);
|
||||
} else {
|
||||
sp1C = 0.0f;
|
||||
func_802900B4();
|
||||
}
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_6F_ANIM_BSSTAND_IDLE);
|
||||
animctrl_setDuration(anim_ctrl, 5.5f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_setStart(anim_ctrl, sp1C);
|
||||
animctrl_start(anim_ctrl, "bsstand.c", 0x1C3);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_6F_ANIM_BSSTAND_IDLE);
|
||||
anctrl_setDuration(anim_ctrl, 5.5f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_setStart(anim_ctrl, sp1C);
|
||||
anctrl_start(anim_ctrl, "bsstand.c", 0x1C3);
|
||||
func_8029E070(0);
|
||||
}
|
||||
}
|
||||
@@ -289,18 +289,18 @@ void bsstand_landing_update(void){
|
||||
s32 sp1C = 0;
|
||||
AnimCtrl * sp18 = baanim_getAnimCtrlPtr();
|
||||
|
||||
if(animctrl_getIndex(sp18) == ASSET_D2_ANIM_BSSPLAT){
|
||||
if(animctrl_isAt(sp18, 0.8264f)){
|
||||
if(anctrl_getIndex(sp18) == ASSET_D2_ANIM_BSSPLAT){
|
||||
if(anctrl_isAt(sp18, 0.8264f)){
|
||||
func_80299CF4(SFX_6F_BANJO_HEADSCRATCH, 1.0f, 0x36b0);
|
||||
}
|
||||
|
||||
//L802B52F8
|
||||
if(animctrl_isAt(sp18, 0.8864f)){
|
||||
if(anctrl_isAt(sp18, 0.8864f)){
|
||||
func_80299CF4(SFX_6F_BANJO_HEADSCRATCH, 1.0f, 0x36b0);
|
||||
}
|
||||
}
|
||||
//L802B531C
|
||||
if(animctrl_isStopped(sp18))
|
||||
if(anctrl_isStopped(sp18))
|
||||
sp1C = BS_1_IDLE;
|
||||
|
||||
bs_setState(func_802B488C(sp1C));
|
||||
|
@@ -12,11 +12,11 @@ void func_802B5FD0(void) {
|
||||
AnimCtrl *anim_ctrl;
|
||||
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_69_ANIM_BSSURF);
|
||||
animctrl_setDuration(anim_ctrl, 1.8f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(anim_ctrl, "bssurf.c", 0x33);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_69_ANIM_BSSURF);
|
||||
anctrl_setDuration(anim_ctrl, 1.8f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(anim_ctrl, "bssurf.c", 0x33);
|
||||
func_8029C7F4(1, 1, 3, BA_PHYSICS_NORMAL);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
D_8037D560 = 1;
|
||||
|
@@ -51,10 +51,10 @@ void func_802B5538(AnimCtrl *arg0) {
|
||||
enum asset_e sp24;
|
||||
|
||||
sp24 = bsSwimAnimations[bsSwimCurrentAnimation];
|
||||
if (animctrl_getIndex(arg0) != sp24) {
|
||||
animctrl_setStart(arg0, animctrl_getAnimTimer(arg0));
|
||||
animctrl_setIndex(arg0, sp24);
|
||||
animctrl_start(arg0, "bsswim.c", 0x79);
|
||||
if (anctrl_getIndex(arg0) != sp24) {
|
||||
anctrl_setStart(arg0, anctrl_getAnimTimer(arg0));
|
||||
anctrl_setIndex(arg0, sp24);
|
||||
anctrl_start(arg0, "bsswim.c", 0x79);
|
||||
}
|
||||
bsSwimCurrentAnimation++;
|
||||
if (bsSwimCurrentAnimation >= 10) {
|
||||
@@ -125,19 +125,19 @@ void func_802B5774(void) {
|
||||
}
|
||||
func_80295328(4, 0.7f);
|
||||
}
|
||||
if ((animctrl_getIndex(anim_ctrl) == ASSET_57_ANIM_BSSWIM_IDLE) && (prev_state != BS_4C_LANDING_IN_WATER)) {
|
||||
animctrl_setSmoothTransition(anim_ctrl, 0);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_57_ANIM_BSSWIM_IDLE);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_setDuration(anim_ctrl, 1.2f);
|
||||
if ((anctrl_getIndex(anim_ctrl) == ASSET_57_ANIM_BSSWIM_IDLE) && (prev_state != BS_4C_LANDING_IN_WATER)) {
|
||||
anctrl_setSmoothTransition(anim_ctrl, 0);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_57_ANIM_BSSWIM_IDLE);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_setDuration(anim_ctrl, 1.2f);
|
||||
} else {
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setTransitionDuration(anim_ctrl, transition_duration);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_57_ANIM_BSSWIM_IDLE);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_setStart(anim_ctrl, 0.3f);
|
||||
animctrl_setDuration(anim_ctrl, 1.2f);
|
||||
animctrl_start(anim_ctrl, "bsswim.c", 0xFD);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setTransitionDuration(anim_ctrl, transition_duration);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_57_ANIM_BSSWIM_IDLE);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_setStart(anim_ctrl, 0.3f);
|
||||
anctrl_setDuration(anim_ctrl, 1.2f);
|
||||
anctrl_start(anim_ctrl, "bsswim.c", 0xFD);
|
||||
}
|
||||
func_8029C7F4(1, 3, 3, BA_PHYSICS_NORMAL);
|
||||
yaw_setVelocityBounded(500.0f, 5.0f);
|
||||
@@ -158,10 +158,10 @@ void func_802B5950(void) {
|
||||
if ((globalTimer_getTimeMasked(7) == 0) && ((f64) randf() < 0.5)) {
|
||||
func_802B5480();
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.01f) != 0) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.01f) != 0) {
|
||||
func_8030EC20(SFX_DC_IDLE_PADDLING, 0.85f, 1.15f, 16000, 16000);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.4348f) != 0) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.4348f) != 0) {
|
||||
func_802B5538(anim_ctrl);
|
||||
}
|
||||
if (func_8029B300() == 1) {
|
||||
@@ -199,13 +199,13 @@ void func_802B5B18(void) {
|
||||
} else {
|
||||
anim_duration = 0.4f;
|
||||
}
|
||||
if (animctrl_getIndex(anim_ctrl) != ASSET_39_ANIM_BSSWIM_MOVE) {
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_39_ANIM_BSSWIM_MOVE);
|
||||
animctrl_setTransitionDuration(anim_ctrl, anim_duration);
|
||||
animctrl_setStart(anim_ctrl, 0.8f);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(anim_ctrl, "bsswim.c", 0x164);
|
||||
if (anctrl_getIndex(anim_ctrl) != ASSET_39_ANIM_BSSWIM_MOVE) {
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_39_ANIM_BSSWIM_MOVE);
|
||||
anctrl_setTransitionDuration(anim_ctrl, anim_duration);
|
||||
anctrl_setStart(anim_ctrl, 0.8f);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(anim_ctrl, "bsswim.c", 0x164);
|
||||
}
|
||||
baanim_setUpdateType(BAANIM_UPDATE_2_SCALE_HORZ);
|
||||
baanim_setDurationRange(0.3f, 1.5f);
|
||||
@@ -223,16 +223,16 @@ void func_802B5C40(void) {
|
||||
|
||||
next_state = 0;
|
||||
anim_ctrl =baanim_getAnimCtrlPtr();
|
||||
if (animctrl_isAt(anim_ctrl, 0.38f)) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.38f)) {
|
||||
func_8029C4E4(1);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.88f)) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.88f)) {
|
||||
func_8029C4E4(0);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.2f)) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.2f)) {
|
||||
func_8030EB88(SFX_12_WATER_PADDLING_1, 0.9f, 1.1f);
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.7f)) {
|
||||
if (anctrl_isAt(anim_ctrl, 0.7f)) {
|
||||
func_8030EB88(SFX_12_WATER_PADDLING_1, 0.9f, 1.1f);
|
||||
}
|
||||
func_802B55DC();
|
||||
|
@@ -16,10 +16,10 @@ void bstalk_init(void){
|
||||
f32 target_pos[3];
|
||||
|
||||
player_anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(player_anim_ctrl);
|
||||
anctrl_reset(player_anim_ctrl);
|
||||
func_8029C848(player_anim_ctrl);
|
||||
animctrl_setPlaybackType(player_anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(player_anim_ctrl, "bstalk.c", 0x38);
|
||||
anctrl_setPlaybackType(player_anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(player_anim_ctrl, "bstalk.c", 0x38);
|
||||
_player_getPosition(plyr_pos);
|
||||
get_talk_target_position(target_pos);
|
||||
func_80257F18(plyr_pos, target_pos, &yaw);
|
||||
|
@@ -14,11 +14,11 @@ u8 D_8037D580;
|
||||
void bsthrow_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_11B_ANIM_BSTHROW);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsthrow.c", 0x2e);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_11B_ANIM_BSTHROW);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsthrow.c", 0x2e);
|
||||
|
||||
baanim_setUpdateType(BAANIM_UPDATE_1_NORMAL);
|
||||
yaw_setUpdateState(1);
|
||||
@@ -45,12 +45,12 @@ void bsthrow_update(void){
|
||||
func_80257F18(player_position, sp34, &sp24);
|
||||
yaw_setIdeal(sp24);
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.35f) && sp20){
|
||||
if(anctrl_isAt(aCtrl, 0.35f) && sp20){
|
||||
D_8037D580 = 1;
|
||||
marker_getActor(sp20)->unk138_21 = 1;
|
||||
}
|
||||
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
next_state = BS_1_IDLE;
|
||||
|
||||
bs_setState(next_state);
|
||||
|
@@ -25,18 +25,18 @@ void func_802B6270(void){
|
||||
|
||||
void func_802B6314(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
if(animctrl_isAt(aCtrl, 0.0625f))
|
||||
if(anctrl_isAt(aCtrl, 0.0625f))
|
||||
func_80292E48();
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.18f))
|
||||
if(anctrl_isAt(aCtrl, 0.18f))
|
||||
FUNC_8030E624(SFX_3EB_UNKNOWN, 1.0f, 18000);
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.8421f)){
|
||||
if(anctrl_isAt(aCtrl, 0.8421f)){
|
||||
func_80292E80(0, 0.3f);
|
||||
func_80292E80(1, 0.3f);
|
||||
}
|
||||
|
||||
if(animctrl_isAt(aCtrl, 0.84f))
|
||||
if(anctrl_isAt(aCtrl, 0.84f))
|
||||
func_8029B6F0();
|
||||
}
|
||||
|
||||
@@ -48,10 +48,10 @@ void func_802B63C8(void){
|
||||
|
||||
void func_802B63F8(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
anctrl_reset(aCtrl);
|
||||
func_8029C848(aCtrl);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(aCtrl, "bstimeout.c", 0x7e);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(aCtrl, "bstimeout.c", 0x7e);
|
||||
func_8029C7F4(1,1,3,BA_PHYSICS_FREEZE);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
func_802914CC(0xd);
|
||||
|
@@ -13,12 +13,12 @@ void bsturn_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
f32 sp28[3];
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_E_ANIM_BSTURN);
|
||||
animctrl_setDuration(aCtrl, 0.3f);
|
||||
animctrl_setTransitionDuration(aCtrl,0.1f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bsturn.c", 0x37);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_E_ANIM_BSTURN);
|
||||
anctrl_setDuration(aCtrl, 0.3f);
|
||||
anctrl_setTransitionDuration(aCtrl,0.1f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bsturn.c", 0x37);
|
||||
baanim_setUpdateType(BAANIM_UPDATE_1_NORMAL);
|
||||
yaw_setUpdateState(1);
|
||||
func_8029957C(2);
|
||||
@@ -32,7 +32,7 @@ void bsturn_init(void){
|
||||
void bsturn_update(void){
|
||||
enum bs_e sp2C = 0;
|
||||
|
||||
baphysics_set_target_horizontal_velocity(ml_map_f(animctrl_getAnimTimer(baanim_getAnimCtrlPtr()), 0.18f, 1.0f, bsturn_starting_horizontal_velocity, 0.0f));
|
||||
baphysics_set_target_horizontal_velocity(ml_map_f(anctrl_getAnimTimer(baanim_getAnimCtrlPtr()), 0.18f, 1.0f, bsturn_starting_horizontal_velocity, 0.0f));
|
||||
|
||||
D_8037D594++;
|
||||
if(!(D_8037D594 < 6))
|
||||
@@ -50,7 +50,7 @@ void bsturn_update(void){
|
||||
break;
|
||||
}//L802B6978
|
||||
|
||||
if(animctrl_isStopped(baanim_getAnimCtrlPtr()))
|
||||
if(anctrl_isStopped(baanim_getAnimCtrlPtr()))
|
||||
sp2C = BS_4_WALK_FAST;
|
||||
|
||||
if(button_held(BUTTON_Z))
|
||||
|
@@ -17,13 +17,13 @@ int bstwirl_hitboxActive(void){
|
||||
|
||||
void bstwirl_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, 0);
|
||||
animctrl_setIndex(aCtrl, ASSET_4F_ANIM_BSTWIRL);
|
||||
animctrl_setDuration(aCtrl, 0.9f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bstwirl.c", 0x46);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, 0);
|
||||
anctrl_setIndex(aCtrl, ASSET_4F_ANIM_BSTWIRL);
|
||||
anctrl_setDuration(aCtrl, 0.9f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bstwirl.c", 0x46);
|
||||
baanim_setUpdateType(BAANIM_UPDATE_1_NORMAL);
|
||||
yaw_setUpdateState(1);
|
||||
func_8029957C(3);
|
||||
@@ -54,15 +54,15 @@ void bstwirl_update(void){
|
||||
func_8029AE74(0);
|
||||
batimer_set(0, 0.12f);
|
||||
}
|
||||
if(animctrl_isAt(aCtrl, 0.8011f)){
|
||||
animctrl_setDuration(aCtrl, 2.5f);
|
||||
if(anctrl_isAt(aCtrl, 0.8011f)){
|
||||
anctrl_setDuration(aCtrl, 2.5f);
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
_bstwirlHitboxActive = 0;
|
||||
D_8037D5A4 = 3;
|
||||
}
|
||||
//??? missing break
|
||||
case 3://L802B6C38
|
||||
if(animctrl_isStopped(aCtrl))
|
||||
if(anctrl_isStopped(aCtrl))
|
||||
sp1C = BS_1_IDLE;
|
||||
break;
|
||||
}//L802B6C4C
|
||||
@@ -70,7 +70,7 @@ void bstwirl_update(void){
|
||||
if(button_pressed(BUTTON_A))
|
||||
sp1C = bs_getTypeOfJump();
|
||||
|
||||
if(0.6 < animctrl_getAnimTimer(aCtrl) && !player_isStable())
|
||||
if(0.6 < anctrl_getAnimTimer(aCtrl) && !player_isStable())
|
||||
sp1C = BS_2F_FALL;
|
||||
|
||||
if(player_inWater())
|
||||
|
@@ -118,16 +118,16 @@ void bswalk_creep_init(void){
|
||||
f32 start_position;
|
||||
|
||||
if(bs_getPrevState() == BS_2_WALK_SLOW){
|
||||
start_position = anim_getTimer(animctrl_getAnimPtr(anim_ctrl));
|
||||
start_position = anim_getTimer(anctrl_getAnimPtr(anim_ctrl));
|
||||
}else{
|
||||
start_position = 0.0f;
|
||||
}
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_2_ANIM_BSWALK_CREEP);
|
||||
animctrl_setDuration(anim_ctrl, 0.43f);
|
||||
animctrl_setStart(anim_ctrl, start_position);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(anim_ctrl, "bswalk.c", 0xe4);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_2_ANIM_BSWALK_CREEP);
|
||||
anctrl_setDuration(anim_ctrl, 0.43f);
|
||||
anctrl_setStart(anim_ctrl, start_position);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(anim_ctrl, "bswalk.c", 0xe4);
|
||||
func_8029C7F4(BAANIM_UPDATE_2_SCALE_HORZ,1,1, BA_PHYSICS_NORMAL);
|
||||
baanim_setDurationRange(0.3f, 1.5f);
|
||||
baanim_setVelocityMapRanges(bsWalkMinCreepVelocity, bsWalkCreepSlowWalkVelocityThreshold, bsWalkSlowestCreepDuration, bsWalkFastestCreepDuration);
|
||||
@@ -191,16 +191,16 @@ void bswalk_slow_init(void){
|
||||
f32 start_position;
|
||||
|
||||
if(bs_getPrevState() == 3){
|
||||
start_position = anim_getTimer(animctrl_getAnimPtr(anim_ctrl));
|
||||
start_position = anim_getTimer(anctrl_getAnimPtr(anim_ctrl));
|
||||
}else{
|
||||
start_position = 0.0f;
|
||||
}
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_3_ANIM_BSWALK);
|
||||
animctrl_setDuration(anim_ctrl, 0.43f);
|
||||
animctrl_setStart(anim_ctrl, start_position);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(anim_ctrl, "bswalk.c", 0x168);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_3_ANIM_BSWALK);
|
||||
anctrl_setDuration(anim_ctrl, 0.43f);
|
||||
anctrl_setStart(anim_ctrl, start_position);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(anim_ctrl, "bswalk.c", 0x168);
|
||||
func_8029C7F4(BAANIM_UPDATE_2_SCALE_HORZ,1,1, BA_PHYSICS_NORMAL);
|
||||
baanim_setDurationRange(0.3f, 1.5f);
|
||||
baanim_setVelocityMapRanges(bsWalkCreepSlowWalkVelocityThreshold, bsWalkSlowWalkWalkVelocityThreshold, bsWalkSlowestSlowWalkDuration, bsWalkFastestSlowWalkDuration);
|
||||
@@ -269,16 +269,16 @@ void bswalk_init(void){
|
||||
break;
|
||||
case 2://slowwalk
|
||||
case 4://fastwalk
|
||||
start_position = anim_getTimer(animctrl_getAnimPtr(anim_ctrl));
|
||||
start_position = anim_getTimer(anctrl_getAnimPtr(anim_ctrl));
|
||||
break;
|
||||
}
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_C_ANIM_BSWALK_RUN);
|
||||
animctrl_setDuration(anim_ctrl, 0.66f);
|
||||
animctrl_setTransitionDuration(anim_ctrl, 0.14f);
|
||||
animctrl_setStart(anim_ctrl, start_position);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(anim_ctrl, "bswalk.c", 0x1ed);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_C_ANIM_BSWALK_RUN);
|
||||
anctrl_setDuration(anim_ctrl, 0.66f);
|
||||
anctrl_setTransitionDuration(anim_ctrl, 0.14f);
|
||||
anctrl_setStart(anim_ctrl, start_position);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(anim_ctrl, "bswalk.c", 0x1ed);
|
||||
func_8029C7F4(BAANIM_UPDATE_2_SCALE_HORZ,1,1, BA_PHYSICS_NORMAL);
|
||||
baanim_setDurationRange(0.3f, 1.5f);
|
||||
baanim_setVelocityMapRanges(bsWalkSlowWalkWalkVelocityThreshold, bsWalkWalkFastWalkVelocityThreshold, bsWalkSlowestWalkDuration, bsWalkFastestWalkDuration);
|
||||
@@ -351,18 +351,18 @@ void bswalk_fast_init(void){
|
||||
sp24 = 0;
|
||||
break;
|
||||
case 3:
|
||||
sp28 = anim_getTimer(animctrl_getAnimPtr(anim_ctrl));
|
||||
sp28 = anim_getTimer(anctrl_getAnimPtr(anim_ctrl));
|
||||
|
||||
break;
|
||||
}
|
||||
animctrl_reset(anim_ctrl);
|
||||
animctrl_setSmoothTransition(anim_ctrl, sp24);
|
||||
animctrl_setIndex(anim_ctrl, ASSET_C_ANIM_BSWALK_RUN);
|
||||
animctrl_setDuration(anim_ctrl, 0.66f);
|
||||
animctrl_setTransitionDuration(anim_ctrl, 0.1f);
|
||||
animctrl_setStart(anim_ctrl, sp28);
|
||||
animctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
animctrl_start(anim_ctrl, "bswalk.c", 0x27d);
|
||||
anctrl_reset(anim_ctrl);
|
||||
anctrl_setSmoothTransition(anim_ctrl, sp24);
|
||||
anctrl_setIndex(anim_ctrl, ASSET_C_ANIM_BSWALK_RUN);
|
||||
anctrl_setDuration(anim_ctrl, 0.66f);
|
||||
anctrl_setTransitionDuration(anim_ctrl, 0.1f);
|
||||
anctrl_setStart(anim_ctrl, sp28);
|
||||
anctrl_setPlaybackType(anim_ctrl, ANIMCTRL_LOOP);
|
||||
anctrl_start(anim_ctrl, "bswalk.c", 0x27d);
|
||||
func_8029C7F4(BAANIM_UPDATE_2_SCALE_HORZ,1,1, BA_PHYSICS_NORMAL);
|
||||
baanim_setDurationRange(0.3f, 1.5f);
|
||||
baanim_setVelocityMapRanges(bsWalkWalkFastWalkVelocityThreshold, bsWalkMaxFastWalkVelocity, bsWalkSlowestFastWalkDuration, bsWalkFastestFastWalkDuration);
|
||||
|
@@ -214,14 +214,14 @@ void bswalrus_walk_end(void){
|
||||
void bswalrus_jump_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
animctrl_setIndex(aCtrl, ASSET_121_ANIM_BSWALRUS_JUMP);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.514f);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setStart(aCtrl, 0.1);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bswalrus.c", 0x1f8);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
anctrl_setIndex(aCtrl, ASSET_121_ANIM_BSWALRUS_JUMP);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.514f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setStart(aCtrl, 0.1);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bswalrus.c", 0x1f8);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
if(func_8029B2E8() != 0.0f)
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -248,23 +248,23 @@ void bswalrus_jump_update(void){
|
||||
switch(D_8037D5C8){
|
||||
case 0://L802B86D8
|
||||
if(func_8028B254(0x82)){
|
||||
animctrl_setDuration(aCtrl, 0.7f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.8501f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setDuration(aCtrl, 0.7f);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.8501f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D5C8 = 2;
|
||||
}
|
||||
else if(animctrl_isStopped(aCtrl)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.6734f);
|
||||
animctrl_setDuration(aCtrl, 3.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
else if(anctrl_isStopped(aCtrl)){
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.6734f);
|
||||
anctrl_setDuration(aCtrl, 3.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D5C8 = 1;
|
||||
}
|
||||
break;
|
||||
case 1://L802B876C
|
||||
if(func_8028B254(0x82)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.8501f);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.8501f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D5C8 = 2;
|
||||
}
|
||||
break;
|
||||
@@ -272,15 +272,15 @@ void bswalrus_jump_update(void){
|
||||
func_80299628(0);
|
||||
if(player_isStable()){
|
||||
func_8029AE48();
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D5C8 = 3;
|
||||
}
|
||||
break;
|
||||
case 3://L802B880C
|
||||
func_80299628(0);
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
next_state = BS_67_WALRUS_IDLE;
|
||||
}
|
||||
@@ -305,12 +305,12 @@ void bswalrus_jump_end(void){
|
||||
|
||||
void bswalrus_fall_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_121_ANIM_BSWALRUS_JUMP);
|
||||
animctrl_setStart(aCtrl, 0.662f);
|
||||
animctrl_setDuration(aCtrl, 0.7f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
animctrl_start(aCtrl, "bswalrus.c", 0x284);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_121_ANIM_BSWALRUS_JUMP);
|
||||
anctrl_setStart(aCtrl, 0.662f);
|
||||
anctrl_setDuration(aCtrl, 0.7f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_start(aCtrl, "bswalrus.c", 0x284);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
func_802B8110();
|
||||
D_8037D5C8 = 0;
|
||||
@@ -329,8 +329,8 @@ void bswalrus_fall_update(void){
|
||||
{
|
||||
case 0://L802B89A4
|
||||
if(func_8028B254(0x82)){
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.8501f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.8501f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D5C8 = 1;
|
||||
}
|
||||
break;
|
||||
@@ -338,9 +338,9 @@ void bswalrus_fall_update(void){
|
||||
if(player_isStable()){
|
||||
func_8029AE48();
|
||||
baphysics_set_target_horizontal_velocity(0.0f);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 1.0f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
D_8037D5C8 = 2;
|
||||
}
|
||||
break;
|
||||
@@ -350,7 +350,7 @@ void bswalrus_fall_update(void){
|
||||
|
||||
if(player_isStable()){
|
||||
if( func_8029B300() > 0
|
||||
|| (D_8037D5C8 == 2 && animctrl_isStopped(aCtrl))
|
||||
|| (D_8037D5C8 == 2 && anctrl_isStopped(aCtrl))
|
||||
){
|
||||
if(miscFlag_isTrue(MISC_FLAG_19))
|
||||
next_state = badrone_transform();
|
||||
@@ -443,13 +443,13 @@ void bswalrus_die_init(void){
|
||||
f32 sp20[3];
|
||||
|
||||
func_8029B930();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
animctrl_setIndex(aCtrl, ASSET_19D_ANIM_BSWALRUS_DIE);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.4454f);
|
||||
animctrl_setDuration(aCtrl, 2.2f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bswalrus.c", 0x366);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
anctrl_setIndex(aCtrl, ASSET_19D_ANIM_BSWALRUS_DIE);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.4454f);
|
||||
anctrl_setDuration(aCtrl, 2.2f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bswalrus.c", 0x366);
|
||||
func_8030E58C(SFX_36_BANJO_DOH, 1.8f);
|
||||
_player_getPosition(sp2C);
|
||||
func_80294980(sp20);
|
||||
@@ -595,14 +595,14 @@ void bswalrus_sled_end(void){
|
||||
|
||||
void bswalrus_sled_jump_init(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
animctrl_setIndex(aCtrl, ASSET_19F_ANIM_BSWALRUS_SLED_JUMP);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.4285f);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setStart(aCtrl, 0.14f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
animctrl_start(aCtrl, "bswalrus.c", 0x477);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setSmoothTransition(aCtrl, FALSE);
|
||||
anctrl_setIndex(aCtrl, ASSET_19F_ANIM_BSWALRUS_SLED_JUMP);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.4285f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setStart(aCtrl, 0.14f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_ONCE);
|
||||
anctrl_start(aCtrl, "bswalrus.c", 0x477);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
if(func_8029B2E8() != 0.0f)
|
||||
yaw_setIdeal(func_8029B33C());
|
||||
@@ -630,7 +630,7 @@ void bswalrus_sled_jump_update(void){
|
||||
switch (D_8037D5C8)
|
||||
{
|
||||
case 0:
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
baanim_setEndAndDuration(0.5058f, 7.0f);
|
||||
D_8037D5C8 = 1;
|
||||
}
|
||||
@@ -642,7 +642,7 @@ void bswalrus_sled_jump_update(void){
|
||||
}
|
||||
break;
|
||||
case 2://L802B951C
|
||||
if(animctrl_isStopped(aCtrl)){
|
||||
if(anctrl_isStopped(aCtrl)){
|
||||
next_state = BS_7D_WALRUS_SLED;
|
||||
}
|
||||
break;
|
||||
@@ -665,12 +665,12 @@ void bswalrus_sled_jump_end(void){
|
||||
|
||||
void func_802B95A0(void){
|
||||
AnimCtrl *aCtrl = baanim_getAnimCtrlPtr();
|
||||
animctrl_reset(aCtrl);
|
||||
animctrl_setIndex(aCtrl, ASSET_19F_ANIM_BSWALRUS_SLED_JUMP);
|
||||
animctrl_setSubRange(aCtrl, 0.0f, 0.5058f);
|
||||
animctrl_setDuration(aCtrl, 1.0f);
|
||||
animctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
animctrl_start(aCtrl, "bswalrus.c", 0x4e2);
|
||||
anctrl_reset(aCtrl);
|
||||
anctrl_setIndex(aCtrl, ASSET_19F_ANIM_BSWALRUS_SLED_JUMP);
|
||||
anctrl_setSubRange(aCtrl, 0.0f, 0.5058f);
|
||||
anctrl_setDuration(aCtrl, 1.0f);
|
||||
anctrl_setPlaybackType(aCtrl, ANIMCTRL_STOPPED);
|
||||
anctrl_start(aCtrl, "bswalrus.c", 0x4e2);
|
||||
func_8029C7F4(1,1,3, BA_PHYSICS_AIRBORN);
|
||||
func_802B813C();
|
||||
D_8037D5C8 = 0;
|
||||
@@ -705,7 +705,7 @@ void func_802B963C(void){
|
||||
|
||||
if(player_isStable()){
|
||||
if( func_8029B300() > 0
|
||||
|| (D_8037D5C8 == 2 && animctrl_isStopped(aCtrl))
|
||||
|| (D_8037D5C8 == 2 && anctrl_isStopped(aCtrl))
|
||||
){
|
||||
next_state = BS_7D_WALRUS_SLED;
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@ void func_802B9980(s32 arg0){
|
||||
break;
|
||||
case 5: //L802B9A58
|
||||
func_8030E58C(SFX_D0_GRIMLET_SQUEAK, 0.9f);
|
||||
animctrl_setDuration(plyr_anim, 2.2f);
|
||||
anctrl_setDuration(plyr_anim, 2.2f);
|
||||
break;
|
||||
case 6: //L802B9A84
|
||||
batimer_set(0, 0.01f);
|
||||
|
Reference in New Issue
Block a user