1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-11 23:57:59 -05:00

Grief: round reset invulnerability fix

This commit is contained in:
Jbleezy
2021-12-06 21:34:00 -08:00
parent cc67fdd486
commit 657f170720

View File

@ -308,17 +308,19 @@ round_start_wait(time, initial)
initial = false; initial = false;
} }
if(!initial)
{
wait_network_frame(); // need a wait or players can move
}
level thread zombie_spawn_wait(time + 5); level thread zombie_spawn_wait(time + 5);
players = get_players(); players = get_players();
foreach(player in players) foreach(player in players)
{ {
player freezeControls(1); if(!initial)
{
player thread wait_and_freeze_controls(1); // need a wait or players can move
}
else
{
player freezeControls(1);
}
player enableInvulnerability(); player enableInvulnerability();
} }
@ -336,6 +338,15 @@ round_start_wait(time, initial)
} }
} }
wait_and_freeze_controls(bool)
{
self endon("disconnect");
wait_network_frame();
self freezeControls(bool);
}
round_start_countdown_hud(time) round_start_countdown_hud(time)
{ {
countdown = createServerFontString( "objective", 2.2 ); countdown = createServerFontString( "objective", 2.2 );