1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-02 18:10:26 -05:00

Fixed enemy counter HUD

This commit is contained in:
Jbleezy
2020-03-25 00:52:19 -07:00
parent 30fafb9415
commit 1132502df2
2 changed files with 8 additions and 7 deletions

View File

@ -31,8 +31,8 @@
* Start with semtex on maps that have semtex * Start with semtex on maps that have semtex
## HUD ## HUD
* Health bar displayed on top center of screen
* Enemy counter displayed on top left of screen * Enemy counter displayed on top left of screen
* Health bar displayed on top center of screen
* Current zone displayed on bottom left of screen * Current zone displayed on bottom left of screen
## Zombies ## Zombies

View File

@ -49,8 +49,7 @@ onplayerspawned()
self tomb_give_shovel(); self tomb_give_shovel();
//self thread enemy_counter_hud(); self thread enemy_counter_hud();
//self thread timer_hud();
self thread health_bar_hud(); self thread health_bar_hud();
self thread zone_hud(); self thread zone_hud();
@ -280,10 +279,10 @@ enemy_counter_hud()
enemy_counter_hud.alpha = 0; enemy_counter_hud.alpha = 0;
enemy_counter_hud.color = ( 1, 1, 1 ); enemy_counter_hud.color = ( 1, 1, 1 );
enemy_counter_hud.hidewheninmenu = 1; enemy_counter_hud.hidewheninmenu = 1;
enemy_counter_hud.label = &"Enemies Remaining: ";
flag_wait( "initial_blackscreen_passed" ); flag_wait( "initial_blackscreen_passed" );
text = "Enemies Remaining: ";
enemy_counter_hud.alpha = 1; enemy_counter_hud.alpha = 1;
while (1) while (1)
{ {
@ -291,10 +290,12 @@ enemy_counter_hud()
if (enemies == 0) if (enemies == 0)
{ {
enemies = ""; enemy_counter_hud setText("");
}
else
{
enemy_counter_hud setValue(enemies);
} }
enemy_counter_hud setText(text + enemies);
wait 0.05; wait 0.05;
} }