Skip to content

Commit

Permalink
just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicSoapyBoi authored Jul 25, 2024
1 parent c9b6603 commit b236487
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/gamesetup.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Hooks:PostHook(GameSetup, "load_packages", "sh_load_packages", function(self)
local level = Global.level_data and Global.level_data.level_id or ""
local difficulty = Global.game_settings and Global.game_settings.difficulty or "normal"
local difficulty_index = tweak_data:difficulty_to_index(difficulty)
if difficulty_index == 6 and not PackageManager:loaded("packages/sm_wish") then
Expand All @@ -10,7 +11,7 @@ Hooks:PostHook(GameSetup, "load_packages", "sh_load_packages", function(self)
--For Elite/ZEAL shield's Terminator styled BANG BANG BANG spawn sound
if difficulty_index == 6 and not PackageManager:loaded("soundbanks/sfx_hos") then
PackageManager:load("soundbanks/sfx_hos")
elseif difficulty_index ~= 6 and PackageManager:loaded("soundbanks/sfx_hos") then
elseif difficulty_index ~= 6 and level ~= "nmh" and PackageManager:loaded("soundbanks/sfx_hos") then
PackageManager:unload("soundbanks/sfx_hos")
end
end)

0 comments on commit b236487

Please sign in to comment.