Track LocalMods as part of monolith

This commit is contained in:
2026-06-08 18:50:16 +03:00
parent 143f2fed7c
commit 1b214b44c2
1287 changed files with 139255 additions and 1 deletions
@@ -0,0 +1,20 @@
--if Game.IsMultiplayer and CLIENT then return end
CDReb = {} -- Complete Global Darkness Reboot
CDReb.Name = "Complete Global Darkness Reboot"
CDReb.Version = "A1.0.0"
CDReb.VersionNum = 01000000
CDReb.Path = table.pack(...)[1]
-- server-side code (also run in singleplayer)
if (Game.IsMultiplayer and SERVER) or not Game.IsMultiplayer then
-- Version and expansion display
Timer.Wait(function()
local runstring = "\n/// Running Complete Global Darkness Reboot V " .. CDReb.Version .. " ///\n"
print(runstring)
end, 1)
end
dofile(CDReb.Path .. "/Lua/Scripts/Server/NoItemHighlight.lua")
dofile(CDReb.Path .. "/Lua/Scripts/Server/HullDarkness.lua")
dofile(CDReb.Path .. "/Lua/Scripts/Server/LevelDarkness.lua")
@@ -0,0 +1,6 @@
Hook.Add("roundStart", "make hulls dark", function()
for k, hull in pairs(Hull.HullList) do
hull.AmbientLight = Color(0, 0, 0, 0)
end
print("for k, hull in pairs(Hull.HullList) do")
end)
@@ -0,0 +1,14 @@
Hook.Add("roundStart", "make level dark", function()
AttemptLevel()
end)
function AttemptLevel()
Timer.Wait(function()
if (Level.Loaded != nil) then
print("Level.Loaded.LevelData.GenerationParams.AmbientLightColor = Color(0,0,0,0)")
Level.Loaded.LevelData.GenerationParams.AmbientLightColor = Color(0,0,0,0)
elseif (not tostring(Game.GameSession.GameMode) == "Barotrauma.TestGameMode") then
print("LevelDarkness AttemptLevel")
AttemptLevel()
end
end, 35)
end
@@ -0,0 +1,26 @@
Hook.Add("roundStart", "No highlight on item", function()
AttemptGUI()
end)
Hook.Add("stop", "Reenable highlight on item", function()
EnableItemHighlight()
end)
function AttemptGUI()
Timer.Wait(function()
if (GUI != nil) then
print("GUI.GUI.DisableItemHighlights = true")
GUI.GUI.DisableItemHighlights = true
else
print("NoItemHighlight AttemptLevel")
AttemptLevel()
end
end, 35)
end
function EnableItemHighlight()
if (GUI != nil) then
print("GUI.GUI.DisableItemHighlights = false")
GUI.GUI.DisableItemHighlights = false
else
print("NoItemHighlight AttemptLevel")
AttemptLevel()
end
end