Hey,
I'm trying to make a custom hud (editing the hud.menu file).
I'm trying to replace the graphical ammo counter with a plain text one.
itemDef
{
name "clipGraphic"
rect (WEAPINFO_X - 68) (WEAPINFO_Y + 34) 1 1//(WEAPINFO_X - 30) (WEAPINFO_Y + 32 -6) 1 1
forecolor 1 1 1 HUD_ALPHA
exp text ()//( dvarString( "___probot_ammoclip" ) + " | " + dvarString( "___probot_ammostock") )
textalign ITEM_ALIGN_LEFT
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
textfont UI_FONT_OBJECTIVE
forecolor 1 1 1 HUD_FOREGROUND_ALPHA
//ownerdraw CG_PLAYER_WEAPON_AMMO_CLIP_GRAPHIC
visible 1
decoration
}
Here is the bit of code, note: was trying to workaround it using dvars, but was having trouble getting them set correctly everytime when player shoots/reloads/switches etc...
Is the a smart command like 'player( currentammoclip )' or something similar?
Or does anyone have another suggestion?