1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-23 21:50:46 -05:00

Encounter: add gained/lost the lead HUD messages

This commit is contained in:
Jbleezy
2023-03-04 16:38:53 -08:00
parent f6c467b754
commit 2a2b7d7f12
2 changed files with 32 additions and 18 deletions

View File

@ -99,6 +99,8 @@ check_for_round_end(winner)
round_end(winner)
{
level endon("end_game");
team = undefined;
if(isDefined(winner))
{
@ -110,20 +112,8 @@ round_end(winner)
{
team = "allies";
}
}
if(isDefined(winner))
{
level.grief_score[winner]++;
level.grief_score_hud["axis"].score[team] setValue(level.grief_score[winner]);
level.grief_score_hud["allies"].score[team] setValue(level.grief_score[winner]);
setteamscore(team, level.grief_score[winner]);
if(level.grief_score[winner] == scripts\zm\zgrief\zgrief_reimagined::get_gamemode_winning_score())
{
game_won(winner);
return;
}
scripts\zm\zgrief\zgrief_reimagined::increment_score(team);
}
players = get_players();