From 44480b3b7c80da439a0ca09f9c13636ed7e2db03 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Fri, 31 Dec 2021 03:51:20 -0800 Subject: [PATCH] Grief: fix last player not getting nade award on round restart --- scripts/zm/replaced/_zm_game_module.gsc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/zm/replaced/_zm_game_module.gsc b/scripts/zm/replaced/_zm_game_module.gsc index 796f26ec..29472bf1 100644 --- a/scripts/zm/replaced/_zm_game_module.gsc +++ b/scripts/zm/replaced/_zm_game_module.gsc @@ -232,6 +232,16 @@ zombie_goto_round(target_round) } maps/mp/zombies/_zm_game_module::respawn_players(); + + level thread player_respawn_award(); + + level thread scripts/zm/main/_zm_reimagined_zgrief::round_start_wait(5); +} + +player_respawn_award() +{ + wait 0.05; // let all players fully respawn + maps/mp/zombies/_zm::award_grenades_for_survivors(); players = get_players(); foreach(player in players) @@ -249,6 +259,4 @@ zombie_goto_round(target_round) player setweaponammoclip(player get_player_placeable_mine(), 2); } } - - level thread scripts/zm/main/_zm_reimagined_zgrief::round_start_wait(5); } \ No newline at end of file