From 7cac56cb9bcaabed9562a7b46718f5c5de3400b8 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Fri, 17 Dec 2021 21:53:06 +0000 Subject: wargames intro and many fixes --- .../mod/scripts/vscripts/lobby/_private_lobby.gnut | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/lobby') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut b/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut index 6dd048092..7011de08a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/lobby/_private_lobby.gnut @@ -124,6 +124,10 @@ void function StartMatch() WaitFrame() } + // do this before setting playlist + if ( GetConVarBool( "ns_private_match_override_maxplayers" ) ) + SetPlaylistVarOverride( "max_players", GetCurrentPlaylistVarString( "max_players", "16" ) ) + try { // todo: not every gamemode uses the same playlist as their name! need some code to resolve these manually -- cgit v1.2.3