seta hud_weaponicons 1 "enable/disable this panel"
seta hud_weaponicons_pos "0.930000 0.090000" "position of this panel"
seta hud_weaponicons_size "0.040000 0.490000" "size of this panel"
-seta hud_weaponicons_number 1 "show number of weapon"
+seta hud_weaponicons_number 1 "1 = show number of weapon, 2 = show bound key of weapon"
seta hud_weaponicons_accuracy_yellow 40 "percentage at which the accuracy color is yellow"
seta hud_weaponicons_complainbubble 1 "complain bubble (out of ammo, weapon not available etc)"
seta hud_weaponicons_complainbubble_size 1 "size multiplier of the complain bubble"
var string autocvar_hud_weaponicons_bg_border;
var string autocvar_hud_weaponicons_bg_padding;
var float autocvar_hud_weaponicons_accuracy_yellow;
+var float autocvar_hud_weaponicons_number;
var float autocvar_hud_weaponicons_complainbubble;
var float autocvar_hud_weaponicons_complainbubble_size;
var float autocvar_hud_weaponicons_complainbubble_time;
{
drawpic_aspect_skin(pos + eX * column * mySize_x*(1/columns) + eY * row * mySize_y*(1/rows), strcat("weapon", self.netname), eX * mySize_x*(1/columns) + eY * mySize_y*(1/rows), '1 1 1', fade * panel_fg_alpha, DRAWFLAG_NORMAL);
- if(cvar_or("hud_weaponicons_number", 1))
+ if(autocvar_hud_weaponicons_number == 1) // weapon number
drawstring(pos + eX * column * mySize_x*(1/columns) + eY * row * mySize_y*(1/rows), ftos(weapid), '1 1 0' * 0.5 * mySize_y*(1/rows), '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
+ else if(autocvar_hud_weaponicons_number == 2) // bind
+ drawstring(pos + eX * column * mySize_x*(1/columns) + eY * row * mySize_y*(1/rows), getcommandkey(ftos(weapid), strcat("impulse ", ftos(weapid))), '1 1 0' * 0.5 * mySize_y*(1/rows), '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
}
+
// draw a "ghost weapon icon" if you don't have the weapon
else
{