mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-19 03:28:38 -05:00
Buried: change enemy counter on ghost rounds and round infinity
This commit is contained in:
@ -500,6 +500,14 @@ enemy_counter_hud()
|
||||
while (1)
|
||||
{
|
||||
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)
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
level thread round_timer_hud();
|
||||
|
Reference in New Issue
Block a user