Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect Surface East and West until all DNA is collected #113

Merged
merged 3 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions open_samus_returns_rando/files/levels/s000_surface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ function s000_surface.OnSubAreaChange(_ARG_0_, _ARG_1_, _ARG_2_, _ARG_3_, _ARG_4
elseif (_ARG_0_ == "collision_camera_024" and not Scenario.ReadFromBlackboard("alpha_killed", false)) then
s000_surface.LaunchFirstTimeAlphaPresentation()
end
if _ARG_0_ == "collision_camera_000" and _ARG_2_ == "collision_camera_017" then
Game.LoadScenario("c10_samus", "s110_surfaceb", "", "Samus", 1)
ThanatosGit marked this conversation as resolved.
Show resolved Hide resolved
end

--if _ARG_0_ == "collision_camera_002" and _ARG_2_ == "collision_camera_003" and not Scenario.ReadFromBlackboard("FirstTimeChozoStatuePlayed", false) then
-- s000_surface.LaunchFirstTimeChozoStatuePresentation()
Expand Down
44 changes: 22 additions & 22 deletions open_samus_returns_rando/files/levels/s110_surfaceb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,19 @@ function s110_surfaceb.OnEnter_SetCheckpoint_001_Ridley()
Game.SetBossCheckPointNames("ST_SG_Ridley", "ST_SG_Ridley", "SG_Ridley", "", "")
end
function s110_surfaceb.LaunchRidleyIntro()
if Game.GetPlayer().INVENTORY:GetItemAmount("ITEM_METROID_COUNT") == 0 then
Game.FadeOut(0.3)
if Game.GetPlayer() ~= nil then
Game.GetPlayer().INPUT:IgnoreInput(true, false)
Game.GetPlayer().MOVEMENT:StartForcedAnalogInput(1, 0)
end
Game.AddSF(0.31, "s110_surfaceb.ScheduledTeleportRidleyIntro", "")
if Game.GetEntity("Samus") ~= nil then
Game.GetEntity("Samus").MODELUPDATER:SetVertexLightsEnabled(true)
end
if Game.GetEntity("morphball") ~= nil then
Game.GetEntity("morphball").MODELUPDATER:SetVertexLightsEnabled(true)
end
s110_surfaceb.SetRidleyStormSoundEnabled(false)
Game.FadeOut(0.3)
if Game.GetPlayer() ~= nil then
Game.GetPlayer().INPUT:IgnoreInput(true, false)
Game.GetPlayer().MOVEMENT:StartForcedAnalogInput(1, 0)
end
Game.AddSF(0.31, "s110_surfaceb.ScheduledTeleportRidleyIntro", "")
if Game.GetEntity("Samus") ~= nil then
Game.GetEntity("Samus").MODELUPDATER:SetVertexLightsEnabled(true)
end
if Game.GetEntity("morphball") ~= nil then
Game.GetEntity("morphball").MODELUPDATER:SetVertexLightsEnabled(true)
end
s110_surfaceb.SetRidleyStormSoundEnabled(false)
end
function s110_surfaceb.PlayMusicOnSkip(_ARG_0_)
Game.PlayMusicFromLoopStart(_ARG_0_)
Expand All @@ -169,14 +167,12 @@ function s110_surfaceb.OnRidley3Skip()
Game.AddSF(0.5, "s110_surfaceb.PlayMusicOnSkip", "s", "m_boss_ridley_third99")
end
function s110_surfaceb.ScheduledTeleportRidleyIntro()
if Game.GetPlayer().INVENTORY:GetItemAmount("ITEM_METROID_COUNT") == 0 then
Game.LockSamusOnMinimap()
if Game.GetEntity("SP_Ridley") ~= nil and Game.GetPlayer() ~= nil then
Game.GetPlayer().vPos = Game.GetEntity("SP_Ridley").vPos
Game.GetPlayer().MOVEMENT:StopForcedAnalogInput()
end
Game.AddSF(0, "s110_surfaceb.ScheduledLaunchRidleyIntro", "")
Game.LockSamusOnMinimap()
if Game.GetEntity("SP_Ridley") ~= nil and Game.GetPlayer() ~= nil then
Game.GetPlayer().vPos = Game.GetEntity("SP_Ridley").vPos
Game.GetPlayer().MOVEMENT:StopForcedAnalogInput()
end
Game.AddSF(0, "s110_surfaceb.ScheduledLaunchRidleyIntro", "")
end
function s110_surfaceb.ScheduledLaunchRidleyIntro()
if Game.GetPlayer() ~= nil then
Expand Down Expand Up @@ -555,7 +551,11 @@ function s110_surfaceb.OnSubAreaChange(_ARG_0_, _ARG_1_, _ARG_2_, _ARG_3_, _ARG_
Game.SetScenarioItemEnabledByName("ray01", false)
Game.SetSceneGroupEnabledByName("sg_debris02", false)
Game.SetSceneGroupEnabledByName("sg_debris03", false)
if _ARG_2_ == "collision_camera_021" and _ARG_0_ == "collision_camera_021" and _ARG_3_ == "RidleyCombat" and Game.GetPlayer().INVENTORY:GetItemAmount("ITEM_METROID_COUNT") == 0 then
if _ARG_0_ == "collision_camera_017" and _ARG_2_ == "collision_camera_000" and Game.GetItemAmount(Game.GetPlayerName(), "ITEM_ADN") < 39 then
Game.LoadScenario("c10_samus", "s000_surface", "", "Samus", 1)
Game.GetPlayer().vPos = V3D(-22800, 4450, 0)
ThanatosGit marked this conversation as resolved.
Show resolved Hide resolved
end
if _ARG_2_ == "collision_camera_021" and _ARG_0_ == "collision_camera_021" and _ARG_3_ == "RidleyCombat" then
if Game.GetEntity("SG_Ridley") ~= nil then
Game.GetEntity("SG_Ridley").SPAWNGROUP:EnableSpawnGroup()
if Game.GetEntityFromSpawnPoint("SP_Ridley") ~= nil then
Expand Down