mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
+1
-1
@@ -1356,7 +1356,7 @@ void Cutscene_ActorTranslate(Actor* actor, PlayState* play, s32 actorActionIndex
|
||||
void Cutscene_ActorTranslateAndYaw(Actor* actor, PlayState* play, s32 actorActionIndex);
|
||||
void Cutscene_ActorTranslateAndYawSmooth(Actor* actor, PlayState* play, s32 actorActionIndex);
|
||||
void Cutscene_ActorTranslateXZAndYawSmooth(Actor* actor, PlayState* play, s32 actorActionIndex);
|
||||
s32 Cutscene_GetSceneSetupIndex(PlayState* play);
|
||||
s32 Cutscene_GetSceneLayer(PlayState* play);
|
||||
s32 Cutscene_GetActorActionIndex(PlayState* play, u16 actorActionCmd);
|
||||
s32 Cutscene_CheckActorAction(PlayState* play, u16 actorActionCmd);
|
||||
u8 Cutscene_IsPlaying(PlayState* play);
|
||||
|
||||
+1
-1
@@ -304,7 +304,7 @@ typedef struct SaveContext {
|
||||
/* 0x3CA6 */ u8 unk_3CA6;
|
||||
/* 0x3CA7 */ u8 unk_3CA7; // "day_night_flag"
|
||||
/* 0x3CA8 */ s32 gameMode; // "mode"
|
||||
/* 0x3CAC */ s32 sceneSetupIndex; // "counter"
|
||||
/* 0x3CAC */ s32 sceneLayer; // "counter"
|
||||
/* 0x3CB0 */ s32 respawnFlag; // "restart_flag"
|
||||
/* 0x3CB4 */ RespawnData respawn[RESPAWN_MODE_MAX]; // "restart_data"
|
||||
/* 0x3DB4 */ f32 entranceSpeed; // "player_wipe_speedF"
|
||||
|
||||
+1
-1
@@ -767,7 +767,7 @@ typedef enum {
|
||||
/*
|
||||
* 0xFE00: Index into sSceneEntranceTable (Scene)
|
||||
* 0x01F0: Index into the scenes specific entrance table (Spawn)
|
||||
* 0x000F: Index into the specific entrance table (Layer), stored seperately in sceneSetupIndex
|
||||
* 0x000F: Index into the specific entrance table (Layer), stored seperately in sceneLayer
|
||||
*/
|
||||
#define ENTRANCE(scene, spawn) ((((ENTR_SCENE_##scene) & 0x7F) << 9) | (((spawn) & 0x1F) << 4))
|
||||
|
||||
|
||||
+6
-6
@@ -1497,7 +1497,7 @@ void func_800EDBE0(PlayState* play) {
|
||||
sp24 = play->loadedScene;
|
||||
if ((sp24->titleTextId != 0) && gSaveContext.showTitleCard) {
|
||||
if ((Entrance_GetTransitionFlags(((void)0, gSaveContext.save.entrance) +
|
||||
((void)0, gSaveContext.sceneSetupIndex)) &
|
||||
((void)0, gSaveContext.sceneLayer)) &
|
||||
0x4000) != 0) {
|
||||
func_80151A68(play, sp24->titleTextId);
|
||||
}
|
||||
@@ -1608,13 +1608,13 @@ void Cutscene_ActorTranslateXZAndYawSmooth(Actor* actor, PlayState* play, s32 ac
|
||||
actor->shape.rot.y = actor->world.rot.y;
|
||||
}
|
||||
|
||||
s32 Cutscene_GetSceneSetupIndex(PlayState* play) {
|
||||
s32 sceneSetupIndex = 0;
|
||||
s32 Cutscene_GetSceneLayer(PlayState* play) {
|
||||
s32 sceneLayer = 0;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex > 0) {
|
||||
sceneSetupIndex = gSaveContext.sceneSetupIndex;
|
||||
if (gSaveContext.sceneLayer > 0) {
|
||||
sceneLayer = gSaveContext.sceneLayer;
|
||||
}
|
||||
return sceneSetupIndex;
|
||||
return sceneLayer;
|
||||
}
|
||||
|
||||
s32 Cutscene_GetActorActionIndex(PlayState* play, u16 actorActionCmd) {
|
||||
|
||||
@@ -2264,7 +2264,7 @@ void Magic_Update(PlayState* play) {
|
||||
// Add magic until magicFillTarget is reached
|
||||
gSaveContext.save.playerData.magic += 0x10;
|
||||
|
||||
if ((gSaveContext.gameMode == 0) && (gSaveContext.sceneSetupIndex < 4)) {
|
||||
if ((gSaveContext.gameMode == 0) && (gSaveContext.sceneLayer < 4)) {
|
||||
play_sound(NA_SE_SY_GAUGE_UP - SFX_FLAG);
|
||||
}
|
||||
|
||||
@@ -2863,7 +2863,7 @@ void Interface_DrawTimers(PlayState* play) {
|
||||
|
||||
if (sTimerId == TIMER_ID_MOON_CRASH) {
|
||||
gSaveContext.save.day = 4;
|
||||
if ((play->sceneId == SCENE_OKUJOU) && (gSaveContext.sceneSetupIndex == 3)) {
|
||||
if ((play->sceneId == SCENE_OKUJOU) && (gSaveContext.sceneLayer == 3)) {
|
||||
play->nextEntrance = ENTRANCE(TERMINA_FIELD, 1);
|
||||
gSaveContext.nextCutsceneIndex = 0xFFF0;
|
||||
play->transitionTrigger = TRANS_TRIGGER_START;
|
||||
|
||||
+2
-2
@@ -455,9 +455,9 @@ void Scene_HeaderCmdAltHeaderList(PlayState* play, SceneCmd* cmd) {
|
||||
SceneCmd** altHeaderList;
|
||||
SceneCmd* altHeader;
|
||||
|
||||
if (gSaveContext.sceneSetupIndex != 0) {
|
||||
if (gSaveContext.sceneLayer != 0) {
|
||||
altHeaderList = Lib_SegmentedToVirtual(cmd->altHeaders.segment);
|
||||
altHeader = altHeaderList[gSaveContext.sceneSetupIndex - 1];
|
||||
altHeader = altHeaderList[gSaveContext.sceneLayer - 1];
|
||||
|
||||
if (altHeader != NULL) {
|
||||
Scene_ProcessHeader(play, Lib_SegmentedToVirtual(altHeader));
|
||||
|
||||
@@ -131,7 +131,7 @@ void BgIknvObj_UpdateWaterwheel(BgIknvObj* this, PlayState* play) {
|
||||
func_800B9010(&this->dyna.actor, NA_SE_EV_WOOD_WATER_WHEEL - SFX_FLAG);
|
||||
}
|
||||
|
||||
if ((play->csCtx.state != 0) && (gSaveContext.sceneSetupIndex == 1) && (play->csCtx.currentCsIndex == 4) &&
|
||||
if ((play->csCtx.state != 0) && (gSaveContext.sceneLayer == 1) && (play->csCtx.currentCsIndex == 4) &&
|
||||
(play->csCtx.frames == 1495)) {
|
||||
func_8019F128(NA_SE_EV_DOOR_UNLOCK);
|
||||
}
|
||||
|
||||
@@ -451,13 +451,13 @@ void func_80AA5EBC(DmChar00* this, PlayState* play) {
|
||||
if (play->csCtx.state != 0) {
|
||||
switch (play->sceneId) {
|
||||
case SCENE_LOST_WOODS:
|
||||
if (gSaveContext.sceneSetupIndex == 1) {
|
||||
if (gSaveContext.sceneLayer == 1) {
|
||||
func_80AA561C(this, play);
|
||||
}
|
||||
break;
|
||||
|
||||
case SCENE_OPENINGDAN:
|
||||
if (gSaveContext.sceneSetupIndex == 0) {
|
||||
if (gSaveContext.sceneLayer == 0) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
func_80AA5720(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -469,7 +469,7 @@ void func_80AA5EBC(DmChar00* this, PlayState* play) {
|
||||
break;
|
||||
|
||||
case SCENE_OKUJOU:
|
||||
if (gSaveContext.sceneSetupIndex == 0) {
|
||||
if (gSaveContext.sceneLayer == 0) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
func_80AA58CC(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -477,7 +477,7 @@ void func_80AA5EBC(DmChar00* this, PlayState* play) {
|
||||
} else if (play->csCtx.currentCsIndex == 2) {
|
||||
func_80AA5960(this, play);
|
||||
}
|
||||
} else if (gSaveContext.sceneSetupIndex == 2) {
|
||||
} else if (gSaveContext.sceneLayer == 2) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
func_80AA59E4(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -487,13 +487,13 @@ void func_80AA5EBC(DmChar00* this, PlayState* play) {
|
||||
break;
|
||||
|
||||
case SCENE_00KEIKOKU:
|
||||
if (gSaveContext.sceneSetupIndex == 3) {
|
||||
if (gSaveContext.sceneLayer == 3) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
func_80AA5AF4(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 2) {
|
||||
func_80AA5E2C(this, play);
|
||||
}
|
||||
} else if (gSaveContext.sceneSetupIndex == 7) {
|
||||
} else if (gSaveContext.sceneLayer == 7) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
func_80AA5BF8(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -503,19 +503,19 @@ void func_80AA5EBC(DmChar00* this, PlayState* play) {
|
||||
break;
|
||||
|
||||
case SCENE_MITURIN:
|
||||
if ((gSaveContext.sceneSetupIndex == 0) && (play->csCtx.currentCsIndex == 1)) {
|
||||
if ((gSaveContext.sceneLayer == 0) && (play->csCtx.currentCsIndex == 1)) {
|
||||
func_80AA5DC8(this, play);
|
||||
}
|
||||
break;
|
||||
|
||||
case SCENE_INSIDETOWER:
|
||||
if ((gSaveContext.sceneSetupIndex == 0) && (play->csCtx.currentCsIndex == 0)) {
|
||||
if ((gSaveContext.sceneLayer == 0) && (play->csCtx.currentCsIndex == 0)) {
|
||||
func_80AA5D10(this, play);
|
||||
}
|
||||
break;
|
||||
|
||||
case SCENE_PIRATE:
|
||||
if ((gSaveContext.sceneSetupIndex == 0) && (play->csCtx.currentCsIndex == 0)) {
|
||||
if ((gSaveContext.sceneLayer == 0) && (play->csCtx.currentCsIndex == 0)) {
|
||||
func_80AA5D6C(this, play);
|
||||
}
|
||||
break;
|
||||
@@ -853,7 +853,7 @@ void func_80AA62FC(DmChar00* this, PlayState* play) {
|
||||
void func_80AA67F8(DmChar00* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if ((play->csCtx.state == 0) && (gSaveContext.sceneSetupIndex == 0) && (play->csCtx.currentCsIndex == 1)) {
|
||||
if ((play->csCtx.state == 0) && (gSaveContext.sceneLayer == 0) && (play->csCtx.currentCsIndex == 1)) {
|
||||
if (this->unk_261 != 42) {
|
||||
this->unk_261 = 42;
|
||||
func_80AA5580(&this->skelAnime, &sAnimationInfo[this->unk_261], 0);
|
||||
@@ -914,9 +914,9 @@ void DmChar00_Draw(Actor* thisx, PlayState* play2) {
|
||||
s32 pad;
|
||||
Gfx* gfx = GRAPH_ALLOC(play->state.gfxCtx, sizeof(Gfx) * 4);
|
||||
|
||||
if ((play->csCtx.state == 0) && ((play->sceneId != SCENE_OPENINGDAN) || (gSaveContext.sceneSetupIndex != 0) ||
|
||||
(play->roomCtx.curRoom.num != 0) || (play->csCtx.currentCsIndex != 1) ||
|
||||
(DMCHAR00_GET(&this->actor) != DMCHAR00_0))) {
|
||||
if ((play->csCtx.state == 0) &&
|
||||
((play->sceneId != SCENE_OPENINGDAN) || (gSaveContext.sceneLayer != 0) || (play->roomCtx.curRoom.num != 0) ||
|
||||
(play->csCtx.currentCsIndex != 1) || (DMCHAR00_GET(&this->actor) != DMCHAR00_0))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ void DmChar01_Init(Actor* thisx, PlayState* play) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (gSaveContext.sceneSetupIndex == 0) {
|
||||
if (gSaveContext.sceneLayer == 0) {
|
||||
play->envCtx.unk_1F = 5;
|
||||
play->envCtx.unk_20 = 5;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ void DmChar01_Init(Actor* thisx, PlayState* play) {
|
||||
DynaPolyActor_LoadMesh(play, &this->dyna, &gWoodfallSceneryPoisonWaterDamageCol);
|
||||
|
||||
this->unk_34D = true;
|
||||
if (gSaveContext.sceneSetupIndex == 1) {
|
||||
if (gSaveContext.sceneLayer == 1) {
|
||||
this->unk_34C = 1;
|
||||
this->actionFunc = func_80AA8C28;
|
||||
} else {
|
||||
@@ -97,7 +97,7 @@ void DmChar01_Init(Actor* thisx, PlayState* play) {
|
||||
break;
|
||||
|
||||
case DMCHAR01_1:
|
||||
if ((gSaveContext.save.weekEventReg[20] & 2) || (gSaveContext.sceneSetupIndex == 1)) {
|
||||
if ((gSaveContext.save.weekEventReg[20] & 2) || (gSaveContext.sceneLayer == 1)) {
|
||||
this->unk_34C = 1;
|
||||
this->actionFunc = func_80AA8F1C;
|
||||
} else {
|
||||
@@ -411,7 +411,7 @@ void DmChar01_Draw(Actor* thisx, PlayState* play) {
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if (gSaveContext.sceneSetupIndex == 1) {
|
||||
if (gSaveContext.sceneLayer == 1) {
|
||||
AnimatedMat_Draw(play, Lib_SegmentedToVirtual(&gWoodfallSceneryPurifiedWaterTexAnim));
|
||||
Gfx_DrawDListOpa(play, gWoodfallSceneryFloorDL);
|
||||
Gfx_DrawDListXlu(play, gWoodfallSceneryPurifiedWaterDL);
|
||||
|
||||
@@ -545,7 +545,7 @@ void func_80AAD4A8(DmChar05* this, PlayState* play) {
|
||||
}
|
||||
} else if (DMCHAR05_GET(&this->actor) == DMCHAR05_3) {
|
||||
if (play->sceneId == SCENE_OKUJOU) {
|
||||
if (gSaveContext.sceneSetupIndex == 2) {
|
||||
if (gSaveContext.sceneLayer == 2) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
func_80AAD3F8(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -553,11 +553,11 @@ void func_80AAD4A8(DmChar05* this, PlayState* play) {
|
||||
}
|
||||
}
|
||||
} else if (play->sceneId == SCENE_SPOT00) {
|
||||
if (gSaveContext.sceneSetupIndex == 9) {
|
||||
if (gSaveContext.sceneLayer == 9) {
|
||||
if ((play->csCtx.currentCsIndex == 0) && (play->csCtx.frames == 255)) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EN_EVIL_POWER);
|
||||
}
|
||||
} else if ((gSaveContext.sceneSetupIndex == 0xB) && (play->csCtx.frames == 115)) {
|
||||
} else if ((gSaveContext.sceneLayer == 0xB) && (play->csCtx.frames == 115)) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EN_EVIL_POWER_PREDEMO);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ void DmOpstage_Update(Actor* thisx, PlayState* play) {
|
||||
DmOpstage* this = THIS;
|
||||
|
||||
this->actionFunc(this, play);
|
||||
if ((play->sceneId == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 0) && (play->csCtx.frames == 480)) {
|
||||
if ((play->sceneId == SCENE_SPOT00) && (gSaveContext.sceneLayer == 0) && (play->csCtx.frames == 480)) {
|
||||
// This actor is responsible for playing the fairy sound during the exposition in the intro,
|
||||
// during the transition to Lost Woods, before Ocarina gets stolen.
|
||||
func_8019F128(NA_SE_EV_NAVY_FLY_REBIRTH);
|
||||
|
||||
@@ -919,23 +919,23 @@ void DmStk_PlaySfxForCutscenes(DmStk* this, PlayState* play) {
|
||||
if (play->csCtx.state != 0) {
|
||||
switch (play->sceneId) {
|
||||
case SCENE_LOST_WOODS:
|
||||
if (gSaveContext.sceneSetupIndex == 1) {
|
||||
if (gSaveContext.sceneLayer == 1) {
|
||||
DmStk_PlaySfxForIntroCutsceneFirstPart(this, play);
|
||||
} else if (gSaveContext.sceneSetupIndex == 0) {
|
||||
} else if (gSaveContext.sceneLayer == 0) {
|
||||
DmStk_PlaySfxForIntroCutsceneSecondPart(this, play);
|
||||
} else if ((gSaveContext.sceneSetupIndex == 2) && (play->csCtx.currentCsIndex == 0)) {
|
||||
} else if ((gSaveContext.sceneLayer == 2) && (play->csCtx.currentCsIndex == 0)) {
|
||||
DmStk_PlaySfxForObtainingMajorasMaskCutscene(this, play);
|
||||
}
|
||||
break;
|
||||
|
||||
case SCENE_CLOCKTOWER:
|
||||
if (gSaveContext.sceneSetupIndex == 1) {
|
||||
if (gSaveContext.sceneLayer == 1) {
|
||||
DmStk_PlaySfxForTitleCutscene(this, play);
|
||||
}
|
||||
break;
|
||||
|
||||
case SCENE_OPENINGDAN:
|
||||
if (gSaveContext.sceneSetupIndex == 0) {
|
||||
if (gSaveContext.sceneLayer == 0) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
DmStk_PlaySfxForCurseCutsceneFirstPart(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -945,7 +945,7 @@ void DmStk_PlaySfxForCutscenes(DmStk* this, PlayState* play) {
|
||||
break;
|
||||
|
||||
case SCENE_OKUJOU:
|
||||
if (gSaveContext.sceneSetupIndex == 0) {
|
||||
if (gSaveContext.sceneLayer == 0) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
DmStk_PlaySfxForClockTowerIntroCutsceneVersion1(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -955,7 +955,7 @@ void DmStk_PlaySfxForCutscenes(DmStk* this, PlayState* play) {
|
||||
} else if (play->csCtx.currentCsIndex == 3) {
|
||||
DmStk_PlaySfxForCutsceneAfterPlayingOathToOrder(this, play);
|
||||
}
|
||||
} else if (gSaveContext.sceneSetupIndex == 2) {
|
||||
} else if (gSaveContext.sceneLayer == 2) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
DmStk_PlaySfxForMoonWarpCutsceneVersion1(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -965,13 +965,13 @@ void DmStk_PlaySfxForCutscenes(DmStk* this, PlayState* play) {
|
||||
break;
|
||||
|
||||
case SCENE_00KEIKOKU:
|
||||
if (gSaveContext.sceneSetupIndex == 3) {
|
||||
if (gSaveContext.sceneLayer == 3) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
DmStk_PlaySfxForShiveringInRainCutscene(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 2) {
|
||||
DmStk_PlaySfxForPlayingWithFairiesCutscene(this, play);
|
||||
}
|
||||
} else if (gSaveContext.sceneSetupIndex == 7) {
|
||||
} else if (gSaveContext.sceneLayer == 7) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
DmStk_PlaySfxForEndingCutsceneFirstPart(this, play);
|
||||
} else if (play->csCtx.currentCsIndex == 1) {
|
||||
@@ -1028,7 +1028,7 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
this->fogG = play->lightCtx.unk8;
|
||||
this->fogB = play->lightCtx.unk9;
|
||||
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1)) {
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneLayer == 1)) {
|
||||
this->alpha = 0;
|
||||
this->fogN = 0;
|
||||
this->fogF = 1000;
|
||||
@@ -1044,7 +1044,7 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
Collider_InitCylinder(play, &this->collider);
|
||||
|
||||
if (gSaveContext.save.entrance == ENTRANCE(CLOCK_TOWER_ROOFTOP, 0)) {
|
||||
if (gSaveContext.sceneSetupIndex == 0) {
|
||||
if (gSaveContext.sceneLayer == 0) {
|
||||
if (gSaveContext.timerStates[TIMER_ID_MOON_CRASH] == TIMER_STATE_OFF) {
|
||||
// Starts a 5 minute (300 second) timer until the moon falls.
|
||||
Interface_StartTimer(TIMER_ID_MOON_CRASH, 300);
|
||||
@@ -1060,7 +1060,7 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
this->actionFunc = DmStk_ClockTower_StartIntroCutsceneVersion2;
|
||||
}
|
||||
|
||||
} else if (gSaveContext.sceneSetupIndex == 3) {
|
||||
} else if (gSaveContext.sceneLayer == 3) {
|
||||
this->animIndex = SK_ANIM_FLOATING_ARMS_CROSSED;
|
||||
if (gSaveContext.timerStates[TIMER_ID_MOON_CRASH] == TIMER_STATE_OFF) {
|
||||
// This code is called when the Giants fail to stop the moon.
|
||||
@@ -1088,7 +1088,7 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
|
||||
CollisionCheck_SetInfo2(&this->actor.colChkInfo, &sDamageTable, &sColChkInfoInit);
|
||||
|
||||
} else if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 0)) {
|
||||
} else if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneLayer == 0)) {
|
||||
if (!(play->actorCtx.flags & ACTORCTX_FLAG_1)) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
}
|
||||
@@ -1127,7 +1127,7 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
|
||||
Actor_SetScale(&this->actor, 0.01f);
|
||||
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 3) && (play->csCtx.currentCsIndex > 0)) {
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneLayer == 3) && (play->csCtx.currentCsIndex > 0)) {
|
||||
play->envCtx.unk_17 = 15;
|
||||
play->envCtx.unk_18 = 15;
|
||||
}
|
||||
@@ -1684,7 +1684,7 @@ void DmStk_UpdateCutscenes(DmStk* this, PlayState* play) {
|
||||
this->handType = SK_HAND_TYPE_HOLDING_MAJORAS_MASK;
|
||||
} else if (((this->animIndex >= SK_ANIM_HUDDLE_WITH_FAIRIES) && (this->animIndex <= SK_ANIM_DRAW)) ||
|
||||
((this->animIndex >= SK_ANIM_PLAY_FLUTE) && (this->animIndex <= SK_ANIM_CARTWHEEL)) ||
|
||||
((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 7))) {
|
||||
((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneLayer == 7))) {
|
||||
this->maskType = SK_MASK_TYPE_NO_MASK;
|
||||
if ((this->animIndex == SK_ANIM_HOLD_UP_MASK_START) || (this->animIndex == SK_ANIM_HOLD_UP_MASK_LOOP)) {
|
||||
this->handType = SK_HAND_TYPE_HOLDING_MAJORAS_MASK_AND_FLUTE;
|
||||
@@ -1823,7 +1823,7 @@ void DmStk_Update(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 3) && (play->csCtx.currentCsIndex > 0)) {
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneLayer == 3) && (play->csCtx.currentCsIndex > 0)) {
|
||||
play->envCtx.unk_17 = 15;
|
||||
play->envCtx.unk_18 = 15;
|
||||
}
|
||||
@@ -1886,7 +1886,7 @@ void DmStk_PostLimbDraw2(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot
|
||||
break;
|
||||
|
||||
case SK_MASK_TYPE_NORMAL:
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneLayer == 1) &&
|
||||
(play->csCtx.frames < 1400)) {
|
||||
if (this->fogN == this->fogF) {
|
||||
this->fogF = this->fogN;
|
||||
@@ -1948,7 +1948,7 @@ void DmStk_PostLimbDraw2(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot
|
||||
case SK_HAND_TYPE_HOLDING_OCARINA:
|
||||
gSPDisplayList(POLY_OPA_DISP++, gSkullKidOcarinaHoldingRightHand);
|
||||
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1)) {
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneLayer == 1)) {
|
||||
gSPDisplayList(POLY_OPA_DISP++, gSkullKidOcarinaOfTimeDL);
|
||||
}
|
||||
break;
|
||||
@@ -1986,7 +1986,7 @@ void DmStk_PostLimbDraw2(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot
|
||||
break;
|
||||
|
||||
case SK_HAND_TYPE_HOLDING_OCARINA:
|
||||
if ((play->sceneId != SCENE_LOST_WOODS) || (gSaveContext.sceneSetupIndex != 1)) {
|
||||
if ((play->sceneId != SCENE_LOST_WOODS) || (gSaveContext.sceneLayer != 1)) {
|
||||
gSPDisplayList(POLY_OPA_DISP++, gSkullKidOcarinaOfTimeDL);
|
||||
}
|
||||
gSPDisplayList(POLY_OPA_DISP++, gSkullKidTwoFingersExtendedLeftHand);
|
||||
|
||||
@@ -448,7 +448,7 @@ void func_80A52074(EnDnk* this, PlayState* play) {
|
||||
|
||||
void func_80A52134(EnDnk* this, PlayState* play) {
|
||||
if ((play->csCtx.state != 0) && (ENDNK_GET_3C(&this->actor) == 4) && (play->sceneId == SCENE_SPOT00) &&
|
||||
(gSaveContext.sceneSetupIndex == 2)) {
|
||||
(gSaveContext.sceneLayer == 2)) {
|
||||
func_80A52074(this, play);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -903,14 +903,14 @@ void func_8088E850(EnElf* this, PlayState* play) {
|
||||
func_8088D660(this, &nextPos, 0.2f);
|
||||
}
|
||||
|
||||
if ((play->sceneId == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 0) &&
|
||||
if ((play->sceneId == SCENE_CLOCKTOWER) && (gSaveContext.sceneLayer == 0) &&
|
||||
(play->csCtx.currentCsIndex == 0) &&
|
||||
((play->csCtx.frames == 149) || (play->csCtx.frames == 381) || (play->csCtx.frames == 591))) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EV_WHITE_FAIRY_DASH);
|
||||
}
|
||||
|
||||
if ((play->sceneId == SCENE_SECOM) && (gSaveContext.sceneSetupIndex == 0) &&
|
||||
(play->csCtx.currentCsIndex == 4) && (play->csCtx.frames == 95)) {
|
||||
if ((play->sceneId == SCENE_SECOM) && (gSaveContext.sceneLayer == 0) && (play->csCtx.currentCsIndex == 4) &&
|
||||
(play->csCtx.frames == 95)) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EV_WHITE_FAIRY_DASH);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -315,8 +315,7 @@ void EnFall_Setup(EnFall* this, PlayState* play) {
|
||||
void EnFall_CrashingMoon_HandleGiantsCutscene(EnFall* this, PlayState* play) {
|
||||
static s32 sGiantsCutsceneState = 0;
|
||||
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(play->csCtx.currentCsIndex == 0)) {
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneLayer == 1) && (play->csCtx.currentCsIndex == 0)) {
|
||||
switch (sGiantsCutsceneState) {
|
||||
case 0:
|
||||
if (play->csCtx.state != 0) {
|
||||
@@ -409,7 +408,7 @@ void EnFall_StoppedClosedMouthMoon_PerformCutsceneActions(EnFall* this, PlayStat
|
||||
}
|
||||
}
|
||||
|
||||
if (play->sceneId == SCENE_OKUJOU && gSaveContext.sceneSetupIndex == 2) {
|
||||
if ((play->sceneId == SCENE_OKUJOU) && (gSaveContext.sceneLayer == 2)) {
|
||||
switch (play->csCtx.currentCsIndex) {
|
||||
case 0:
|
||||
switch (play->csCtx.frames) {
|
||||
@@ -575,7 +574,7 @@ void EnFall_Fireball_SetPerVertexAlpha(f32 fireballAlpha) {
|
||||
void EnFall_Fireball_Update(Actor* thisx, PlayState* play) {
|
||||
EnFall* this = THIS;
|
||||
|
||||
if (play->sceneId == SCENE_00KEIKOKU && gSaveContext.sceneSetupIndex == 0 && play->csCtx.currentCsIndex == 2) {
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneLayer == 0) && (play->csCtx.currentCsIndex == 2)) {
|
||||
play->skyboxCtx.rotY -= 0.05f;
|
||||
}
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ void EnGiant_Init(Actor* thisx, PlayState* play) {
|
||||
|
||||
this->sfxId = 0xFFFF;
|
||||
if (GIANT_TYPE_IS_CHAMBER_OR_ENDING(type)) {
|
||||
switch (gSaveContext.sceneSetupIndex) {
|
||||
switch (gSaveContext.sceneLayer) {
|
||||
case 0:
|
||||
case 10:
|
||||
this->sfxId = NA_SE_EV_KYOJIN_GRATITUDE2 - SFX_FLAG;
|
||||
|
||||
@@ -762,7 +762,7 @@ s32 func_8094EFC4(EnGm* this, PlayState* play) {
|
||||
|
||||
if (play->csCtx.state != 0) {
|
||||
if (this->unk_3F8 == 0) {
|
||||
if ((play->sceneId == SCENE_MILK_BAR) && (gSaveContext.sceneSetupIndex == 2)) {
|
||||
if ((play->sceneId == SCENE_MILK_BAR) && (gSaveContext.sceneLayer == 2)) {
|
||||
func_8094E054(this, play, 0);
|
||||
this->unk_258 = 255;
|
||||
}
|
||||
|
||||
@@ -539,7 +539,7 @@ s32 func_80A1222C(EnGo* this, PlayState* play) {
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_GORON_LULLABY) && (this->unk_3EC == 0) &&
|
||||
(this->actor.xzDistToPlayer < 400.0f)) ||
|
||||
(!(gSaveContext.save.weekEventReg[22] & 4) && (play->sceneId == SCENE_16GORON_HOUSE) &&
|
||||
(gSaveContext.sceneSetupIndex == 0) && (this->unk_3EC == 0) && (play->csCtx.currentCsIndex == 1))) {
|
||||
(gSaveContext.sceneLayer == 0) && (this->unk_3EC == 0) && (play->csCtx.currentCsIndex == 1))) {
|
||||
ret = true;
|
||||
}
|
||||
return ret;
|
||||
@@ -711,7 +711,7 @@ s32 func_80A12868(EnGo* this, PlayState* play) {
|
||||
|
||||
s32 func_80A12954(EnGo* this, PlayState* play) {
|
||||
if ((ENGO_GET_F(&this->actor) == ENGO_F_4) && (play->csCtx.state != 0) && (this->actor.draw != NULL) &&
|
||||
(play->sceneId == SCENE_10YUKIYAMANOMURA2) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(play->sceneId == SCENE_10YUKIYAMANOMURA2) && (gSaveContext.sceneLayer == 1) &&
|
||||
(play->csCtx.currentCsIndex == 0)) {
|
||||
if (this->unk_3F0 == 0) {
|
||||
this->actor.flags &= ~ACTOR_FLAG_1;
|
||||
@@ -1412,7 +1412,7 @@ void func_80A144F4(EnGo* this, PlayState* play) {
|
||||
|
||||
void func_80A145AC(EnGo* this, PlayState* play) {
|
||||
if ((ENGO_GET_70(&this->actor) == ENGO_70_1) &&
|
||||
(((play->sceneId == SCENE_10YUKIYAMANOMURA2) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(((play->sceneId == SCENE_10YUKIYAMANOMURA2) && (gSaveContext.sceneLayer == 1) &&
|
||||
(play->csCtx.currentCsIndex == 0)) ||
|
||||
!(gSaveContext.save.weekEventReg[21] & 8))) {
|
||||
this->actor.child = func_80A13400(this, play);
|
||||
|
||||
@@ -323,15 +323,15 @@ void func_80B23910(EnHanabi* this, PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80B23934(EnHanabi* this, PlayState* play) {
|
||||
if ((gSaveContext.save.entrance == ENTRANCE(TERMINA_FIELD, 1)) && (gSaveContext.sceneSetupIndex == 7)) {
|
||||
if ((gSaveContext.save.entrance == ENTRANCE(TERMINA_FIELD, 1)) && (gSaveContext.sceneLayer == 7)) {
|
||||
if (play->csCtx.frames > 1650) {
|
||||
func_80B236C8(this, play);
|
||||
func_800B8FE8(&this->actor, NA_SE_EV_FIREWORKS_LAUNCH - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 7) &&
|
||||
(play->csCtx.currentCsIndex == 0) && (play->csCtx.frames == 610)) {
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneLayer == 7) && (play->csCtx.currentCsIndex == 0) &&
|
||||
(play->csCtx.frames == 610)) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EV_KYOJIN_GROAN);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,8 +158,8 @@ void func_80BCF398(EnHg* this, PlayState* play) {
|
||||
!Cutscene_CheckActorAction(play, 0x1E3)) {
|
||||
func_80BCF468(this);
|
||||
}
|
||||
if ((gSaveContext.sceneSetupIndex == 0 && play->csCtx.currentCsIndex == 0) &&
|
||||
(play->csCtx.frames == 20 || play->csCtx.frames == 60)) {
|
||||
if ((gSaveContext.sceneLayer == 0) && (play->csCtx.currentCsIndex == 0) &&
|
||||
((play->csCtx.frames == 20) || (play->csCtx.frames == 60))) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EN_HALF_REDEAD_SURPRISE);
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user