1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-19 11:38:37 -05:00

Buried: change enemy counter on ghost rounds and round infinity

This commit is contained in:
Jbleezy
2023-04-04 18:22:58 -07:00
parent e23cfb9f04
commit 1b44c1398b

View File

@ -500,6 +500,14 @@ enemy_counter_hud()
while (1) while (1)
{ {
enemies = get_round_enemy_array().size + level.zombie_total; enemies = get_round_enemy_array().size + level.zombie_total;
if (level flag_exists("spawn_ghosts") && flag("spawn_ghosts"))
{
enemies = get_current_ghost_count();
}
else if (level flag_exists("sq_tpo_special_round_active") && flag("sq_tpo_special_round_active"))
{
enemies = 0;
}
if (enemies == 0) if (enemies == 0)
{ {
@ -514,6 +522,20 @@ enemy_counter_hud()
} }
} }
get_current_ghost_count()
{
ghost_count = 0;
ais = getaiarray( level.zombie_team );
foreach ( ai in ais )
{
if ( isdefined( ai.is_ghost ) && ai.is_ghost )
ghost_count++;
}
return ghost_count;
}
timer_hud() timer_hud()
{ {
level thread round_timer_hud(); level thread round_timer_hud();