aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/sh_northstar_utils.gnut
blob: 9fde28ddc40a358c35ddef7a31d61d815b3ccd7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
globalize_all_functions

global enum eNorthstarLobbyType
{
	PrivateMatchLobby, // normal vanilla private lobby
	IntermissionLobby, // similar to tf1's intermission lobby, chooses next map automatically, can't change settings unless you're host
}

// whether the server is a modded, northstar server
bool function IsNorthstarServer()
{
	return GetConVarBool( "ns_is_modded_server" )
}

// whether the game should return to the lobby on GameRules_EndMatch()
bool function ShouldReturnToLobby()
{	
	return GetConVarBool( "ns_should_return_to_lobby" )
}

int function GetNorthstarLobbyType()
{
	if ( !IsNorthstarServer() )
		return eNorthstarLobbyType.PrivateMatchLobby
	
	return GetConVarInt( "ns_lobby_type" )
}