From 3b2049a933b0831e65283b89c0ecca865ebe985c Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Fri, 13 Jan 2023 15:30:00 +0100 Subject: Set FW specific convar values via cfg file (#569) 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> --- Northstar.Custom/mod/cfg/server/cleanup_gamemode_fw.cfg | 3 +++ Northstar.Custom/mod/cfg/server/setup_gamemode_fw.cfg | 4 ++++ Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fw.nut | 4 ---- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 Northstar.Custom/mod/cfg/server/cleanup_gamemode_fw.cfg create mode 100644 Northstar.Custom/mod/cfg/server/setup_gamemode_fw.cfg (limited to 'Northstar.Custom/mod') 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" ) } -- cgit v1.2.3