Forum

Draw ammo_money in the HUD

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Draw ammo_money in the HUD

Postby Stealth Kill » Sat Oct 20, 2007 6:44 am

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.
Stealth Kill
 
Posts: 83
Joined: Fri Dec 29, 2006 12:34 pm

Postby Spike » Sat Oct 20, 2007 9:44 am

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.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Stealth Kill » Sat Oct 20, 2007 12:34 pm

thats a good idea and works well thank you
Stealth Kill
 
Posts: 83
Joined: Fri Dec 29, 2006 12:34 pm


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest