Files
Divergent/mods/Screen Space Shaders/gamedata/scripts/ssfx_underground_check.script
T
Rage 376b4b9689 Added New Mods and Profiles Folders
This is a complete rebuild of the modpack, with all new mods and updates for 1.5.3 of Anomaly.
2025-01-14 05:07:53 -05:00

36 lines
893 B
Plaintext

-- @ Version: SCREEN SPACE SHADERS - UPDATE 18
-- @ Description: Underground Check ( SSR )
-- @ Author: https://www.moddb.com/members/ascii1457
-- @ Mod: https://www.moddb.com/mods/stalker-anomaly/addons/screen-space-shaders
-- Internal vars
local underground_maps = {
l03u_agr_underground = true,
jupiter_underground = true,
l08u_brainlab = true,
l04u_labx18 = true,
l10u_bunker = true,
labx8 = true,
l12u_sarcofag = true,
l12u_control_monolith = true,
l13u_warlab = true
}
local function is_underground_map()
local level_name = level.name()
-- Enable/Disable SSR if the map is underground/overground
if (underground_maps[level_name]) then
get_console():execute("ssfx_is_underground 1")
else
get_console():execute("ssfx_is_underground 0")
end
end
function on_game_start()
-- General Functions
RegisterScriptCallback("actor_on_first_update", is_underground_map)
end