aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/lobby
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-17 23:46:52 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-17 23:46:52 +0100
commit27bd240871b7c0f2f49fef137718b2e3c208e3b4 (patch)
treea46f401fa389edbb42a32fe8674cbde3a28e7632 /Northstar.CustomServers/scripts/vscripts/lobby
parent1c1d36fad84687a93a629525145c557f78cbf673 (diff)
downloadNorthstarMods-27bd240871b7c0f2f49fef137718b2e3c208e3b4.tar.gz
NorthstarMods-27bd240871b7c0f2f49fef137718b2e3c208e3b4.zip
ctf switchsides spawn fix (untested)
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/lobby')
-rw-r--r--Northstar.CustomServers/scripts/vscripts/lobby/_private_lobby.gnut14
1 files changed, 14 insertions, 0 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/lobby/_private_lobby.gnut b/Northstar.CustomServers/scripts/vscripts/lobby/_private_lobby.gnut
index 1b4e5dbd..896ab207 100644
--- a/Northstar.CustomServers/scripts/vscripts/lobby/_private_lobby.gnut
+++ b/Northstar.CustomServers/scripts/vscripts/lobby/_private_lobby.gnut
@@ -17,6 +17,8 @@ void function PrivateLobby_Init()
AddClientCommandCallback( "PrivateMatchSetMode", ClientCommandCallback_PrivateMatchSetMode )
AddClientCommandCallback( "SetCustomMap", ClientCommandCallback_SetCustomMap )
AddClientCommandCallback( "PrivateMatchSwitchTeams", ClientCommandCallback_PrivateMatchSwitchTeams )
+
+ AddClientCommandCallback( "PrivateMatchSetPlaylistVarOverride", ClientCommandCallback_PrivateMatchSetPlaylistVarOverride )
AddClientCommandCallback( "ResetMatchSettingsToDefault", ClientCommandCallback_ResetMatchSettingsToDefault )
}
@@ -160,6 +162,18 @@ void function RefreshPlayerTeams()
}
}
+bool function ClientCommandCallback_PrivateMatchSetPlaylistVarOverride( entity player, array<string> args )
+{
+ // note: atm this doesn't actually check for the number of overrides, since there's no way to do this on server yet
+ // need to expose this to script soon
+
+ if ( args.len() < 2 )
+ return true
+
+ SetPlaylistVarOverride( args[0], args[1] )
+ return true
+}
+
bool function ClientCommandCallback_ResetMatchSettingsToDefault( entity player, array<string> args )
{
ClearPlaylistVarOverrides()