mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 06:24:30 +00:00
Match Environment_Update and EnMThunder_Draw (#982)
* Match Environment_Update * Match EnMThunder_Draw * Format * Capitalize hex
This commit is contained in:
parent
b18227e6ad
commit
3b7ed8d943
7 changed files with 91 additions and 3167 deletions
|
@ -316,7 +316,6 @@ void EnMThunder_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
(s32)(blueRadius * 800.0f));
|
||||
}
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
void EnMThunder_Draw(Actor* thisx, GlobalContext* globalCtx2) {
|
||||
static f32 D_80AA046C[] = { 0.1f, 0.15f, 0.2f, 0.25f, 0.3f, 0.25f, 0.2f, 0.15f };
|
||||
GlobalContext* globalCtx = globalCtx2;
|
||||
|
@ -324,9 +323,6 @@ void EnMThunder_Draw(Actor* thisx, GlobalContext* globalCtx2) {
|
|||
Player* player = GET_PLAYER(globalCtx);
|
||||
f32 phi_f14;
|
||||
s32 phi_t1;
|
||||
// u8 frames;
|
||||
|
||||
if (1) {}
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_m_thunder.c", 844);
|
||||
func_80093D84(globalCtx->state.gfxCtx);
|
||||
|
@ -334,21 +330,23 @@ void EnMThunder_Draw(Actor* thisx, GlobalContext* globalCtx2) {
|
|||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_m_thunder.c", 853),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
|
||||
if (((this->unk_1C6 & 0xFF) == 0) || ((this->unk_1C6) == 1)) {
|
||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0xFF - ((s8)(this->unk_1B4 * 30) & 0xFF), 0, 0x40, 0x20,
|
||||
1, 0xFF - ((s8)(this->unk_1B4 * 20) & 0xFF), 0, 8, 8));
|
||||
if (1) {}
|
||||
switch (this->unk_1C6) {
|
||||
case 0:
|
||||
case 1:
|
||||
gSPSegment(POLY_XLU_DISP++, 0x08,
|
||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 0xFF - ((u8)(s32)(this->unk_1B4 * 30) & 0xFF), 0,
|
||||
0x40, 0x20, 1, 0xFF - ((u8)(s32)(this->unk_1B4 * 20) & 0xFF), 0, 8, 8));
|
||||
break;
|
||||
}
|
||||
|
||||
switch (this->unk_1C6) {
|
||||
case 0:
|
||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0x80, 255, 255, 170, (u8)((u32)(this->unk_1B0 * 255) & 0xFF));
|
||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0x80, 255, 255, 170, (u8)(this->unk_1B0 * 255));
|
||||
gSPDisplayList(POLY_XLU_DISP++, gSpinAttack3DL);
|
||||
gSPDisplayList(POLY_XLU_DISP++, gSpinAttack4DL);
|
||||
break;
|
||||
case 1:
|
||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0x80, 170, 255, 255, (u8)((u32)(this->unk_1B0 * 255) & 0xFF));
|
||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0x80, 170, 255, 255, (u8)(this->unk_1B0 * 255));
|
||||
gSPDisplayList(POLY_XLU_DISP++, gSpinAttack1DL);
|
||||
gSPDisplayList(POLY_XLU_DISP++, gSpinAttack2DL);
|
||||
break;
|
||||
|
@ -389,25 +387,12 @@ void EnMThunder_Draw(Actor* thisx, GlobalContext* globalCtx2) {
|
|||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_m_thunder.c", 960),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
|
||||
// redGreen_14 = temp_s0->polyXlu.p;
|
||||
// temp_s0->polyXlu.p = redGreen_14 + 8;
|
||||
// redGreen_14->words.w0 = 0xDB060024;
|
||||
// temp_v1_3 = temp_t2->unk1DE4;
|
||||
// temp_v1_3 = globalCtx->gameplayFrames;
|
||||
// sp50 = redGreen_14;
|
||||
// sp50->words.w1 = Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, (temp_v1_3 * 5) & 0xFF, 0U, 0x20, 0x20, 1,
|
||||
// (temp_v1_3 * 0x14) & 0xFF, (temp_v1_3 * temp_t1) & 0xFF, 8, 8);
|
||||
// frames = globalCtx->gameplayFrames;
|
||||
gSPSegment(POLY_XLU_DISP++, 0x09,
|
||||
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, (globalCtx->gameplayFrames * 5) & 0xFF, 0, 0x20, 0x20, 1,
|
||||
(globalCtx->gameplayFrames * 0x14) & 0xFF,
|
||||
(u8)(globalCtx->gameplayFrames * phi_t1) & 0xFF, 8, 8));
|
||||
(globalCtx->gameplayFrames * 20) & 0xFF, (globalCtx->gameplayFrames * phi_t1) & 0xFF, 8,
|
||||
8));
|
||||
|
||||
gSPDisplayList(POLY_XLU_DISP++, gSpinAttackChargingDL);
|
||||
|
||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_en_m_thunder.c", 1031);
|
||||
}
|
||||
#else
|
||||
static f32 D_80AA046C[] = { 0.1f, 0.15f, 0.2f, 0.25f, 0.3f, 0.25f, 0.2f, 0.15f };
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_M_Thunder/EnMThunder_Draw.s")
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue