Track LocalMods as part of monolith
This commit is contained in:
@@ -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")
|
||||
+6
@@ -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)
|
||||
+14
@@ -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
|
||||
+26
@@ -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
|
||||
Reference in New Issue
Block a user