+#include "healtharmor.qh"
+
+#include <common/deathtypes/all.qh>
+
/** Health/armor (#3) */
void HUD_HealthArmor()
{
if(hud != HUD_NORMAL) return;
if(spectatee_status == -1) return;
- health = getstati(STAT_HEALTH);
+ health = STAT(HEALTH);
if(health <= 0)
{
prev_health = -1;
return;
}
- armor = getstati(STAT_ARMOR);
+ armor = STAT(ARMOR);
// code to check for spectatee_status changes is in Ent_ClientData()
// prev_p_health and prev_health can be set to -1 there
prev_health = 0;
prev_armor = 0;
}
- fuel = getstati(STAT_FUEL);
+ fuel = STAT(FUEL);
}
else
{
pos = panel_pos;
mySize = panel_size;
+ HUD_Scale_Enable();
HUD_Panel_DrawBg(1);
if(panel_bg_padding)
{