1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Search & Rezurrect: add ally down and ally revived messages

This commit is contained in:
Jbleezy 2023-12-28 18:57:48 -08:00
parent cda79da535
commit 4548ceb0f4
2 changed files with 24 additions and 47 deletions

View File

@ -168,6 +168,12 @@ LANG_ENGLISH "Enemy Down! [&&1 Remaining]"
REFERENCE ZOMBIE_ZGRIEF_PLAYER_REVIVED
LANG_ENGLISH "Enemy Revived! [&&1 Remaining]"
REFERENCE ZOMBIE_ZGRIEF_ALLY_BLED_OUT
LANG_ENGLISH "Ally Down! [&&1 Remaining]"
REFERENCE ZOMBIE_ZGRIEF_ALLY_REVIVED
LANG_ENGLISH "Ally Revived! [&&1 Remaining]"
REFERENCE ZOMBIE_ZGRIEF_PLAYER_DEAD
LANG_ENGLISH "Enemy Bled Out! [&&1 Remaining]"

View File

@ -1258,6 +1258,14 @@ update_players_on_downed(excluded_player)
}
}
if (other_players_remaining > 0)
{
foreach (player in players)
{
player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_ALLY_BLED_OUT", players_remaining, 30);
}
}
if (players_remaining == 1)
{
foreach (player in players)
@ -1299,8 +1307,10 @@ update_players_on_revived(revived_player, reviver)
{
team = revived_player.team;
other_team = getOtherTeam(team);
players = get_players(team);
other_players = get_players(other_team);
players_remaining = get_number_of_valid_players_team(team);
other_players_remaining = get_number_of_valid_players_team(other_team);
grief_score_hud_set_player_count(team, players_remaining);
@ -1308,6 +1318,14 @@ update_players_on_revived(revived_player, reviver)
{
player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_PLAYER_REVIVED", players_remaining);
}
if (other_players_remaining > 0)
{
foreach (player in players)
{
player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_ALLY_REVIVED", players_remaining, 30);
}
}
}
update_players_on_disconnect(excluded_player)
@ -2284,53 +2302,6 @@ grief_laststand_weapons_return()
return 1;
}
sudden_death()
{
level endon("end_game");
if (level.scr_zm_ui_gametype_obj != "zsnr")
{
return;
}
level.sudden_death = 0;
while (1)
{
level waittill("restart_round_start");
level.sudden_death = 0;
time = level waittill_notify_or_timeout("restart_round", 300);
if (!isDefined(time))
{
continue;
}
level.sudden_death = 1;
players = get_players();
foreach (player in players)
{
player thread show_grief_hud_msg("Sudden Death!");
player thread show_grief_hud_msg("Lose 100 Health!", undefined, 30, 1);
player thread red_flashing_overlay_loop();
health = player.health;
player setMaxHealth(player.maxhealth - 100);
if (player.health > health)
{
player.health = health;
}
player.premaxhealth -= 100;
}
}
}
red_flashing_overlay_loop()
{
level endon("restart_round");