rename animctrl
to anctrl
to match source debug string and tooie naming
rename `rumbleManager` to `bamotor`
This commit is contained in:
@@ -48,7 +48,7 @@ ActorInfo gChBlubber = {
|
||||
static void __chBlubber_initiliaze(Actor *this){
|
||||
ActorLocal_Blubber *local = (ActorLocal_Blubber *)&this->local;
|
||||
|
||||
animctrl_setTransitionDuration(this->animctrl, 0.2f);
|
||||
anctrl_setTransitionDuration(this->anctrl, 0.2f);
|
||||
this->initialized = TRUE;
|
||||
local->gold_bullion_throw_target_node_prop = nodeprop_findByActorIdAndActorPosition(ACTOR_2B_GOLD_BULLION_THROW_TARGET, this);
|
||||
if(local->gold_bullion_throw_target_node_prop){
|
||||
|
@@ -36,7 +36,7 @@ static void __chClam_playSfx(enum sfx_e sfx_id, f32 volume, s32 sampleRate, f32
|
||||
static void __chClam_func_80386454(Actor *this){
|
||||
subaddie_set_state_with_direction(this, 1, 0.01f, 1);
|
||||
actor_loopAnimation(this);
|
||||
animctrl_setDuration(this->animctrl, randf2(1.9f, 2.1f));
|
||||
anctrl_setDuration(this->anctrl, randf2(1.9f, 2.1f));
|
||||
}
|
||||
|
||||
static bool __chClam_updateFuncTarget(Actor *this, f32 arg1) {
|
||||
@@ -97,10 +97,10 @@ static bool __chClam_rotateTowardTarget(Actor *this, s32 arg1) {
|
||||
if(this->unk10_25 == 0) return FALSE;
|
||||
|
||||
|
||||
animctrl_setDuration(this->animctrl, 1.0f);
|
||||
anctrl_setDuration(this->anctrl, 1.0f);
|
||||
sp2C = (s32) ((f64) (60.0f / (f32) func_8033DD90()) * 0.5);
|
||||
if ((this->unk1C[0] != 0.0f) || !__chClam_updateFuncTarget(this, sp2C)) {
|
||||
if (((f64) animctrl_getAnimTimer(this->animctrl) < 0.1) && ((f64) randf() < 0.5)) {
|
||||
if (((f64) anctrl_getAnimTimer(this->anctrl) < 0.1) && ((f64) randf() < 0.5)) {
|
||||
if (this->unk1C[0] != 0.0f) {
|
||||
arg1 *= 2;
|
||||
this->actor_specific_1_f = (f32) randi2(0, 0.5*(volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11));
|
||||
@@ -265,7 +265,7 @@ static void __chClam_updateFunc(Actor *this){
|
||||
|
||||
if(!this->initialized){
|
||||
this->initialized = TRUE;
|
||||
animctrl_setDuration(this->animctrl, 2.0f);
|
||||
anctrl_setDuration(this->anctrl, 2.0f);
|
||||
}
|
||||
|
||||
if(!this->volatile_initialized){
|
||||
@@ -286,7 +286,7 @@ static void __chClam_updateFunc(Actor *this){
|
||||
subaddie_set_state_with_direction(this, 3, 0.01f, 1);
|
||||
actor_loopAnimation(this);
|
||||
this->velocity_x = 0.0f;
|
||||
animctrl_setDuration(this->animctrl, 0.6f);
|
||||
anctrl_setDuration(this->anctrl, 0.6f);
|
||||
marker_despawn(sp4C->marker);
|
||||
}
|
||||
}
|
||||
@@ -297,11 +297,11 @@ static void __chClam_updateFunc(Actor *this){
|
||||
if(__chClam_rotateTowardTarget(this, 140)){
|
||||
subaddie_set_state_with_direction(this, 2, 0.01f, 1);
|
||||
actor_playAnimationOnce(this);
|
||||
animctrl_setDuration(this->animctrl, 1.0f);
|
||||
anctrl_setDuration(this->anctrl, 1.0f);
|
||||
__chClam_playSfx(SFX_3F2_UNKNOWN, randf2(1.0f, 1.1f), 22000, this->position, 1500.0f, 2000.0f);
|
||||
}
|
||||
else{
|
||||
animctrl_setDuration(this->animctrl, 2.0f);
|
||||
anctrl_setDuration(this->anctrl, 2.0f);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -314,7 +314,7 @@ static void __chClam_updateFunc(Actor *this){
|
||||
|
||||
if(this->position_y <= sp48){
|
||||
this->position_y = sp48;
|
||||
if(actor_animationIsAt(this, 0.99f) || 0.98 < animctrl_getAnimTimer(this->animctrl)){
|
||||
if(actor_animationIsAt(this, 0.99f) || 0.98 < anctrl_getAnimTimer(this->anctrl)){
|
||||
__chClam_func_80386454(this);
|
||||
}
|
||||
}
|
||||
|
@@ -127,7 +127,7 @@ static void __chLockup_updateFunc(Actor *this){
|
||||
if(actor_animationIsAt(this, 0.5f)){
|
||||
subaddie_set_state_with_direction(this, CH_LOCKUP_STATE_OPEN, 0.5f, 1);
|
||||
}
|
||||
if(0.15 < animctrl_getAnimTimer(this->animctrl)){
|
||||
if(0.15 < anctrl_getAnimTimer(this->anctrl)){
|
||||
this->marker->collidable = TRUE;
|
||||
}
|
||||
break;
|
||||
|
@@ -77,15 +77,15 @@ static void __chNipper_setAnimationDuration(Actor *this) {
|
||||
this->unk1C[0] = 0.0f;
|
||||
switch((s32)this->lifetime_value){
|
||||
case 120:
|
||||
animctrl_setDuration(this->animctrl, 1.2f);
|
||||
anctrl_setDuration(this->anctrl, 1.2f);
|
||||
break;
|
||||
|
||||
case 80:
|
||||
animctrl_setDuration(this->animctrl, 1.05f);
|
||||
anctrl_setDuration(this->anctrl, 1.05f);
|
||||
break;
|
||||
|
||||
case 40:
|
||||
animctrl_setDuration(this->animctrl, 0.9f);
|
||||
anctrl_setDuration(this->anctrl, 0.9f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -227,7 +227,7 @@ static void __chNipper_updateFunc(Actor *this){
|
||||
switch(this->state){
|
||||
case CH_NIPPER_STATE_1_UNKNOWN:
|
||||
if(!this->initialized){
|
||||
animctrl_setTransitionDuration(this->animctrl, 0.35f);
|
||||
anctrl_setTransitionDuration(this->anctrl, 0.35f);
|
||||
subaddie_set_state_with_direction(this, CH_NIPPER_STATE_1_UNKNOWN, 0.01f, 1);
|
||||
this->lifetime_value = 120.0f;
|
||||
this->marker->propPtr->unk8_3 = TRUE;
|
||||
|
@@ -73,8 +73,8 @@ static void __chTreasure_updateFunc(Actor *this){
|
||||
|
||||
switch(this->state){
|
||||
case 1://L8038C29C
|
||||
this->unk5C = animctrl_getAnimTimer(this->animctrl) *300.0; //radius of 300.0f
|
||||
if(animctrl_isStopped(this->animctrl)){
|
||||
this->unk5C = anctrl_getAnimTimer(this->anctrl) *300.0; //radius of 300.0f
|
||||
if(anctrl_isStopped(this->anctrl)){
|
||||
actor_loopAnimation(this);
|
||||
subaddie_set_state_forward(this, 2);
|
||||
this->marker->propPtr->unk8_3 = 1;
|
||||
|
Reference in New Issue
Block a user