mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-31 23:58:56 -04:00
EnTest3 (Kafei) (#1013)
Co-authored-by: petrie911 <69443847+petrie911@users.noreply.github.com> Co-authored-by: Angie <angheloalf95@gmail.com>
This commit is contained in:
@@ -140,7 +140,7 @@ void func_800F0BB4(EnHy* enHy, PlayState* play, EnDoor* door, s16 arg3, s16 arg4
|
||||
EnHy_ChangeObjectAndAnim(enHy, play, (animIndex == 0) ? arg3 : arg4);
|
||||
enHy->skelAnime.baseTransl = *enHy->skelAnime.jointTable;
|
||||
enHy->skelAnime.prevTransl = *enHy->skelAnime.jointTable;
|
||||
enHy->skelAnime.moveFlags |= 3;
|
||||
enHy->skelAnime.moveFlags |= (ANIM_FLAG_UPDATEY | ANIM_FLAG_1);
|
||||
AnimationContext_SetMoveActor(play, &enHy->actor, &enHy->skelAnime, 1.0f);
|
||||
door->unk_1A1 = 1;
|
||||
door->animIndex = animIndex;
|
||||
|
||||
@@ -53,8 +53,8 @@ void func_80868B74(EnBox* this, PlayState* play);
|
||||
void EnBox_WaitOpen(EnBox* this, PlayState* play);
|
||||
void EnBox_Open(EnBox* this, PlayState* play);
|
||||
|
||||
void func_80867FBC(func_80867BDC_a0* arg0, PlayState* play, s32 arg2);
|
||||
void func_80867FE4(func_80867BDC_a0* arg0, PlayState* play);
|
||||
void func_80867FBC(struct_80867BDC_a0* arg0, PlayState* play, s32 arg2);
|
||||
void func_80867FE4(struct_80867BDC_a0* arg0, PlayState* play);
|
||||
|
||||
ActorInit En_Box_InitVars = {
|
||||
ACTOR_EN_BOX,
|
||||
@@ -87,7 +87,7 @@ void EnBox_SetupAction(EnBox* this, EnBoxActionFunc func) {
|
||||
this->actionFunc = func;
|
||||
}
|
||||
|
||||
void func_80867BDC(func_80867BDC_a0* arg0, PlayState* play, Vec3f* pos) {
|
||||
void func_80867BDC(struct_80867BDC_a0* arg0, PlayState* play, Vec3f* pos) {
|
||||
arg0->pos = *pos;
|
||||
arg0->unk_0C = NULL;
|
||||
arg0->unk_10 = NULL;
|
||||
@@ -96,7 +96,7 @@ void func_80867BDC(func_80867BDC_a0* arg0, PlayState* play, Vec3f* pos) {
|
||||
arg0->unk_1C = 0;
|
||||
}
|
||||
|
||||
void func_80867C14(func_80867BDC_a0* arg0, PlayState* play) {
|
||||
void func_80867C14(struct_80867BDC_a0* arg0, PlayState* play) {
|
||||
arg0->unk_18++;
|
||||
if (arg0->unk_18 > 85) {
|
||||
arg0->unk_18 = 85;
|
||||
@@ -115,7 +115,7 @@ void func_80867C14(func_80867BDC_a0* arg0, PlayState* play) {
|
||||
arg0->unk_14++;
|
||||
}
|
||||
|
||||
void func_80867C8C(func_80867BDC_a0* arg0, PlayState* play) {
|
||||
void func_80867C8C(struct_80867BDC_a0* arg0, PlayState* play) {
|
||||
s32 temp_s6 = arg0->unk_18 - arg0->unk_1C;
|
||||
s32 i;
|
||||
f32 pad;
|
||||
@@ -154,13 +154,13 @@ void func_80867C8C(func_80867BDC_a0* arg0, PlayState* play) {
|
||||
}
|
||||
}
|
||||
|
||||
void func_80867FBC(func_80867BDC_a0* arg0, PlayState* play, s32 arg2) {
|
||||
void func_80867FBC(struct_80867BDC_a0* arg0, PlayState* play, s32 arg2) {
|
||||
arg0->unk_0C = func_80867C14;
|
||||
arg0->unk_10 = func_80867C8C;
|
||||
arg0->unk_20 = arg2;
|
||||
}
|
||||
|
||||
void func_80867FE4(func_80867BDC_a0* arg0, PlayState* play) {
|
||||
void func_80867FE4(struct_80867BDC_a0* arg0, PlayState* play) {
|
||||
arg0->unk_0C = NULL;
|
||||
arg0->unk_10 = NULL;
|
||||
func_80867BDC(arg0, play, &arg0->pos);
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
#include "objects/object_box/object_box.h"
|
||||
|
||||
struct EnBox;
|
||||
struct func_80867BDC_a0;
|
||||
struct struct_80867BDC_a0;
|
||||
|
||||
typedef void (*EnBoxActionFunc)(struct EnBox*, PlayState*);
|
||||
typedef void (*EnBoxUnkFunc)(struct func_80867BDC_a0* arg0, PlayState* play);
|
||||
typedef void (*EnBoxUnkFunc)(struct struct_80867BDC_a0* arg0, PlayState* play);
|
||||
|
||||
typedef struct func_80867BDC_a0 {
|
||||
typedef struct struct_80867BDC_a0 {
|
||||
/* 0x00 */ Vec3f pos;
|
||||
/* 0x0C */ EnBoxUnkFunc unk_0C;
|
||||
/* 0x10 */ EnBoxUnkFunc unk_10;
|
||||
@@ -18,7 +18,7 @@ typedef struct func_80867BDC_a0 {
|
||||
/* 0x18 */ s32 unk_18;
|
||||
/* 0x1C */ s32 unk_1C;
|
||||
/* 0x20 */ s32 unk_20;
|
||||
} func_80867BDC_a0; //size 0x24
|
||||
} struct_80867BDC_a0; // size 0x24
|
||||
|
||||
typedef enum {
|
||||
/* 0 */ ENBOX_TYPE_BIG, // big
|
||||
@@ -59,7 +59,7 @@ typedef struct EnBox {
|
||||
/* 0x1F1 */ u8 type;
|
||||
/* 0x1F2 */ u8 iceSmokeTimer;
|
||||
/* 0x1F3 */ s8 unk_1F3;
|
||||
/* 0x1F4 */ func_80867BDC_a0 unk_1F4;
|
||||
/* 0x1F4 */ struct_80867BDC_a0 unk_1F4;
|
||||
/* 0x218 */ s16 cutsceneIdxA;
|
||||
/* 0x21A */ s16 cutsceneIdxB;
|
||||
/* 0x21C */ s32 getItemId;
|
||||
|
||||
@@ -26,6 +26,6 @@ typedef struct EnDemoheishi {
|
||||
/* 0x270 */ s16 isTalking;
|
||||
/* 0x272 */ s16 textIdIndex;
|
||||
/* 0x274 */ ColliderCylinder colliderCylinder;
|
||||
} EnDemoheishi; //size = 0x2C0
|
||||
} EnDemoheishi; // size = 0x2C0
|
||||
|
||||
#endif // Z_EN_DEMO_HEISHI_H
|
||||
|
||||
@@ -1105,7 +1105,7 @@ s32 func_8094FCC4(EnGm* this, PlayState* play, ScheduleOutput* scheduleOutput) {
|
||||
func_8094E054(this, play, 0);
|
||||
} else {
|
||||
func_8094E054(this, play, 9);
|
||||
this->skelAnime.moveFlags = 0x10;
|
||||
this->skelAnime.moveFlags = ANIM_FLAG_NOMOVE;
|
||||
}
|
||||
this->unk_3A4 |= 0x100;
|
||||
this->unk_3A4 |= 0x200;
|
||||
@@ -1181,7 +1181,7 @@ s32 func_8094FF04(EnGm* this, PlayState* play, ScheduleOutput* scheduleOutput) {
|
||||
} else {
|
||||
Math_Vec3f_Copy(&this->actor.world.pos, &sp30);
|
||||
func_8094E054(this, play, 9);
|
||||
this->skelAnime.moveFlags = 0x10;
|
||||
this->skelAnime.moveFlags = ANIM_FLAG_NOMOVE;
|
||||
}
|
||||
this->unk_400 = 0;
|
||||
this->unk_3A4 |= 0x100;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -7,11 +7,35 @@ struct EnTest3;
|
||||
|
||||
typedef void (*EnTest3ActionFunc)(struct EnTest3*, PlayState*);
|
||||
|
||||
#define KAFEI_GET_PARAM_1F(thisx) ((thisx)->params & 0x1F)
|
||||
#define KAFEI_GET_PARAM_1E0(thisx) (((thisx)->params >> 5) & 0xF)
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ u8 unk_0;
|
||||
/* 0x1 */ u8 unk_1;
|
||||
/* 0x2 */ u16 textId;
|
||||
} EnTest3_struct_D78; // size = 0x4
|
||||
|
||||
typedef struct EnTest3 {
|
||||
/* 0x000 */ Actor actor;
|
||||
/* 0x144 */ char unk_144[0x628];
|
||||
/* 0x76C */ EnTest3ActionFunc actionFunc;
|
||||
/* 0x770 */ char unk_770[0x648];
|
||||
/* 0x000 */ Player player;
|
||||
/* 0xD78 */ EnTest3_struct_D78* unk_D78;
|
||||
/* 0xD7C */ Path* unk_D7C;
|
||||
/* 0xD80 */ s32 unk_D80;
|
||||
/* 0xD84 */ f32 unk_D84;
|
||||
/* 0xD88 */ s8 unk_D88;
|
||||
/* 0xD89 */ u8 unk_D89;
|
||||
/* 0xD8A */ s16 unk_D8A;
|
||||
/* 0xD8C */ u8 unk_D8C;
|
||||
/* 0xD8D */ s8 unk_D8D;
|
||||
/* 0xD8E */ s16 subCamId;
|
||||
/* 0xD90 */ Player* unk_D90;
|
||||
/* 0xD94 */ EnTest3ActionFunc unk_D94;
|
||||
/* 0xD98 */ Vec3f unk_D98;
|
||||
/* 0xDA4 */ f32 unk_DA4;
|
||||
/* 0xDA8 */ s32 unk_DA8;
|
||||
/* 0xDAC */ s32 unk_DAC;
|
||||
/* 0xDB0 */ s32 unk_DB0;
|
||||
/* 0xDB4 */ s32 unk_DB4;
|
||||
} EnTest3; // size = 0xDB8
|
||||
|
||||
#endif // Z_EN_TEST3_H
|
||||
|
||||
Reference in New Issue
Block a user