mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 06:24:30 +00:00
Rename "Scene Setup Index" to "Scene Layer" (#1300)
* setup -> layer * IS_CUTSCENE_LAYER * review * backtick * remove some more mentions of setup * alt header block * clarifying comment
This commit is contained in:
parent
d7ea63c75d
commit
afbc312024
51 changed files with 169 additions and 156 deletions
|
@ -252,7 +252,7 @@ void BgDyYoseizo_ChooseType(BgDyYoseizo* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if (givingReward) {
|
||||
if (gSaveContext.sceneSetupIndex < 4) {
|
||||
if (!IS_CUTSCENE_LAYER) {
|
||||
if (play->sceneNum != SCENE_DAIYOUSEI_IZUMI) {
|
||||
switch (this->fountainType) {
|
||||
case FAIRY_SPELL_FARORES_WIND:
|
||||
|
|
|
@ -228,7 +228,7 @@ void BgHidanCurtain_Update(Actor* thisx, PlayState* play2) {
|
|||
this->collider.dim.height = hcParams->height * riseProgress;
|
||||
CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base);
|
||||
CollisionCheck_SetOC(play, &play->colChkCtx, &this->collider.base);
|
||||
if (gSaveContext.sceneSetupIndex <= 3) {
|
||||
if (!IS_CUTSCENE_LAYER) {
|
||||
func_8002F974(&this->actor, NA_SE_EV_FIRE_PILLAR_S - SFX_FLAG);
|
||||
}
|
||||
} else if ((this->type == 1) && Flags_GetTreasure(play, this->treasureFlag)) {
|
||||
|
|
|
@ -235,7 +235,7 @@ void BgHidanFwbig_Update(Actor* thisx, PlayState* play) {
|
|||
this->actionFunc(this, play);
|
||||
|
||||
if ((this->actor.home.pos.y - 200.0f) < this->actor.world.pos.y) {
|
||||
if (gSaveContext.sceneSetupIndex < 4) {
|
||||
if (!IS_CUTSCENE_LAYER) {
|
||||
func_8002F974(&this->actor, NA_SE_EV_BURNING - SFX_FLAG);
|
||||
} else if ((s16)this->actor.world.pos.x == -513) {
|
||||
func_8002F974(&this->actor, NA_SE_EV_FLAME_OF_FIRE - SFX_FLAG);
|
||||
|
|
|
@ -64,20 +64,19 @@ void BgSpot00Hanebasi_Init(Actor* thisx, PlayState* play) {
|
|||
this->dyna.bgId = DynaPoly_SetBgActor(play, &play->colCtx.dyna, &this->dyna.actor, colHeader);
|
||||
|
||||
if (this->dyna.actor.params == DT_DRAWBRIDGE) {
|
||||
if (LINK_IS_ADULT && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if (LINK_IS_ADULT && !IS_CUTSCENE_LAYER) {
|
||||
Actor_Kill(&this->dyna.actor);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((gSaveContext.sceneSetupIndex != 6) &&
|
||||
((gSaveContext.sceneSetupIndex == 4) || (gSaveContext.sceneSetupIndex == 5) ||
|
||||
(!LINK_IS_ADULT && !IS_DAY))) {
|
||||
if ((gSaveContext.sceneLayer != 6) &&
|
||||
((gSaveContext.sceneLayer == 4) || (gSaveContext.sceneLayer == 5) || (!LINK_IS_ADULT && !IS_DAY))) {
|
||||
this->dyna.actor.shape.rot.x = -0x4000;
|
||||
} else {
|
||||
this->dyna.actor.shape.rot.x = 0;
|
||||
}
|
||||
|
||||
if (gSaveContext.sceneSetupIndex != 6) {
|
||||
if (gSaveContext.sceneLayer != 6) {
|
||||
if (CHECK_QUEST_ITEM(QUEST_KOKIRI_EMERALD) && CHECK_QUEST_ITEM(QUEST_GORON_RUBY) &&
|
||||
CHECK_QUEST_ITEM(QUEST_ZORA_SAPPHIRE) && !GET_EVENTCHKINF(EVENTCHKINF_80)) {
|
||||
this->dyna.actor.shape.rot.x = -0x4000;
|
||||
|
@ -138,11 +137,10 @@ void BgSpot00Hanebasi_Destroy(Actor* thisx, PlayState* play) {
|
|||
void BgSpot00Hanebasi_DrawbridgeWait(BgSpot00Hanebasi* this, PlayState* play) {
|
||||
BgSpot00Hanebasi* child = (BgSpot00Hanebasi*)this->dyna.actor.child;
|
||||
|
||||
if ((gSaveContext.sceneSetupIndex >= 4) || !CHECK_QUEST_ITEM(QUEST_KOKIRI_EMERALD) ||
|
||||
!CHECK_QUEST_ITEM(QUEST_GORON_RUBY) || !CHECK_QUEST_ITEM(QUEST_ZORA_SAPPHIRE) ||
|
||||
GET_EVENTCHKINF(EVENTCHKINF_80)) {
|
||||
if (IS_CUTSCENE_LAYER || !CHECK_QUEST_ITEM(QUEST_KOKIRI_EMERALD) || !CHECK_QUEST_ITEM(QUEST_GORON_RUBY) ||
|
||||
!CHECK_QUEST_ITEM(QUEST_ZORA_SAPPHIRE) || GET_EVENTCHKINF(EVENTCHKINF_80)) {
|
||||
if (this->dyna.actor.shape.rot.x != 0) {
|
||||
if (Flags_GetEnv(play, 0) || ((gSaveContext.sceneSetupIndex < 4) && IS_DAY)) {
|
||||
if (Flags_GetEnv(play, 0) || (!IS_CUTSCENE_LAYER && IS_DAY)) {
|
||||
this->actionFunc = BgSpot00Hanebasi_DrawbridgeRiseAndFall;
|
||||
this->destAngle = 0;
|
||||
child->destAngle = 0;
|
||||
|
@ -151,7 +149,7 @@ void BgSpot00Hanebasi_DrawbridgeWait(BgSpot00Hanebasi* this, PlayState* play) {
|
|||
|
||||
if (this) {} // required to match
|
||||
}
|
||||
if ((this->dyna.actor.shape.rot.x == 0) && (gSaveContext.sceneSetupIndex < 4) && !LINK_IS_ADULT && !IS_DAY) {
|
||||
if ((this->dyna.actor.shape.rot.x == 0) && !IS_CUTSCENE_LAYER && !LINK_IS_ADULT && !IS_DAY) {
|
||||
this->actionFunc = BgSpot00Hanebasi_DrawbridgeRiseAndFall;
|
||||
this->destAngle = -0x4000;
|
||||
child->destAngle = -0xFE0;
|
||||
|
@ -231,7 +229,7 @@ void BgSpot00Hanebasi_Update(Actor* thisx, PlayState* play) {
|
|||
}
|
||||
}
|
||||
|
||||
if (gSaveContext.sceneSetupIndex == 5) {
|
||||
if (gSaveContext.sceneLayer == 5) {
|
||||
u16 dayTime;
|
||||
s32 tmp;
|
||||
|
||||
|
@ -247,7 +245,7 @@ void BgSpot00Hanebasi_Update(Actor* thisx, PlayState* play) {
|
|||
|
||||
dayTime = gSaveContext.dayTime;
|
||||
|
||||
if ((dayTime > CLOCK_TIME(4, 0)) && (dayTime < CLOCK_TIME(4, 30)) && (gSaveContext.sceneSetupIndex == 5)) {
|
||||
if ((dayTime > CLOCK_TIME(4, 0)) && (dayTime < CLOCK_TIME(4, 30)) && (gSaveContext.sceneLayer == 5)) {
|
||||
gTimeSpeed = 0;
|
||||
}
|
||||
}
|
||||
|
@ -263,7 +261,7 @@ void BgSpot00Hanebasi_DrawTorches(Actor* thisx, PlayState* play2) {
|
|||
|
||||
Gfx_SetupDL_25Xlu(play->state.gfxCtx);
|
||||
|
||||
if (gSaveContext.sceneSetupIndex >= 4) {
|
||||
if (IS_CUTSCENE_LAYER) {
|
||||
sTorchFlameScale = 0.008f;
|
||||
} else {
|
||||
sTorchFlameScale = ((thisx->shape.rot.x * -1) - 0x2000) * (1.0f / 1024000.0f);
|
||||
|
@ -315,8 +313,8 @@ void BgSpot00Hanebasi_Draw(Actor* thisx, PlayState* play) {
|
|||
thisx->child->child->world.pos.y = newPos.y;
|
||||
thisx->child->child->world.pos.z = newPos.z;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex != 12) {
|
||||
if ((gSaveContext.sceneSetupIndex >= 4) || (!LINK_IS_ADULT && (thisx->shape.rot.x < -0x2000))) {
|
||||
if (gSaveContext.sceneLayer != 12) {
|
||||
if (IS_CUTSCENE_LAYER || (!LINK_IS_ADULT && (thisx->shape.rot.x < -0x2000))) {
|
||||
BgSpot00Hanebasi_DrawTorches(thisx, play);
|
||||
} else {
|
||||
sTorchFlameScale = 0.0f;
|
||||
|
|
|
@ -46,7 +46,7 @@ void BgSpot01Fusya_Init(Actor* thisx, PlayState* play) {
|
|||
this->unk_154 = 100.0f;
|
||||
this->unk_158 = 100.0f;
|
||||
this->unk_15C = 0.5f;
|
||||
if (gSaveContext.sceneSetupIndex < 4) {
|
||||
if (!IS_CUTSCENE_LAYER) {
|
||||
CLEAR_EVENTCHKINF(EVENTCHKINF_65);
|
||||
}
|
||||
BgSpot01Fusya_SetupAction(this, func_808AAA50);
|
||||
|
|
|
@ -300,16 +300,16 @@ void BgSpot01Idohashira_Init(Actor* thisx, PlayState* play) {
|
|||
CollisionHeader_GetVirtual(&gKakarikoWellArchCol, &colHeader);
|
||||
this->dyna.bgId = DynaPoly_SetBgActor(play, &play->colCtx.dyna, &this->dyna.actor, colHeader);
|
||||
|
||||
if (gSaveContext.sceneSetupIndex < 4) {
|
||||
if (!IS_CUTSCENE_LAYER) {
|
||||
if (GET_EVENTCHKINF(EVENTCHKINF_54) && LINK_IS_ADULT) {
|
||||
Actor_Kill(&this->dyna.actor);
|
||||
} else {
|
||||
this->action = 0;
|
||||
}
|
||||
} else if (gSaveContext.sceneSetupIndex == 4) {
|
||||
} else if (gSaveContext.sceneLayer == 4) {
|
||||
this->action = 1;
|
||||
this->dyna.actor.shape.yOffset = -(kREG(10) + 1100.0f);
|
||||
} else if (gSaveContext.sceneSetupIndex == 6) {
|
||||
} else if (gSaveContext.sceneLayer == 6) {
|
||||
this->action = 0;
|
||||
} else {
|
||||
Actor_Kill(&this->dyna.actor);
|
||||
|
|
|
@ -150,7 +150,7 @@ void BgSpot06Objects_Init(Actor* thisx, PlayState* play) {
|
|||
thisx->flags = ACTOR_FLAG_4 | ACTOR_FLAG_5;
|
||||
|
||||
if (LINK_IS_ADULT && !GET_EVENTCHKINF(EVENTCHKINF_69)) {
|
||||
if (gSaveContext.sceneSetupIndex < 4) {
|
||||
if (!IS_CUTSCENE_LAYER) {
|
||||
this->lakeHyliaWaterLevel = -681.0f;
|
||||
play->colCtx.colHeader->waterBoxes[LHWB_GERUDO_VALLEY_RIVER_LOWER].ySurface =
|
||||
WATER_LEVEL_RIVER_LOWERED;
|
||||
|
@ -445,7 +445,7 @@ void BgSpot06Objects_DrawLakeHyliaWater(BgSpot06Objects* this, PlayState* play)
|
|||
|
||||
gDPSetEnvColor(POLY_XLU_DISP++, 255, 255, 255, 128);
|
||||
|
||||
if ((this->lakeHyliaWaterLevel < -680.0f) && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if ((this->lakeHyliaWaterLevel < -680.0f) && !IS_CUTSCENE_LAYER) {
|
||||
gSPDisplayList(POLY_XLU_DISP++, gLakeHyliaLowWaterDL);
|
||||
} else {
|
||||
gSPDisplayList(POLY_XLU_DISP++, gLakeHyliaHighWaterDL);
|
||||
|
|
|
@ -59,7 +59,7 @@ static Gfx* sDLists[] = {
|
|||
s32 func_808B1AE0(BgSpot09Obj* this, PlayState* play) {
|
||||
s32 carpentersRescued;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex >= 4) {
|
||||
if (IS_CUTSCENE_LAYER) {
|
||||
return this->dyna.actor.params == 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ void BgTokiSwd_Init(Actor* thisx, PlayState* play) {
|
|||
this->actor.draw = NULL;
|
||||
}
|
||||
|
||||
if (gSaveContext.sceneSetupIndex == 5) {
|
||||
if (gSaveContext.sceneLayer == 5) {
|
||||
play->roomCtx.unk_74[0] = 0xFF;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ void BgTokiSwd_Destroy(Actor* thisx, PlayState* play) {
|
|||
}
|
||||
|
||||
void func_808BAF40(BgTokiSwd* this, PlayState* play) {
|
||||
if (!GET_EVENTCHKINF(EVENTCHKINF_4F) && (gSaveContext.sceneSetupIndex < 4) &&
|
||||
if (!GET_EVENTCHKINF(EVENTCHKINF_4F) && !IS_CUTSCENE_LAYER &&
|
||||
Actor_IsFacingAndNearPlayer(&this->actor, 800.0f, 0x7530) && !Play_InCsMode(play)) {
|
||||
SET_EVENTCHKINF(EVENTCHKINF_4F);
|
||||
play->csCtx.segment = D_808BBD90;
|
||||
|
@ -118,7 +118,7 @@ void func_808BAF40(BgTokiSwd* this, PlayState* play) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (gSaveContext.sceneSetupIndex == 5) {
|
||||
if (gSaveContext.sceneLayer == 5) {
|
||||
if (play->roomCtx.unk_74[0] > 0) {
|
||||
play->roomCtx.unk_74[0]--;
|
||||
} else {
|
||||
|
|
|
@ -70,9 +70,9 @@ void BgTreemouth_Init(Actor* thisx, PlayState* play) {
|
|||
ActorShape_Init(&thisx->shape, 0.0f, NULL, 0.0f);
|
||||
Actor_SetFocus(thisx, 50.0f);
|
||||
|
||||
if ((gSaveContext.sceneSetupIndex < 4) && !LINK_IS_ADULT) {
|
||||
if (!IS_CUTSCENE_LAYER && !LINK_IS_ADULT) {
|
||||
BgTreemouth_SetupAction(this, func_808BC8B8);
|
||||
} else if (LINK_IS_ADULT || (gSaveContext.sceneSetupIndex == 7)) {
|
||||
} else if (LINK_IS_ADULT || (gSaveContext.sceneLayer == 7)) {
|
||||
this->unk_168 = 0.0f;
|
||||
BgTreemouth_SetupAction(this, BgTreemouth_DoNothing);
|
||||
} else {
|
||||
|
@ -115,7 +115,7 @@ void func_808BC6F8(BgTreemouth* this, PlayState* play) {
|
|||
this->unk_168 = 1.0f;
|
||||
}
|
||||
|
||||
if ((gSaveContext.sceneSetupIndex == 6) && (play->csCtx.frames >= 0x2BD) && (play->state.frames % 8 == 0)) {
|
||||
if ((gSaveContext.sceneLayer == 6) && (play->csCtx.frames >= 0x2BD) && (play->state.frames % 8 == 0)) {
|
||||
sp34.x = (Rand_ZeroOne() * 1158.0f) + 3407.0f;
|
||||
sp34.y = 970.0f;
|
||||
sp34.z = (Rand_ZeroOne() * 2026.0f) + -2163.0f;
|
||||
|
@ -232,14 +232,14 @@ void BgTreemouth_Draw(Actor* thisx, PlayState* play) {
|
|||
|
||||
Gfx_SetupDL_25Opa(play->state.gfxCtx);
|
||||
|
||||
if ((gSaveContext.sceneSetupIndex < 4) || LINK_IS_ADULT) {
|
||||
if (!IS_CUTSCENE_LAYER || LINK_IS_ADULT) {
|
||||
if (GET_EVENTCHKINF(EVENTCHKINF_07)) {
|
||||
alpha = 2150;
|
||||
}
|
||||
} else { // neeeded to match
|
||||
}
|
||||
|
||||
if (gSaveContext.sceneSetupIndex == 6) {
|
||||
if (gSaveContext.sceneLayer == 6) {
|
||||
alpha = (play->roomCtx.unk_74[0] + 0x1F4);
|
||||
}
|
||||
|
||||
|
|
|
@ -194,7 +194,7 @@ void func_80969FB4(DemoDu* this, PlayState* play) {
|
|||
void DemoDu_CsFireMedallion_AdvanceTo01(DemoDu* this, PlayState* play) {
|
||||
s32 pad[2];
|
||||
|
||||
if ((gSaveContext.chamberCutsceneNum == 1) && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if ((gSaveContext.chamberCutsceneNum == 1) && !IS_CUTSCENE_LAYER) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
this->updateIndex = CS_FIREMEDALLION_SUBSCENE(1);
|
||||
|
|
|
@ -696,7 +696,7 @@ void DemoEffect_InitTimeWarp(DemoEffect* this, PlayState* play) {
|
|||
} else {
|
||||
Actor_SetScale(&this->actor, 84 * 0.001f);
|
||||
}
|
||||
} else if (gSaveContext.sceneSetupIndex == 5 || gSaveContext.sceneSetupIndex == 4 ||
|
||||
} else if (gSaveContext.sceneLayer == 5 || gSaveContext.sceneLayer == 4 ||
|
||||
(gSaveContext.entranceIndex == ENTR_TOKINOMA_4 && !GET_EVENTCHKINF(EVENTCHKINF_C9))) {
|
||||
SkelCurve_SetAnim(&this->skelCurve, &gTimeWarpAnim, 1.0f, 59.0f, 59.0f, 0.0f);
|
||||
SkelCurve_Update(play, &this->skelCurve);
|
||||
|
@ -852,7 +852,7 @@ void DemoEffect_UpdateTriforceSpot(DemoEffect* this, PlayState* play) {
|
|||
}
|
||||
}
|
||||
|
||||
if (gSaveContext.entranceIndex == ENTR_HIRAL_DEMO_0 && gSaveContext.sceneSetupIndex == 6 &&
|
||||
if (gSaveContext.entranceIndex == ENTR_HIRAL_DEMO_0 && gSaveContext.sceneLayer == 6 &&
|
||||
play->csCtx.frames == 143) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_RING_EXPLOSION);
|
||||
}
|
||||
|
@ -1068,11 +1068,11 @@ void DemoEffect_UpdateLightEffect(DemoEffect* this, PlayState* play) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (play->sceneNum == SCENE_SPOT04 && gSaveContext.sceneSetupIndex == 6 && play->csCtx.frames == 197) {
|
||||
if (play->sceneNum == SCENE_SPOT04 && gSaveContext.sceneLayer == 6 && play->csCtx.frames == 197) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WHITE_OUT);
|
||||
}
|
||||
|
||||
if (play->sceneNum == SCENE_SPOT16 && gSaveContext.sceneSetupIndex == 5) {
|
||||
if (play->sceneNum == SCENE_SPOT16 && gSaveContext.sceneLayer == 5) {
|
||||
if (!DemoEffect_CheckCsAction(this, play, 1)) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG);
|
||||
}
|
||||
|
@ -1083,7 +1083,7 @@ void DemoEffect_UpdateLightEffect(DemoEffect* this, PlayState* play) {
|
|||
if (0) {}
|
||||
}
|
||||
|
||||
if (play->sceneNum == SCENE_SPOT08 && gSaveContext.sceneSetupIndex == 4) {
|
||||
if (play->sceneNum == SCENE_SPOT08 && gSaveContext.sceneLayer == 4) {
|
||||
if (!DemoEffect_CheckCsAction(this, play, 1)) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG);
|
||||
}
|
||||
|
@ -1095,7 +1095,7 @@ void DemoEffect_UpdateLightEffect(DemoEffect* this, PlayState* play) {
|
|||
if (0) {}
|
||||
}
|
||||
|
||||
if (play->sceneNum == SCENE_TOKINOMA && gSaveContext.sceneSetupIndex == 14) {
|
||||
if (play->sceneNum == SCENE_TOKINOMA && gSaveContext.sceneLayer == 14) {
|
||||
if (1) {}
|
||||
|
||||
if (play->csCtx.npcActions[this->csActionId]->action == 2) {
|
||||
|
@ -1152,7 +1152,7 @@ void DemoEffect_UpdateGodLgtDin(DemoEffect* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if (gSaveContext.entranceIndex == ENTR_HIRAL_DEMO_0) {
|
||||
switch (gSaveContext.sceneSetupIndex) {
|
||||
switch (gSaveContext.sceneLayer) {
|
||||
case 4:
|
||||
if (play->csCtx.frames == 288) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS);
|
||||
|
@ -1207,7 +1207,7 @@ void DemoEffect_UpdateGodLgtNayru(DemoEffect* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if (gSaveContext.entranceIndex == ENTR_HIRAL_DEMO_0) {
|
||||
switch (gSaveContext.sceneSetupIndex) {
|
||||
switch (gSaveContext.sceneLayer) {
|
||||
case 4:
|
||||
if (play->csCtx.frames == 298) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS);
|
||||
|
@ -1228,7 +1228,7 @@ void DemoEffect_UpdateGodLgtNayru(DemoEffect* this, PlayState* play) {
|
|||
}
|
||||
}
|
||||
|
||||
if (gSaveContext.entranceIndex == ENTR_SPOT16_0 && gSaveContext.sceneSetupIndex == 4) {
|
||||
if (gSaveContext.entranceIndex == ENTR_SPOT16_0 && gSaveContext.sceneLayer == 4) {
|
||||
if (play->csCtx.frames == 72) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH);
|
||||
}
|
||||
|
@ -1267,7 +1267,7 @@ void DemoEffect_UpdateGodLgtFarore(DemoEffect* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if (gSaveContext.entranceIndex == ENTR_HIRAL_DEMO_0) {
|
||||
switch (gSaveContext.sceneSetupIndex) {
|
||||
switch (gSaveContext.sceneLayer) {
|
||||
case 4:
|
||||
if (play->csCtx.frames == 315) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS);
|
||||
|
@ -1802,7 +1802,7 @@ void DemoEffect_DrawGodLgt(Actor* thisx, PlayState* play) {
|
|||
|
||||
if (!DemoEffect_CheckCsAction(this, play, 2)) {
|
||||
if (gSaveContext.entranceIndex == ENTR_HIRAL_DEMO_0) {
|
||||
if (gSaveContext.sceneSetupIndex == 4) {
|
||||
if (gSaveContext.sceneLayer == 4) {
|
||||
if (play->csCtx.frames <= 680) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_EV_GOD_FLYING - SFX_FLAG);
|
||||
}
|
||||
|
@ -2071,7 +2071,7 @@ void DemoEffect_DrawTimeWarp(Actor* thisx, PlayState* play) {
|
|||
u8 effectType = (this->actor.params & 0x00FF);
|
||||
|
||||
if (effectType == DEMO_EFFECT_TIMEWARP_TIMEBLOCK_LARGE || effectType == DEMO_EFFECT_TIMEWARP_TIMEBLOCK_SMALL ||
|
||||
Flags_GetEnv(play, 1) || gSaveContext.sceneSetupIndex >= 4 || gSaveContext.entranceIndex == ENTR_TOKINOMA_4) {
|
||||
Flags_GetEnv(play, 1) || IS_CUTSCENE_LAYER || gSaveContext.entranceIndex == ENTR_TOKINOMA_4) {
|
||||
OPEN_DISPS(gfxCtx, "../z_demo_effect.c", 3201);
|
||||
|
||||
POLY_XLU_DISP = Gfx_SetupDL(POLY_XLU_DISP, SETUPDL_25);
|
||||
|
|
|
@ -202,8 +202,8 @@ void DemoGj_Explode(DemoGj* this, PlayState* play, Vec3f* initialPos, Vec3f* dir
|
|||
DemoGj_PlayExplosionSfx(this, play);
|
||||
}
|
||||
|
||||
s32 DemoGj_IsSceneInvalid(void) {
|
||||
if (gSaveContext.sceneSetupIndex < 4) {
|
||||
s32 DemoGj_IsCutsceneLayer(void) {
|
||||
if (!IS_CUTSCENE_LAYER) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -252,7 +252,7 @@ void DemoGj_InitCommon(DemoGj* this, PlayState* play, CollisionHeader* header) {
|
|||
|
||||
// TODO: find a better name
|
||||
s32 DemoGj_InitSetIndices(DemoGj* this, PlayState* play, s32 updateMode, s32 drawConfig, CollisionHeader* header) {
|
||||
if (!DemoGj_IsSceneInvalid()) {
|
||||
if (!DemoGj_IsCutsceneLayer()) {
|
||||
this->updateMode = updateMode;
|
||||
this->drawConfig = drawConfig;
|
||||
DemoGj_InitCommon(this, play, header);
|
||||
|
|
|
@ -435,10 +435,10 @@ void func_8097ED64(DemoGt* this, PlayState* play, s32 actionIdx) {
|
|||
func_8097E824(this, actionIdx);
|
||||
}
|
||||
|
||||
u8 func_8097ED94(void) {
|
||||
u8 DemoGt_IsCutsceneLayer(void) {
|
||||
if (kREG(2) != 0) {
|
||||
return true;
|
||||
} else if (gSaveContext.sceneSetupIndex < 4) {
|
||||
} else if (!IS_CUTSCENE_LAYER) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
@ -463,8 +463,7 @@ void func_8097EDD8(DemoGt* this, PlayState* play, CollisionHeader* collision) {
|
|||
}
|
||||
|
||||
u8 func_8097EE44(DemoGt* this, PlayState* play, s32 updateMode, s32 drawConfig, CollisionHeader* colHeader) {
|
||||
|
||||
if (func_8097ED94()) {
|
||||
if (DemoGt_IsCutsceneLayer()) {
|
||||
this->updateMode = updateMode;
|
||||
this->drawConfig = drawConfig;
|
||||
func_8097EDD8(this, play, colHeader);
|
||||
|
|
|
@ -325,7 +325,7 @@ void func_80985430(DemoIm* this, PlayState* play) {
|
|||
void func_8098544C(DemoIm* this, PlayState* play) {
|
||||
s32 pad[2];
|
||||
|
||||
if ((gSaveContext.chamberCutsceneNum == 4) && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if ((gSaveContext.chamberCutsceneNum == 4) && !IS_CUTSCENE_LAYER) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
this->action = 1;
|
||||
|
@ -923,7 +923,7 @@ void func_80986CFC(DemoIm* this, PlayState* play) {
|
|||
}
|
||||
|
||||
void func_80986D40(DemoIm* this, PlayState* play) {
|
||||
if (gSaveContext.sceneSetupIndex == 6) {
|
||||
if (gSaveContext.sceneLayer == 6) {
|
||||
this->action = 19;
|
||||
this->drawConfig = 1;
|
||||
} else if (GET_EVENTCHKINF(EVENTCHKINF_80)) {
|
||||
|
|
|
@ -712,7 +712,7 @@ void DemoKankyo_DrawLightPlane(Actor* thisx, PlayState* play) {
|
|||
|
||||
OPEN_DISPS(play->state.gfxCtx, "../z_demo_kankyo.c", 1514);
|
||||
|
||||
if (play->csCtx.state == CS_STATE_IDLE || gSaveContext.sceneSetupIndex >= 4) {
|
||||
if (play->csCtx.state == CS_STATE_IDLE || IS_CUTSCENE_LAYER) {
|
||||
Gfx_SetupDL_25Xlu(play->state.gfxCtx);
|
||||
|
||||
gSPSegment(POLY_XLU_DISP++, 0x08, Gfx_TexScroll(play->state.gfxCtx, 0, play->state.frames & 0x7F, 64, 32));
|
||||
|
|
|
@ -249,7 +249,7 @@ void func_8098E960(DemoSa* this, PlayState* play) {
|
|||
s32 pad[2];
|
||||
Player* player;
|
||||
|
||||
if ((gSaveContext.chamberCutsceneNum == 0) && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if ((gSaveContext.chamberCutsceneNum == 0) && !IS_CUTSCENE_LAYER) {
|
||||
player = GET_PLAYER(play);
|
||||
this->action = 1;
|
||||
play->csCtx.segment = D_8099010C;
|
||||
|
|
|
@ -164,7 +164,7 @@ void DoorWarp1_SetupWarp(DoorWarp1* this, PlayState* play) {
|
|||
if ((!(gSaveContext.entranceIndex == ENTR_SPOT05_3 || gSaveContext.entranceIndex == ENTR_SPOT17_5 ||
|
||||
gSaveContext.entranceIndex == ENTR_SPOT06_9 || gSaveContext.entranceIndex == ENTR_SPOT11_8 ||
|
||||
gSaveContext.entranceIndex == ENTR_SPOT02_8) &&
|
||||
gSaveContext.sceneSetupIndex < 4) ||
|
||||
!IS_CUTSCENE_LAYER) ||
|
||||
(GET_PLAYER(play)->actor.params & 0xF00) != 0x200) {
|
||||
Actor_Kill(&this->actor);
|
||||
}
|
||||
|
|
|
@ -168,9 +168,9 @@ void EnDoor_SetupType(EnDoor* this, PlayState* play) {
|
|||
this->actor.textId = (this->actor.params & 0x3F) + 0x0200;
|
||||
if (this->actor.textId == 0x0229 && !GET_EVENTCHKINF(EVENTCHKINF_14)) {
|
||||
// Talon's house door. If Talon has not been woken up at Hyrule Castle
|
||||
// this door should be openable at any time of day. Note that there is no
|
||||
// check for time of day as the scene setup for Lon Lon merely initializes
|
||||
// the door with a different text id between day and night setups
|
||||
// this door should be openable at any time of day.
|
||||
// Note that there is no check for time of day, as the night layers for Lon Lon
|
||||
// have a door with a different text ID.
|
||||
doorType = DOOR_SCENEEXIT;
|
||||
} else {
|
||||
this->actionFunc = EnDoor_WaitForCheck;
|
||||
|
|
|
@ -862,7 +862,7 @@ void func_80A03CF8(EnElf* this, PlayState* play) {
|
|||
func_80A02C98(this, &nextPos, 0.2f);
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_LINK_HOME) && (gSaveContext.sceneSetupIndex == 4)) {
|
||||
if ((play->sceneNum == SCENE_LINK_HOME) && (gSaveContext.sceneLayer == 4)) {
|
||||
// play dash sound effect as Navi enters Links house in the intro
|
||||
if (1) {}
|
||||
if (play->csCtx.frames == 55) {
|
||||
|
|
|
@ -75,8 +75,8 @@ void EnHoll_SetupAction(EnHoll* this, EnHollActionFunc func) {
|
|||
this->actionFunc = func;
|
||||
}
|
||||
|
||||
s32 EnHoll_IsKokiriSetup8(void) {
|
||||
return gSaveContext.entranceIndex == ENTR_SPOT04_0 && gSaveContext.sceneSetupIndex == 8;
|
||||
s32 EnHoll_IsKokiriLayer8(void) {
|
||||
return gSaveContext.entranceIndex == ENTR_SPOT04_0 && gSaveContext.sceneLayer == 8;
|
||||
}
|
||||
|
||||
void EnHoll_ChooseAction(EnHoll* this) {
|
||||
|
@ -164,7 +164,7 @@ void func_80A59014(EnHoll* this, PlayState* play) {
|
|||
func_8002DBD0(&this->actor, &vec, (useViewEye) ? &play->view.eye : &player->actor.world.pos);
|
||||
planeHalfWidth = (((this->actor.params >> 6) & 7) == 6) ? PLANE_HALFWIDTH : PLANE_HALFWIDTH_2;
|
||||
|
||||
temp = EnHoll_IsKokiriSetup8();
|
||||
temp = EnHoll_IsKokiriLayer8();
|
||||
if (temp || (PLANE_Y_MIN < vec.y && vec.y < PLANE_Y_MAX && fabsf(vec.x) < planeHalfWidth &&
|
||||
(absZ = fabsf(vec.z), 100.0f > absZ && absZ > 50.0f))) {
|
||||
s32 transitionActorIdx = (u16)this->actor.params >> 0xA;
|
||||
|
@ -304,7 +304,7 @@ void func_80A59618(EnHoll* this, PlayState* play) {
|
|||
}
|
||||
|
||||
void EnHoll_NextAction(EnHoll* this, PlayState* play) {
|
||||
if (!EnHoll_IsKokiriSetup8() && play->roomCtx.status == 0) {
|
||||
if (!EnHoll_IsKokiriLayer8() && play->roomCtx.status == 0) {
|
||||
func_80097534(play, &play->roomCtx);
|
||||
if (play->unk_11E18 == 0) {
|
||||
this->unk_14F = 0;
|
||||
|
|
|
@ -828,7 +828,7 @@ void EnHorse_Init(Actor* thisx, PlayState* play2) {
|
|||
this->actor.focus.pos.y += 70.0f;
|
||||
this->playerControlled = false;
|
||||
|
||||
if ((play->sceneNum == SCENE_SPOT20) && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if ((play->sceneNum == SCENE_SPOT20) && !IS_CUTSCENE_LAYER) {
|
||||
if (this->type == HORSE_HNI) {
|
||||
if (this->actor.world.rot.z == 0 || !IS_DAY) {
|
||||
Actor_Kill(&this->actor);
|
||||
|
@ -3598,7 +3598,7 @@ void EnHorse_Update(Actor* thisx, PlayState* play2) {
|
|||
this->cyl1.base.atFlags &= ~AT_ON;
|
||||
}
|
||||
|
||||
if (gSaveContext.entranceIndex != 343 || gSaveContext.sceneSetupIndex != 9) {
|
||||
if (gSaveContext.entranceIndex != 343 || gSaveContext.sceneLayer != 9) {
|
||||
if (this->dustFlags & 1) {
|
||||
this->dustFlags &= ~1;
|
||||
func_800287AC(play, &this->frontRightHoof, &dustVel, &dustAcc, EnHorse_RandInt(100) + 200,
|
||||
|
|
|
@ -162,7 +162,7 @@ void EnHorseLinkChild_Init(Actor* thisx, PlayState* play) {
|
|||
this->unk_1F0 = 0;
|
||||
this->eyeTexIndex = 0;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex > 3) {
|
||||
if (IS_CUTSCENE_LAYER) {
|
||||
func_80A69EC0(this);
|
||||
} else if (play->sceneNum == SCENE_SPOT20) {
|
||||
if (!Flags_GetEventChkInf(EVENTCHKINF_14)) {
|
||||
|
|
|
@ -147,7 +147,7 @@ void func_80A89A6C(EnJsjutan* this, PlayState* play) {
|
|||
i = 1;
|
||||
|
||||
// Credits scene. The magic carpet man is friends with the bean guy and the lakeside professor.
|
||||
if ((gSaveContext.entranceIndex == ENTR_SPOT20_0) && (gSaveContext.sceneSetupIndex == 8)) {
|
||||
if ((gSaveContext.entranceIndex == ENTR_SPOT20_0) && (gSaveContext.sceneLayer == 8)) {
|
||||
isInCreditsScene = true;
|
||||
|
||||
actorProfessor = play->actorCtx.actorLists[ACTORCAT_NPC].head;
|
||||
|
|
|
@ -181,7 +181,7 @@ s16 func_80AA0778(PlayState* play, Actor* thisx) {
|
|||
}
|
||||
|
||||
s32 func_80AA08C4(EnMa1* this, PlayState* play) {
|
||||
if ((this->actor.shape.rot.z == 3) && (gSaveContext.sceneSetupIndex == 5)) {
|
||||
if ((this->actor.shape.rot.z == 3) && (gSaveContext.sceneLayer == 5)) {
|
||||
return 1;
|
||||
}
|
||||
if (!LINK_IS_CHILD) {
|
||||
|
|
|
@ -168,7 +168,7 @@ void EnMs_Update(Actor* thisx, PlayState* play) {
|
|||
SkelAnime_Update(&this->skelAnime);
|
||||
this->actionFunc(this, play);
|
||||
|
||||
if (gSaveContext.entranceIndex == ENTR_SPOT20_0 && gSaveContext.sceneSetupIndex == 8) { // ride carpet if in credits
|
||||
if (gSaveContext.entranceIndex == ENTR_SPOT20_0 && gSaveContext.sceneLayer == 8) { // ride carpet if in credits
|
||||
Actor_MoveForward(&this->actor);
|
||||
osSyncPrintf("OOOHHHHHH %f\n", this->actor.velocity.y);
|
||||
Actor_UpdateBgCheckInfo(play, &this->actor, 0.0f, 0.0f, 0.0f, UPDBGCHECKINFO_FLAG_2);
|
||||
|
|
|
@ -333,7 +333,7 @@ void EnNb_SetupChamberCsImpl(EnNb* this, PlayState* play) {
|
|||
s32 pad[2];
|
||||
Player* player;
|
||||
|
||||
if ((gSaveContext.chamberCutsceneNum == 3) && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if ((gSaveContext.chamberCutsceneNum == 3) && !IS_CUTSCENE_LAYER) {
|
||||
player = GET_PLAYER(play);
|
||||
this->action = NB_CHAMBER_UNDERGROUND;
|
||||
play->csCtx.segment = &D_80AB431C;
|
||||
|
|
|
@ -118,7 +118,7 @@ void func_80AE7590(EnRl* this, PlayState* play) {
|
|||
Vec3f pos;
|
||||
s16 sceneNum = play->sceneNum;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex == 4 && sceneNum == SCENE_KENJYANOMA && play->csCtx.state != CS_STATE_IDLE &&
|
||||
if (gSaveContext.sceneLayer == 4 && sceneNum == SCENE_KENJYANOMA && play->csCtx.state != CS_STATE_IDLE &&
|
||||
play->csCtx.npcActions[6] != NULL && play->csCtx.npcActions[6]->action == 2 && !this->lightMedallionGiven) {
|
||||
player = GET_PLAYER(play);
|
||||
pos.x = player->actor.world.pos.x;
|
||||
|
|
|
@ -2003,7 +2003,7 @@ void func_80AEF890(EnRu1* this, PlayState* play) {
|
|||
s32 pad[2];
|
||||
s8 curRoomNum;
|
||||
|
||||
if ((gSaveContext.sceneSetupIndex < 4) && (EnRu1_IsCsStateIdle(play))) {
|
||||
if (!IS_CUTSCENE_LAYER && (EnRu1_IsCsStateIdle(play))) {
|
||||
curRoomNum = play->roomCtx.curRoom.num;
|
||||
SET_INFTABLE(INFTABLE_145);
|
||||
Flags_SetSwitch(play, func_80AEADE0(this));
|
||||
|
|
|
@ -265,7 +265,7 @@ void func_80AF2AB4(EnRu2* this, PlayState* play) {
|
|||
Player* player;
|
||||
s16 temp;
|
||||
|
||||
if ((gSaveContext.chamberCutsceneNum == 2) && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if ((gSaveContext.chamberCutsceneNum == 2) && !IS_CUTSCENE_LAYER) {
|
||||
player = GET_PLAYER(play);
|
||||
this->action = 1;
|
||||
play->csCtx.segment = &D_80AF411C;
|
||||
|
|
|
@ -124,7 +124,7 @@ void EnTr_Destroy(Actor* thisx, PlayState* play) {
|
|||
void EnTr_CrySpellcast(EnTr* this, PlayState* play) {
|
||||
if (this->timer == 11) {
|
||||
// Both cry in the title screen cutscene, but only Kotake in the in-game cutscene
|
||||
if ((this->actor.params != TR_KOUME) || (gSaveContext.sceneSetupIndex == 6)) {
|
||||
if ((this->actor.params != TR_KOUME) || (gSaveContext.sceneLayer == 6)) {
|
||||
Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_SHOOT_VOICE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale,
|
||||
&gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
|
||||
}
|
||||
|
|
|
@ -198,7 +198,7 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) {
|
|||
s32 animationEnded;
|
||||
|
||||
if (type == ENVIEWER_TYPE_2_ZELDA) {
|
||||
if (gSaveContext.sceneSetupIndex == 5) {
|
||||
if (gSaveContext.sceneLayer == 5) {
|
||||
csFrames = play->csCtx.frames;
|
||||
if (csFrames == 792) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_VO_Z0_SURPRISE);
|
||||
|
@ -212,7 +212,7 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) {
|
|||
this->actor.uncullZoneScale = 10000.0f;
|
||||
this->actor.uncullZoneDownward = 10000.0f;
|
||||
} else if (type == ENVIEWER_TYPE_3_GANONDORF) {
|
||||
if (gSaveContext.sceneSetupIndex == 4) {
|
||||
if (gSaveContext.sceneLayer == 4) {
|
||||
switch (play->csCtx.frames) {
|
||||
case 20:
|
||||
case 59:
|
||||
|
@ -230,7 +230,7 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (gSaveContext.sceneSetupIndex == 5) {
|
||||
if (gSaveContext.sceneLayer == 5) {
|
||||
if (play->csCtx.frames == 1508) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_ST_LAUGH);
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) {
|
|||
&gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
|
||||
}
|
||||
} else if (type == ENVIEWER_TYPE_6_HORSE_GANONDORF) {
|
||||
if (gSaveContext.sceneSetupIndex == 5 || gSaveContext.sceneSetupIndex == 10) {
|
||||
if (gSaveContext.sceneLayer == 5 || gSaveContext.sceneLayer == 10) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_RUN_LEVEL - SFX_FLAG);
|
||||
}
|
||||
} else if (type == ENVIEWER_TYPE_4_HORSE_GANONDORF) {
|
||||
|
@ -351,7 +351,7 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) {
|
|||
}
|
||||
}
|
||||
} else if (type == ENVIEWER_TYPE_1_IMPA) {
|
||||
if (gSaveContext.sceneSetupIndex == 5) {
|
||||
if (gSaveContext.sceneLayer == 5) {
|
||||
if (play->csCtx.frames == 845) {
|
||||
Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_ITEM_OCARINA, 4.0f, 81.0f, 2600.0f, 0, 0,
|
||||
0, 0);
|
||||
|
@ -487,7 +487,7 @@ void EnViewer_Update(Actor* thisx, PlayState* play) {
|
|||
|
||||
s32 EnViewer_Ganondorf3OverrideLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3s* rot,
|
||||
void* thisx) {
|
||||
if (gSaveContext.sceneSetupIndex == 4) {
|
||||
if (gSaveContext.sceneLayer == 4) {
|
||||
if (play->csCtx.frames >= 400) {
|
||||
if (limbIndex == 5) {
|
||||
*dList = object_gndd_DL_00E1A8;
|
||||
|
@ -530,7 +530,7 @@ void EnViewer_DrawGanondorf(EnViewer* this, PlayState* play) {
|
|||
type = this->actor.params >> 8;
|
||||
if (type == ENVIEWER_TYPE_3_GANONDORF || type == ENVIEWER_TYPE_5_GANONDORF || type == ENVIEWER_TYPE_7_GANONDORF ||
|
||||
type == ENVIEWER_TYPE_8_GANONDORF) {
|
||||
if (gSaveContext.sceneSetupIndex != 4) {
|
||||
if (gSaveContext.sceneLayer != 4) {
|
||||
frames = 149;
|
||||
}
|
||||
|
||||
|
@ -642,7 +642,7 @@ void EnViewer_DrawZelda(EnViewer* this, PlayState* play) {
|
|||
gSPSegment(POLY_OPA_DISP++, 0x09, SEGMENTED_TO_VIRTUAL(gChildZeldaEyeOutTex));
|
||||
}
|
||||
|
||||
if (gSaveContext.sceneSetupIndex == 6) {
|
||||
if (gSaveContext.sceneLayer == 6) {
|
||||
gSPSegment(POLY_OPA_DISP++, 0x0A, SEGMENTED_TO_VIRTUAL(gChildZeldaMouthSurprisedTex));
|
||||
} else {
|
||||
if (play->csCtx.frames < 758) {
|
||||
|
|
|
@ -399,7 +399,7 @@ void EnXc_SetLandingSFX(EnXc* this, PlayState* play) {
|
|||
u32 sfxId;
|
||||
s16 sceneNum = play->sceneNum;
|
||||
|
||||
if ((gSaveContext.sceneSetupIndex != 4) || (sceneNum != SCENE_SPOT11)) {
|
||||
if ((gSaveContext.sceneLayer != 4) || (sceneNum != SCENE_SPOT11)) {
|
||||
if (Animation_OnFrame(&this->skelAnime, 11.0f)) {
|
||||
sfxId = SFX_FLAG;
|
||||
sfxId += SurfaceType_GetSfx(&play->colCtx, this->actor.floorPoly, this->actor.floorBgId);
|
||||
|
@ -412,7 +412,7 @@ void EnXc_SetColossusAppearSFX(EnXc* this, PlayState* play) {
|
|||
static Vec3f sXyzDist;
|
||||
s16 sceneNum;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex == 4) {
|
||||
if (gSaveContext.sceneLayer == 4) {
|
||||
sceneNum = play->sceneNum;
|
||||
if (sceneNum == SCENE_SPOT11) {
|
||||
CutsceneContext* csCtx = &play->csCtx;
|
||||
|
@ -438,7 +438,7 @@ void EnXc_SetColossusAppearSFX(EnXc* this, PlayState* play) {
|
|||
void func_80B3D118(PlayState* play) {
|
||||
s16 sceneNum;
|
||||
|
||||
if ((gSaveContext.sceneSetupIndex != 4) || (sceneNum = play->sceneNum, sceneNum != SCENE_SPOT11)) {
|
||||
if ((gSaveContext.sceneLayer != 4) || (sceneNum = play->sceneNum, sceneNum != SCENE_SPOT11)) {
|
||||
func_800788CC(NA_SE_PL_SKIP);
|
||||
}
|
||||
}
|
||||
|
@ -446,7 +446,7 @@ void func_80B3D118(PlayState* play) {
|
|||
static Vec3f D_80B42DA0;
|
||||
|
||||
void EnXc_SetColossusWindSFX(PlayState* play) {
|
||||
if (gSaveContext.sceneSetupIndex == 4) {
|
||||
if (gSaveContext.sceneLayer == 4) {
|
||||
static s32 D_80B41D90 = 0;
|
||||
static Vec3f sPos = { 0.0f, 0.0f, 0.0f };
|
||||
static f32 sMaxSpeed = 0.0f;
|
||||
|
|
|
@ -105,7 +105,7 @@ void EnYabusameMark_Init(Actor* thisx, PlayState* play) {
|
|||
Collider_SetQuad(play, &this->collider, &this->actor, &sQuadInit);
|
||||
this->worldPos = this->actor.world.pos;
|
||||
this->actor.flags |= ACTOR_FLAG_4;
|
||||
if (gSaveContext.sceneSetupIndex != 4) {
|
||||
if (gSaveContext.sceneLayer != 4) {
|
||||
Actor_Kill(&this->actor);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ void EnZl1_Init(Actor* thisx, PlayState* play) {
|
|||
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 24.0f);
|
||||
this->actor.targetMode = 0;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex >= 4) {
|
||||
if (IS_CUTSCENE_LAYER) {
|
||||
frameCount = Animation_GetLastFrame(&gChildZelda1Anim_00438);
|
||||
Animation_Change(&this->skelAnime, &gChildZelda1Anim_00438, 1.0f, 0.0f, frameCount, ANIMMODE_LOOP, 0.0f);
|
||||
this->unk_1E6 = 0;
|
||||
|
|
|
@ -371,7 +371,7 @@ void EnZl4_Init(Actor* thisx, PlayState* play) {
|
|||
this->actor.textId = -1;
|
||||
this->eyeExpression = this->mouthExpression = ZL4_MOUTH_NEUTRAL;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex >= 4) {
|
||||
if (IS_CUTSCENE_LAYER) {
|
||||
Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ZL4_ANIM_0);
|
||||
this->actionFunc = EnZl4_TheEnd;
|
||||
} else if (GET_EVENTCHKINF(EVENTCHKINF_40)) {
|
||||
|
|
|
@ -191,7 +191,7 @@ void ObjectKankyo_Fairies(ObjectKankyo* this, PlayState* play) {
|
|||
|
||||
player = GET_PLAYER(play);
|
||||
|
||||
if (play->sceneNum == SCENE_SPOT04 && gSaveContext.sceneSetupIndex == 7) {
|
||||
if (play->sceneNum == SCENE_SPOT04 && gSaveContext.sceneLayer == 7) {
|
||||
dist = Math3D_Vec3f_DistXYZ(&this->prevEyePos, &play->view.eye);
|
||||
|
||||
this->prevEyePos.x = play->view.eye.x;
|
||||
|
@ -227,7 +227,7 @@ void ObjectKankyo_Fairies(ObjectKankyo* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if (play->envCtx.precipitation[PRECIP_SNOW_MAX] < 64 &&
|
||||
(gSaveContext.entranceIndex != ENTR_SPOT04_0 || gSaveContext.sceneSetupIndex != 4 ||
|
||||
(gSaveContext.entranceIndex != ENTR_SPOT04_0 || gSaveContext.sceneLayer != 4 ||
|
||||
play->envCtx.precipitation[PRECIP_SNOW_MAX])) {
|
||||
play->envCtx.precipitation[PRECIP_SNOW_MAX] += 16;
|
||||
}
|
||||
|
|
|
@ -9154,7 +9154,7 @@ void func_80846648(PlayState* play, Player* this) {
|
|||
|
||||
void func_80846660(PlayState* play, Player* this) {
|
||||
func_80835C58(play, this, func_8084F710, 0);
|
||||
if ((play->sceneNum == SCENE_SPOT06) && (gSaveContext.sceneSetupIndex >= 4)) {
|
||||
if ((play->sceneNum == SCENE_SPOT06) && IS_CUTSCENE_LAYER) {
|
||||
this->unk_84F = 1;
|
||||
}
|
||||
this->stateFlags1 |= PLAYER_STATE1_29;
|
||||
|
@ -9343,8 +9343,8 @@ void Player_Init(Actor* thisx, PlayState* play2) {
|
|||
if ((respawnFlag == 0) || (respawnFlag < -1)) {
|
||||
titleFileSize = scene->titleFile.vromEnd - scene->titleFile.vromStart;
|
||||
if ((titleFileSize != 0) && gSaveContext.showTitleCard) {
|
||||
if ((gSaveContext.sceneSetupIndex < 4) &&
|
||||
(gEntranceTable[((void)0, gSaveContext.entranceIndex) + ((void)0, gSaveContext.sceneSetupIndex)].field &
|
||||
if (!IS_CUTSCENE_LAYER &&
|
||||
(gEntranceTable[((void)0, gSaveContext.entranceIndex) + ((void)0, gSaveContext.sceneLayer)].field &
|
||||
ENTRANCE_INFO_DISPLAY_TITLE_CARD_FLAG) &&
|
||||
((play->sceneNum != SCENE_DDAN) || GET_EVENTCHKINF(EVENTCHKINF_B0)) &&
|
||||
((play->sceneNum != SCENE_NIGHT_SHOP) || GET_EVENTCHKINF(EVENTCHKINF_25))) {
|
||||
|
|
|
@ -12,7 +12,7 @@ void TitleSetup_SetupTitleScreen(TitleSetupState* this) {
|
|||
gSaveContext.linkAge = LINK_AGE_ADULT;
|
||||
Sram_InitDebugSave();
|
||||
gSaveContext.cutsceneIndex = 0xFFF3;
|
||||
gSaveContext.sceneSetupIndex = 7;
|
||||
gSaveContext.sceneLayer = 7;
|
||||
SET_NEXT_GAMESTATE(&this->state, Play_Init, PlayState);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue