pos_x += lettersize / 2;\r
}\r
\r
- drawstring(pos, str, vsize, rgb, alpha, dflags);\r
+ drawstring_aspect(pos, str, vsize, rgb, alpha, dflags);\r
}\r
\r
void Sbar_DrawXNum_Colored (vector pos, float x, float lettersize, float alpha)\r
}\r
\r
vector health_pos, armor_pos;\r
- health_pos = bottom - '60 58 0';\r
+ health_pos = bottom - '55 58 0';\r
armor_pos = bottom - '52.5 68 0';\r
\r
// armor\r
\r
// health\r
x = health;\r
- drawpic(health_pos + '4.5 16 0', "gfx/hud/sb_health", '32 32 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
- if(x < 100) health_pos_x += 5; // always center\r
- if(x < 10) health_pos_x += 5; // always center\r
+ drawpic(health_pos + '0 16 0', "gfx/hud/sb_health", '32 32 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+ health_pos -= '1 0 0' * stringwidth(ftos(x), FALSE, '22 22 0') * 0.5;\r
Sbar_DrawXNum_Colored(health_pos, x, 22, sbar_alpha_fg);\r
\r
// ammo\r