Skip to content

Commit

Permalink
Disable low poly Samus if reloading from checkpoint after starting boss
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Jul 10, 2024
1 parent 2e66614 commit e27b5c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/files/levels/s070_area7.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ s070_area7.tDNAScanLandmarks = {
function s070_area7.InitFromBlackboard()
Game.SetSubAreaCurrentSetup("collision_camera_037", "Omega_Enabled", true)
Scenario.WriteToBlackboard("OmegaDiscovered", "b", true)
s070_area7.SetLowModelsVisibility(false)
if Blackboard.GetProp("s070_area7", "entity_LE_HazarousPool_001_enabled") == nil then
Game.GetEntity("LE_HazarousPool_001").HAZAROUSPOOL:Activate(true)
Game.GetEntity("LE_HazarousPool_002").HAZAROUSPOOL:Activate(false)
Expand Down
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/files/levels/s100_area10.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function s100_area10.InitFromBlackboard()
Game.DisableEntity("LE_Baby_Hatchling")
Game.DisableTrigger("TG_MetroidRadar")
Game.GetEntity("LE_RandoDNA").USABLE:Activate(false)
s100_area10.SetLowModelsVisibility(false)
if Game.GetEntity("LE_ValveQueen") ~= nil then
if Blackboard.GetProp("DEFEATED_ENEMIES", "Metroid") ~= nil and s100_area10.iNumMetroids == Blackboard.GetProp("DEFEATED_ENEMIES", "Metroid") then
Game.GetEntity("LE_ValveQueen").MODELUPDATER:SetMeshVisible("Valve", false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function s110_surfaceb.ElevatorSetTarget(_ARG_0_)
GUI.ElevatorSetTarget("s000_surface_elevator", false)
end
function s110_surfaceb.InitFromBlackboard()
s110_surfaceb.SetLowModelsVisibility(false)
end
function s110_surfaceb.OnReloaded()
end
Expand Down

0 comments on commit e27b5c7

Please sign in to comment.