func_8086EAE0

This commit is contained in:
inspectredc
2023-11-01 19:20:21 +00:00
parent 09e37611ae
commit 9c31a21f54
2 changed files with 23 additions and 2 deletions
+21 -1
View File
@@ -402,7 +402,27 @@ void func_8086E948(EnOkuta* this, PlayState* play) {
}
}
#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_En_Okuta/func_8086EAE0.s")
void func_8086EAE0(EnOkuta* this, PlayState* play) {
Animation_PlayOnce(&this->skelAnime, (AnimationHeader* ) &D_0600044C);
if (this->actionFunc != func_8086EC00) {
if (this->actor.params == 0) {
this->unk18E = this->unk190;
} else {
this->unk18E = ((560.0f - this->actor.xzDistToPlayer) * 0.005f) + 1.0f;
}
}
if (this->actor.params == 0) {
this->unk260 = this->actor.playerHeightRel + 20.0f;
this->unk260 = CLAMP_MIN(this->unk260, 10.0f);
if (this->unk260 > 50.0f) {
func_8086E27C(this, play);
Actor_PlaySfx(&this->actor, 0x38C2);
}
}
this->actionFunc = func_8086EC00;
}
#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_En_Okuta/func_8086EC00.s")
@@ -21,7 +21,8 @@ typedef struct EnOkuta {
/* 0x254 */ f32 unk254;
/* 0x258 */ f32 unk258;
/* 0x25C */ f32 unk25C;
/* 0x260 */ char pad260[0x10];
/* 0x260 */ f32 unk260;
/* 0x268 */ char pad268[0xC];
/* 0x270 */ Vec3f bodyPartsPos[0xA];
/* 0x2E8 */ ColliderCylinder collider;
} EnOkuta;