mirror of
https://github.com/JezuzLizard/Public-BO2-Mods.git
synced 2025-06-08 02:58:24 -05:00
updated all restart functions to use waittill
This commit is contained in:
parent
2e94a8346d
commit
2d384547c9
@ -121,9 +121,9 @@ add_bots()
|
||||
{
|
||||
flag_clear( "solo_game" );
|
||||
flag_clear( "start_zombie_round_logic" );
|
||||
players = get_players();
|
||||
level.waiting = 1;
|
||||
thread waitMessage();
|
||||
players = get_players();
|
||||
level.waiting = 1;
|
||||
thread waitMessage();
|
||||
while ( players.size < level.player_quota && level.player_quota_active || players.size < 1)
|
||||
{
|
||||
wait 0.5;
|
||||
@ -133,7 +133,7 @@ add_bots()
|
||||
level.countdown_start = 1;
|
||||
thread countdownTimer();
|
||||
wait level.wait_time;
|
||||
flag_set( "start_zombie_round_logic" );
|
||||
flag_set( "start_zombie_round_logic" );
|
||||
}
|
||||
|
||||
waitMessage()
|
||||
@ -296,15 +296,9 @@ gscRestart()
|
||||
{
|
||||
return;
|
||||
}
|
||||
while ( 1 )
|
||||
{
|
||||
if ( level.intermission )
|
||||
{
|
||||
wait 20;
|
||||
map_restart( false );
|
||||
}
|
||||
wait 1;
|
||||
}
|
||||
level waittill( "end_game" );
|
||||
wait 20;
|
||||
map_restart( false );
|
||||
}
|
||||
|
||||
emptyLobbyRestart()
|
||||
@ -334,16 +328,10 @@ gscMapChange()
|
||||
{
|
||||
return;
|
||||
}
|
||||
while ( 1 )
|
||||
{
|
||||
if ( level.intermission )
|
||||
{
|
||||
wait 20;
|
||||
mapChange( location() );
|
||||
map_restart( false );
|
||||
}
|
||||
wait 1;
|
||||
}
|
||||
level waittill( "end_game" );
|
||||
wait 20;
|
||||
mapChange( location() );
|
||||
map_restart( false );
|
||||
}
|
||||
|
||||
location()
|
||||
|
Loading…
x
Reference in New Issue
Block a user