1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-06 06:10:21 +00:00

Decompiles ovl_En_St (#349)

* decompile and match En_St

* document ovl_En_St

* Implement OPEN_DISPS, and remove useless comments

* styling updates, inline some declarations

* PR suggestions as well as changing the BlureInit colors to u8 arrays over RGBA types

* remove pointer from EnSt_SetupAction
This commit is contained in:
krimtonz 2020-09-14 11:17:34 -05:00 committed by GitHub
parent 2fd56429eb
commit 4d9f83da1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 1084 additions and 2961 deletions

File diff suppressed because it is too large Load diff

View file

@ -6,9 +6,45 @@
struct EnSt;
typedef void (*EnStActionFunc)(struct EnSt* this, GlobalContext* globalCtx);
typedef struct EnSt {
/* 0x0000 */ Actor actor;
/* 0x014C */ char unk_14C[0x430];
/* 0x014C */ SkelAnime skelAnime;
/* 0x0190 */ EnStActionFunc actionFunc;
/* 0x0194 */ ColliderCylinder colCylinder[6];
/* 0x035C */ ColliderJntSph colSph;
/* 0x037C */ ColliderJntSphItem colSphItems[1];
/* 0x03BC */ s16 initalYaw;
/* 0x03BE */ s16 deathYawTarget;
/* 0x03C0 */ s16 groundBounces;
/* 0x03C2 */ s16 animFrames;
/* 0x03C4 */ s16 swayTimer;
/* 0x03C6 */ s16 setTargetYawTimer;
/* 0x03C8 */ s16 rotAwayTimer;
/* 0x03CA */ s16 rotTowardsTimer;
/* 0x03CC */ s16 takeDamageSpinTimer;
/* 0x03CE */ s16 stunTimer;
/* 0x03D0 */ s16 invulnerableTimer;
/* 0x03D2 */ s16 sfxTimer;
/* 0x03D4 */ s16 gaveDamageSpinTimer;
/* 0x03D6 */ s16 finishDeathTimer;
/* 0x03D8 */ s16 deathTimer;
/* 0x03DA */ s16 absPrevSwayAngle;
/* 0x03DC */ u8 playSwayFlag;
/* 0x03DD */ u8 teethR;
/* 0x03DE */ u8 teethG;
/* 0x03DF */ u8 teethB;
/* 0x03DD */ char unk_3E0[4];
/* 0x03E4 */ Vec3f unusedPos;
/* 0x03F0 */ Vec3f ceilingPos;
/* 0x03FC */ char unk_3FC[0x8];
/* 0x0404 */ s32 blureIdx;
/* 0x0408 */ f32 colliderScale;
/* 0x040C */ f32 groundYOffset;
/* 0x0410 */ s16 swayAngle;
/* 0x0412 */ Vec3s limbDrawTable[30];
/* 0x04C6 */ Vec3s transDrawTable[30];
} EnSt; // size = 0x057C
extern const ActorInit En_St_InitVars;