I am trying to make my hud display an ammo bar similar to the CG_PLAYER_HEALTH_BAR thing.
The code for the health bar I have is
//HEALTH BAR LEFT
itemDef
{
name "healthbarleft"
rect 290 275 30 5
visible 1
decoration
forecolor 0.0 0.8 1.0 .3
align ITEM_ALIGN_RIGHT
textscale 0
ownerdraw CG_PLAYER_HEALTH_BAR
}
//HEALTH BAR RIGHT
itemDef
{
name "healthbarright"
rect 320 275 30 5
visible 1
decoration
forecolor 0.0 0.8 1.0 .3
align ITEM_ALIGN_LEFT
textscale 0
ownerdraw CG_PLAYER_HEALTH_BAR
}I want to make it display a bar like that for ammo, but CG_PLAYER_AMMO_BAR is not defined, and when I use CG_PLAYER_AMMO_VALUE it just displays a number there, instead of a bar.
Does anyone know what I should put in ownerdraw to make this work?