blob: 4d6dc39379707b7be1941e1e44658d43f1fcf80b (
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
|
global function CodeCallback_MatchIsOver
void function CodeCallback_MatchIsOver()
{
foreach ( entity player in GetPlayerArray() )
SavePdataForEntityIndex( player.GetPlayerIndex() )
if ( !IsPrivateMatch() && IsMatchmakingServer() )
SetUIVar( level, "putPlayerInMatchmakingAfterDelay", true )
else
SetUIVar( level, "putPlayerInMatchmakingAfterDelay", false )
if ( GetCurrentPlaylistVarInt( "return_to_private_lobby", 0 ) == 1 ) // set in _private_lobby.gnut, temp lol
{
SetCurrentPlaylist( "private_match" ) // needed for private lobby to load
ServerCommand( "changelevel mp_lobby" )
}
#if DEV
if ( !IsMatchmakingServer() )
GameRules_ChangeMap( "mp_lobby", GAMETYPE )
#endif // #if DEV
}
|