From fdd62975cc817bbad3ccfa9722dd4ea8e7d52d33 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Thu, 28 Dec 2023 19:08:14 -0800 Subject: [PATCH] Search & Rezurrect: add all allies down message --- english/localizedstrings/reimagined.str | 3 +++ scripts/zm/zgrief/zgrief_reimagined.gsc | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/english/localizedstrings/reimagined.str b/english/localizedstrings/reimagined.str index 2aa4b359..a756c322 100644 --- a/english/localizedstrings/reimagined.str +++ b/english/localizedstrings/reimagined.str @@ -174,6 +174,9 @@ LANG_ENGLISH "Ally Down! [&&1 Remaining]" REFERENCE ZOMBIE_ZGRIEF_ALLY_REVIVED LANG_ENGLISH "Ally Revived! [&&1 Remaining]" +REFERENCE ZOMBIE_ZGRIEF_ALL_ALLIES_DOWN +LANG_ENGLISH "All Allies Down!" + REFERENCE ZOMBIE_ZGRIEF_PLAYER_DEAD LANG_ENGLISH "Enemy Bled Out! [&&1 Remaining]" diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index 309dd0b0..54f775d7 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -1246,7 +1246,7 @@ update_players_on_downed(excluded_player) { if (players_remaining == 0) { - if (other_players_remaining >= 1) + if (other_players_remaining > 0) { player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_ALL_PLAYERS_DOWN"); player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_SURVIVE", undefined, 30, 1); @@ -1262,7 +1262,14 @@ update_players_on_downed(excluded_player) { foreach (player in players) { - player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_ALLY_BLED_OUT", players_remaining, 30); + if (players_remaining == 0) + { + player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_ALL_ALLIES_DOWN", undefined, 30); + } + else + { + player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_ALLY_BLED_OUT", players_remaining, 30); + } } }