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:
@ -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 );
|
||||||
|
Reference in New Issue
Block a user