Draw ammo_money in the HUD

Discuss programming topics for the various GPL'd game engine sources.
Post Reply
Stealth Kill
Posts: 83
Joined: Fri Dec 29, 2006 12:34 pm

Draw ammo_money in the HUD

Post by Stealth Kill »

Hi,

is it possible to draw the ammo_money to the HUD?
i tried to replace ammo_cells with ammo_money but it doesn´t work.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Post by Spike »

FrikQCC notation:
var .float ammo_money = ammo_cells;

Precompiler notation:
#define ammo_money ammo_cells

Standard qc notation:
just use ammo_cells whenever you mean ammo_money and just ignore the fact that you have a clumsy name for the field. This is meant to be QC, afterall.
Stealth Kill
Posts: 83
Joined: Fri Dec 29, 2006 12:34 pm

Post by Stealth Kill »

thats a good idea and works well thank you
Post Reply