1 #using scripts\codescripts\struct;
3 #using scripts\shared\util_shared;
5 #insert scripts\shared\shared.gsh;
7 #using scripts\mp\gametypes\_globallogic_utils;
9 #using scripts\mp\_util;
18 assert( seconds >= 0 );
20 if ( level.timelimit > 0 )
36 if( !isdefined( level.startTime ) )
43 seconds_remaining = millisecs_remaining / 1000;
45 if( seconds_remaining <= seconds )
58 if ( level.scoreLimit > 0 )
60 if ( level.teamBased )
75 if ( level.roundScoreLimit > 0 )
77 roundScoreToBeat = ( level.roundScoreLimit * game[
"roundsplayed" ] ) + score;
78 if ( level.teamBased )
91 foreach( team
in level.teams )
93 if ( game[
"teamScores"][team] >= score )
121 players = GetPlayers();
123 for ( i = 0; i < players.size; i++ )
125 if ( isdefined( players[i].score ) && players[i].score >= score )
137 if ( isdefined( notify_string ) )
139 level notify( notify_string );
142 if ( isdefined( client_notify_string ) )