mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-02 22:14:33 +00:00
En_Attack_Niw, En_Insect, z_skin_matrix, and z_skelanime matched (#493)
* Darkmeiro decompilation Bg_Gnd_Darkmeiro decompiled, matched, and documented. * give this a shot * fix conflict * one more try * could be useful * whoops * ZAP2 stuff * ZAP why * ZAP again * marginal improvement * matched functions. Also fixed a serious lack of static * format * more static * fixing a function prototype * skelanime OK * forgot .s * skin matrix matched * format
This commit is contained in:
parent
89f89ac5ea
commit
3aa76152c5
61 changed files with 209 additions and 1264 deletions
|
@ -29,9 +29,9 @@ void func_80A7D460(EnInsect* this, GlobalContext* globalCtx);
|
|||
extern SkeletonHeader D_04035590;
|
||||
extern AnimationHeader D_040341FC;
|
||||
|
||||
f32 D_80A7DEB0 = 0.0f;
|
||||
s16 D_80A7DEB4 = 0;
|
||||
s16 D_80A7DEB8 = 0;
|
||||
static f32 D_80A7DEB0 = 0.0f;
|
||||
static s16 D_80A7DEB4 = 0;
|
||||
static s16 D_80A7DEB8 = 0;
|
||||
|
||||
const ActorInit En_Insect_InitVars = {
|
||||
ACTOR_EN_INSECT,
|
||||
|
@ -58,7 +58,7 @@ static ColliderJntSphInit sColliderInit = {
|
|||
sColliderItemInit,
|
||||
};
|
||||
|
||||
u16 D_80A7DF10[] = { 0, 5, 7, 7 };
|
||||
static u16 D_80A7DF10[] = { 0, 5, 7, 7 };
|
||||
|
||||
static InitChainEntry sInitChain[] = {
|
||||
ICHAIN_VEC3F_DIV1000(scale, 10, ICHAIN_CONTINUE),
|
||||
|
@ -304,11 +304,10 @@ void func_80A7C818(EnInsect* this) {
|
|||
this->unk_314 |= 0x100;
|
||||
}
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
// regalloc, minor reordering
|
||||
void func_80A7C86C(EnInsect* this, GlobalContext* globalCtx) {
|
||||
s32 pad[2];
|
||||
s16 pad2;
|
||||
s32 pad1;
|
||||
s32 pad2;
|
||||
s16 pad3;
|
||||
s16 frames;
|
||||
s16 yaw;
|
||||
s16 sp38 = this->actor.xzDistFromLink < 40.0f;
|
||||
|
@ -332,10 +331,9 @@ void func_80A7C86C(EnInsect* this, GlobalContext* globalCtx) {
|
|||
yaw -= 0x2000;
|
||||
}
|
||||
}
|
||||
|
||||
if (globalCtx) {}
|
||||
Math_ApproxUpdateScaledS(&this->actor.posRot.rot.y, yaw, 2000);
|
||||
}
|
||||
|
||||
this->actor.shape.rot.y = this->actor.posRot.rot.y;
|
||||
this->skelAnime.animPlaybackSpeed = CLAMP(this->actor.speedXZ * 1.6f, 0.8f, 1.9f);
|
||||
SkelAnime_FrameUpdateMatrix(&this->skelAnime);
|
||||
|
@ -346,9 +344,6 @@ void func_80A7C86C(EnInsect* this, GlobalContext* globalCtx) {
|
|||
func_80A7CE60(this);
|
||||
}
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Insect/func_80A7C86C.s")
|
||||
#endif
|
||||
|
||||
void func_80A7CA64(EnInsect* this) {
|
||||
this->unk_31A = 200;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue