mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-05 05:40:19 +00:00
SkelAnime "Skeleton" Documentation Pass (#497)
* 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 * spooky scary skeletons * there's a skeleton inside of you * formatting * types * a matched function even * undo change * lol anime * ok how did I forget the .s * array fix * would you like to ride the bone train? * stuff * more renames * renames and cleanup * names suck * idea * using void** for now * stuff * look more type fixes Co-authored-by: fig <fig02srl@gmail.com>
This commit is contained in:
parent
629d1c8968
commit
4876610c75
268 changed files with 1941 additions and 2045 deletions
|
@ -250,7 +250,7 @@ void func_80A6B91C(EnHorseNormal* this, GlobalContext* globalCtx) {
|
|||
this->waypoint = 0;
|
||||
this->actor.speedXZ = 7.0f;
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, 0.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, 0.0f);
|
||||
}
|
||||
|
||||
void EnHorseNormal_FollowPath(EnHorseNormal* this, GlobalContext* globalCtx) {
|
||||
|
@ -274,7 +274,7 @@ void EnHorseNormal_FollowPath(EnHorseNormal* this, GlobalContext* globalCtx) {
|
|||
this->skin.skelAnime.animPlaybackSpeed = func_80A6B30C(this);
|
||||
if (SkelAnime_FrameUpdateMatrix(&this->skin.skelAnime)) {
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, 0.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, 0.0f);
|
||||
func_80A6BCEC(this);
|
||||
}
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ void func_80A6BC48(EnHorseNormal* this) {
|
|||
this->actor.speedXZ = 0.0f;
|
||||
this->unk_218 = 0.0f;
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, 0.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, 0.0f);
|
||||
}
|
||||
|
||||
void func_80A6BCEC(EnHorseNormal* this) {
|
||||
|
@ -403,7 +403,7 @@ void EnHorseNormal_Wander(EnHorseNormal* this, GlobalContext* globalCtx) {
|
|||
func_80A6BCEC(this);
|
||||
}
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, -3.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, -3.0f);
|
||||
} else {
|
||||
switch (D_80A6D510[this->animationIdx]) {
|
||||
case 0:
|
||||
|
@ -434,11 +434,10 @@ void EnHorseNormal_Wander(EnHorseNormal* this, GlobalContext* globalCtx) {
|
|||
if (phi_t0 != this->animationIdx) {
|
||||
this->animationIdx = phi_t0;
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2,
|
||||
-3.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, -3.0f);
|
||||
} else {
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, 0.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, 0.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -452,7 +451,7 @@ void func_80A6C4CC(EnHorseNormal* this) {
|
|||
this->actor.speedXZ = 0.0f;
|
||||
this->unk_218 = 0.0f;
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, 0.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, 0.0f);
|
||||
}
|
||||
|
||||
void EnHorseNormal_Wait(EnHorseNormal* this, GlobalContext* globalCtx) {
|
||||
|
@ -470,7 +469,7 @@ void EnHorseNormal_Wait(EnHorseNormal* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, 0.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -483,7 +482,7 @@ void func_80A6C6B0(EnHorseNormal* this) {
|
|||
this->actor.speedXZ = 0.0f;
|
||||
this->unk_218 = 0.0f;
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, 0.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, 0.0f);
|
||||
}
|
||||
|
||||
void EnHorseNormal_WaitClone(EnHorseNormal* this, GlobalContext* globalCtx) {
|
||||
|
@ -505,7 +504,7 @@ void EnHorseNormal_WaitClone(EnHorseNormal* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
SkelAnime_ChangeAnim(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
|
||||
SkelAnime_GetFrameCount(&sAnimations[this->animationIdx]->genericHeader), 2, 0.0f);
|
||||
SkelAnime_GetFrameCount(sAnimations[this->animationIdx]), 2, 0.0f);
|
||||
|
||||
this->unk_1E4 &= ~1;
|
||||
this->unk_1E4 &= ~2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue