+#include "ammo.qh"
+
+#include <common/t_items.qh>
+
// Ammo (#1)
void DrawNadeProgressBar(vector myPos, vector mySize, float progress, vector color)
void DrawAmmoItem(vector myPos, vector mySize, .int ammoType, bool isCurrent, bool isInfinite)
{
+ TC(bool, isCurrent); TC(bool, isInfinite);
if(ammoType == ammo_none)
return;
pos = panel_pos;
mySize = panel_size;
+ if (autocvar_hud_panel_ammo_dynamichud)
+ HUD_Scale_Enable();
+ else
+ HUD_Scale_Disable();
HUD_Panel_DrawBg(1);
if(panel_bg_padding)
{
columns = ceil((total_ammo_count)/rows);
ammo_size = eX * mySize.x*(1/columns) + eY * mySize.y*(1/rows);
- vector offset = '0 0 0'; // fteqcc sucks
+ vector offset = '0 0 0';
float newSize;
if(ammo_size.x/ammo_size.y > 3)
{