mirror of https://github.com/zeldaret/oot.git
floormaster wip
This commit is contained in:
parent
097d46e7dc
commit
e661f3f367
|
@ -32,6 +32,7 @@ void func_80A187AC(EnFloormas* this, GlobalContext* globalCtx);
|
||||||
void func_80A18650(EnFloormas* this, GlobalContext* globalCtx);
|
void func_80A18650(EnFloormas* this, GlobalContext* globalCtx);
|
||||||
void func_80A185C4(EnFloormas* this, GlobalContext* globalCtx);
|
void func_80A185C4(EnFloormas* this, GlobalContext* globalCtx);
|
||||||
void func_80A18500(EnFloormas* this, GlobalContext* globalCtx);
|
void func_80A18500(EnFloormas* this, GlobalContext* globalCtx);
|
||||||
|
void func_80A18C78(EnFloormas* this, GlobalContext* globalCtx);
|
||||||
|
|
||||||
const ActorInit En_Floormas_InitVars = {
|
const ActorInit En_Floormas_InitVars = {
|
||||||
ACTOR_EN_FLOORMAS,
|
ACTOR_EN_FLOORMAS,
|
||||||
|
@ -160,14 +161,6 @@ extern AnimationHeader D_0600A054;
|
||||||
extern AnimationHeader D_060041F4;
|
extern AnimationHeader D_060041F4;
|
||||||
extern AnimationHeader D_06009244;
|
extern AnimationHeader D_06009244;
|
||||||
|
|
||||||
void func_80A18310(EnFloormas* this) {
|
|
||||||
func_800A51E8(&this->skelAnime, &D_06000EA4);
|
|
||||||
this->actionFunc = (ActorFunc)&func_80A19C6C;
|
|
||||||
this->actor.speedXZ = 0.0f;
|
|
||||||
this->actor.velocity.y = 0.0f;
|
|
||||||
this->actor.posRot.rot.y = this->actor.shape.rot.y;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define NON_MATCHING
|
#define NON_MATCHING
|
||||||
#ifdef NON_MATCHING
|
#ifdef NON_MATCHING
|
||||||
void EnFloormas_Init(EnFloormas* this, GlobalContext* globalCtx) {
|
void EnFloormas_Init(EnFloormas* this, GlobalContext* globalCtx) {
|
||||||
|
@ -333,12 +326,7 @@ void func_80A17B40(EnFloormas* this) {
|
||||||
this->actionFunc = (ActorFunc)&func_80A18D68;
|
this->actionFunc = (ActorFunc)&func_80A18D68;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define UNK_FLOATBEC1 0.60000002384185791015625f
|
|
||||||
|
|
||||||
void func_80A17BEC(EnFloormas* this) {
|
void func_80A17BEC(EnFloormas* this) {
|
||||||
u32* objSkelAnimeFrameCount = &D_060019CC;
|
|
||||||
u32* objSkelAnimeChangeAnimation = &D_060019CC;
|
|
||||||
s32 temp_t7;
|
s32 temp_t7;
|
||||||
|
|
||||||
Actor_SetScale(&this->actor, 0.004f);
|
Actor_SetScale(&this->actor, 0.004f);
|
||||||
|
@ -351,10 +339,10 @@ void func_80A17BEC(EnFloormas* this) {
|
||||||
this->actor.shape.rot.y = this->actor.attachedA->shape.rot.y + 0x5555;
|
this->actor.shape.rot.y = this->actor.attachedA->shape.rot.y + 0x5555;
|
||||||
this->actor.posRot.pos = this->actor.attachedA->posRot.pos;
|
this->actor.posRot.pos = this->actor.attachedA->posRot.pos;
|
||||||
this->actor.params = 0x10;
|
this->actor.params = 0x10;
|
||||||
SkelAnime_ChangeAnimation(&this->skelAnime, objSkelAnimeChangeAnimation, 1.0f, 41.0f,
|
SkelAnime_ChangeAnimation(&this->skelAnime, &D_060019CC, 1.0f, 41.0f,
|
||||||
(f32)SkelAnime_GetFrameCount(objSkelAnimeFrameCount), 2, 0.0f);
|
(f32)SkelAnime_GetFrameCount(&D_060019CC), 2, 0.0f);
|
||||||
this->colCylinder.dim.radius = (f32)D_80A1A470[16] * UNK_FLOATBEC1;
|
this->colCylinder.dim.radius = (f32)D_80A1A470[16] * 0.6f;
|
||||||
this->colCylinder.dim.height = (f32)D_80A1A470[17] * UNK_FLOATBEC1;
|
this->colCylinder.dim.height = (f32)D_80A1A470[17] * 0.6f;
|
||||||
this->colCylinder.body.bumperFlags &= ~4;
|
this->colCylinder.body.bumperFlags &= ~4;
|
||||||
this->actor.speedXZ = 4.0f;
|
this->actor.speedXZ = 4.0f;
|
||||||
this->actor.velocity.y = 7.0f;
|
this->actor.velocity.y = 7.0f;
|
||||||
|
@ -484,7 +472,18 @@ void func_80A18254(EnFloormas* this) {
|
||||||
this->actor.velocity.y = 5.5f;
|
this->actor.velocity.y = 5.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef NON_MATCHING
|
||||||
|
void func_80A18310(EnFloormas* this)
|
||||||
|
{
|
||||||
|
func_800A51E8(&this->skelAnime, &D_06000EA4);
|
||||||
|
this->actionFunc = &func_80A19C6C;
|
||||||
|
this->actor.speedXZ = 0.0f;
|
||||||
|
this->actor.velocity.y = 0.0f;
|
||||||
|
this->actor.posRot.rot.y = this->actor.shape.rot.y;
|
||||||
|
}
|
||||||
|
#else
|
||||||
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Floormas/func_80A18310.s")
|
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Floormas/func_80A18310.s")
|
||||||
|
#endif
|
||||||
|
|
||||||
void func_80A18364(EnFloormas* this) {
|
void func_80A18364(EnFloormas* this) {
|
||||||
SkelAnime_ChangeAnimation(&this->skelAnime, &D_060019CC, 1.5f, 0, 20.0f, 2, -3.0f);
|
SkelAnime_ChangeAnimation(&this->skelAnime, &D_060019CC, 1.5f, 0, 20.0f, 2, -3.0f);
|
||||||
|
|
Loading…
Reference in New Issue