From fc1b7244ac4bac7fc592840ee04d0fcee78b3ef3 Mon Sep 17 00:00:00 2001 From: edshot99 Date: Fri, 26 Jan 2024 15:37:34 -0600 Subject: [PATCH] extra configuration for my server --- misc/lua/autorun/server/edshot_gm_config.lua | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 misc/lua/autorun/server/edshot_gm_config.lua diff --git a/misc/lua/autorun/server/edshot_gm_config.lua b/misc/lua/autorun/server/edshot_gm_config.lua new file mode 100644 index 0000000..d66a3bf --- /dev/null +++ b/misc/lua/autorun/server/edshot_gm_config.lua @@ -0,0 +1,28 @@ + +local gm = engine.ActiveGamemode() + +if gm == "terrortown" then + RunConsoleCommand("mapcyclefile", "mapcycle_terrortown.txt") +elseif gm == "prop_hunt" then + RunConsoleCommand("mapcyclefile", "mapcycle_prop_hunt.txt") +elseif gm == "deathrun" then + RunConsoleCommand("mapcyclefile", "mapcycle_deathrun.txt") +elseif gm == "melonracer" then + RunConsoleCommand("mapcyclefile", "mapcycle_melonracer.txt") +elseif gm == "melonbomber" then + RunConsoleCommand("mapcyclefile", "mapcycle_melonbomber.txt") +elseif gm == "suicidebarrels" then + RunConsoleCommand("mapcyclefile", "mapcycle_suicidebarrels.txt") +elseif gm == "garryware13" then + RunConsoleCommand("mapcyclefile", "mapcycle_garryware13.txt") +elseif gm == "blast" then + RunConsoleCommand("mapcyclefile", "mapcycle_blast.txt") + resource.AddWorkshop("1526407351") + resource.AddWorkshop("2840031720") + timer.Simple(3.0, function() RunConsoleCommand("sv_gravity", "100") end) +elseif gm == "flood" then + RunConsoleCommand("mapcyclefile", "mapcycle_flood.txt") +else + RunConsoleCommand("mapcyclefile", "mapcycle.txt") +end +