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

Decompile ovl_En_Ganon_Mant (#912)

* Initial progress

* Improve the last NON_EQUIVALENT to NON_MATCHING

* 2 functions down to stack, migrate data

* 2 more matches, some other improvements

* Use Vtx over Vtx_tn

* Begin documenting

* Some names

* More docs

* Finish docs

* Remove VTX_TN

* Review suggestions

* Single line comments

Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>

* en_ganon_mant fully matched thanks to Roman

Co-authored-by: Thar0 <maximilianc64@gmail.com>
Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
This commit is contained in:
Tharo 2021-08-30 01:29:11 +01:00 committed by GitHub
parent e9f98f44c4
commit 3c2b198130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1188 additions and 1221 deletions

View file

@ -837,12 +837,12 @@ void func_80B2CC1C(GlobalContext* globalCtx, EnViewer* this) {
if (this->actor.params >> 8 == 5) {
if (1) {}
sGanonCape->unk_16B0 = BREG(54) / 10.0f;
sGanonCape->unk_16B4 = (BREG(60) + 25) / 100.0f;
sGanonCape->unk_16B8 = (BREG(55) - 45) / 10.0f;
sGanonCape->unk_16AC = -10000.0f;
sGanonCape->unk_16D0 = 0.0f;
sGanonCape->unk_16C8 = (BREG(67) - 10) / 10.0f;
sGanonCape->backPush = BREG(54) / 10.0f;
sGanonCape->backSwayMagnitude = (BREG(60) + 25) / 100.0f;
sGanonCape->sideSwayMagnitude = (BREG(55) - 45) / 10.0f;
sGanonCape->minY = -10000.0f;
sGanonCape->minDist = 0.0f;
sGanonCape->gravity = (BREG(67) - 10) / 10.0f;
vec1.x = KREG(16) - 13.0f;
vec1.y = KREG(17) + 3.0f + Math_SinS(D_80B2CFEC) * KREG(20);
vec1.z = KREG(18) - 10.0f;
@ -850,13 +850,13 @@ void func_80B2CC1C(GlobalContext* globalCtx, EnViewer* this) {
Matrix_RotateY((this->actor.shape.rot.y / (f32)0x8000) * M_PI, MTXMODE_NEW);
Matrix_MultVec3f(&vec1, &vec2);
sGanonCape->unk_16D4.x = D_80B2D448.x + vec2.x;
sGanonCape->unk_16D4.y = D_80B2D448.y + vec2.y;
sGanonCape->unk_16D4.z = D_80B2D448.z + vec2.z;
sGanonCape->rightForearmPos.x = D_80B2D448.x + vec2.x;
sGanonCape->rightForearmPos.y = D_80B2D448.y + vec2.y;
sGanonCape->rightForearmPos.z = D_80B2D448.z + vec2.z;
vec1.x = -(KREG(16) - 13.0f);
Matrix_MultVec3f(&vec1, &vec2);
sGanonCape->unk_16E0.x = D_80B2D448.x + vec2.x;
sGanonCape->unk_16E0.y = D_80B2D448.y + vec2.y;
sGanonCape->unk_16E0.z = D_80B2D448.z + vec2.z;
sGanonCape->leftForearmPos.x = D_80B2D448.x + vec2.x;
sGanonCape->leftForearmPos.y = D_80B2D448.y + vec2.y;
sGanonCape->leftForearmPos.z = D_80B2D448.z + vec2.z;
}
}