mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Decompile z_kankyo (#956)
* working * start color switch * progress * progress * progress on bgm func * progress * game over matched (except the rodata meme) * start update * progress * lightning docs done * progress * progress * progress * progress * progress * can compile at least * suns state, progress on kankyo_update * some new names * progress * progress * progress * new functions * cleanup * more matches * another match * now functional * format * better match * hugely improved update * cleanup/review * remove old changes * review2 * review3 * missed one * review4 * change asm filenames * update doorwarp1 * review5 * Kankyo_ -> Environment_ * format * merge master and format functions.h Co-authored-by: Jacob Young <jacobly0@users.noreply.github.com> Co-authored-by: fig <fig02srl@gmail.com> Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
This commit is contained in:
parent
50095d427c
commit
e51f50f0ff
139 changed files with 3478 additions and 6277 deletions
|
@ -41,8 +41,6 @@ void func_80B2B8FC(EnViewer* this, GlobalContext* globalCtx);
|
|||
void func_80B2BA38(EnViewer* this, GlobalContext* globalCtx);
|
||||
void func_80B2C130(EnViewer* this, GlobalContext* globalCtx);
|
||||
|
||||
extern Mtx D_01000000;
|
||||
|
||||
static u8 D_80B2CEC0 = false;
|
||||
|
||||
const ActorInit En_Viewer_InitVars = {
|
||||
|
@ -710,8 +708,8 @@ void EnViewer_GetCutsceneNextPos(EnViewer* this, GlobalContext* globalCtx) {
|
|||
endPos.x = globalCtx->csCtx.npcActions[0]->endPos.x;
|
||||
endPos.y = globalCtx->csCtx.npcActions[0]->endPos.y;
|
||||
endPos.z = globalCtx->csCtx.npcActions[0]->endPos.z;
|
||||
interpolated = func_8006F93C(globalCtx->csCtx.npcActions[0]->endFrame,
|
||||
globalCtx->csCtx.npcActions[0]->startFrame, globalCtx->csCtx.frames);
|
||||
interpolated = Environment_LerpWeight(globalCtx->csCtx.npcActions[0]->endFrame,
|
||||
globalCtx->csCtx.npcActions[0]->startFrame, globalCtx->csCtx.frames);
|
||||
this->actor.world.pos.x = ((endPos.x - startPos.x) * interpolated) + startPos.x;
|
||||
this->actor.world.pos.y = ((endPos.y - startPos.y) * interpolated) + startPos.y;
|
||||
this->actor.world.pos.z = ((endPos.z - startPos.z) * interpolated) + startPos.z;
|
||||
|
@ -725,8 +723,8 @@ void EnViewer_GetCutsceneNextPos(EnViewer* this, GlobalContext* globalCtx) {
|
|||
endPos.x = globalCtx->csCtx.npcActions[1]->endPos.x;
|
||||
endPos.y = globalCtx->csCtx.npcActions[1]->endPos.y;
|
||||
endPos.z = globalCtx->csCtx.npcActions[1]->endPos.z;
|
||||
interpolated = func_8006F93C(globalCtx->csCtx.npcActions[1]->endFrame,
|
||||
globalCtx->csCtx.npcActions[1]->startFrame, globalCtx->csCtx.frames);
|
||||
interpolated = Environment_LerpWeight(globalCtx->csCtx.npcActions[1]->endFrame,
|
||||
globalCtx->csCtx.npcActions[1]->startFrame, globalCtx->csCtx.frames);
|
||||
this->actor.world.pos.x = ((endPos.x - startPos.x) * interpolated) + startPos.x;
|
||||
this->actor.world.pos.y = ((endPos.y - startPos.y) * interpolated) + startPos.y;
|
||||
this->actor.world.pos.z = ((endPos.z - startPos.z) * interpolated) + startPos.z;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue