aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-01-13 15:30:00 +0100
committerGitHub <noreply@github.com>2023-01-13 15:30:00 +0100
commit3b2049a933b0831e65283b89c0ecca865ebe985c (patch)
tree0ad93310b6cdb7850ca273687dda3c5ed962bb07
parent26e49bdf49689f64453a398a3a76f7e44946e20c (diff)
downloadNorthstarMods-1.12.0-rc4.tar.gz
NorthstarMods-1.12.0-rc4.zip
Set FW specific convar values via cfg file (#569)v1.12.0-rc4
Squirrel scripts set the value too late, so they do not get updated until after map rotation. Requires https://github.com/R2Northstar/NorthstarLauncher/pull/398 on launcher Co-authored-by: BobTheBob <32057864+BobTheBob9@users.noreply.github.com>
-rw-r--r--Northstar.Custom/mod/cfg/server/cleanup_gamemode_fw.cfg3
-rw-r--r--Northstar.Custom/mod/cfg/server/setup_gamemode_fw.cfg4
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fw.nut4
3 files changed, 7 insertions, 4 deletions
diff --git a/Northstar.Custom/mod/cfg/server/cleanup_gamemode_fw.cfg b/Northstar.Custom/mod/cfg/server/cleanup_gamemode_fw.cfg
new file mode 100644
index 00000000..6961e56b
--- /dev/null
+++ b/Northstar.Custom/mod/cfg/server/cleanup_gamemode_fw.cfg
@@ -0,0 +1,3 @@
+// reset cvars that fortwar set
+cvar_reset sv_max_props_multiplayer
+cvar_reset sv_max_prop_data_dwords_multiplayer
diff --git a/Northstar.Custom/mod/cfg/server/setup_gamemode_fw.cfg b/Northstar.Custom/mod/cfg/server/setup_gamemode_fw.cfg
new file mode 100644
index 00000000..e98ebb1a
--- /dev/null
+++ b/Northstar.Custom/mod/cfg/server/setup_gamemode_fw.cfg
@@ -0,0 +1,4 @@
+// setup engine for fortwar
+// this has to run before server initialisation, so it can't be in gamemode script
+sv_max_props_multiplayer 1250000
+sv_max_prop_data_dwords_multiplayer 2500000
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fw.nut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fw.nut
index 48163b97..89ca0636 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fw.nut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fw.nut
@@ -131,10 +131,6 @@ void function GamemodeFW_Init()
ScoreEvent_SetupEarnMeterValuesForMixedModes()
SetRecalculateTitanReplacementPointCallback(FW_ReCalculateTitanReplacementPoint)
SetRequestTitanAllowedCallback(FW_RequestTitanAllowed)
-
- // so many things in battle, this is required to avoid crash!
- ServerCommand( "sv_max_props_multiplayer 200000" )
- ServerCommand( "sv_max_prop_data_dwords_multiplayer 300000" )
}