Xonotic
all.inc
Go to the documentation of this file.
2  this.netname = "health";
3 #ifdef GAMEQC
4  this.m_field = health;
5 #endif
6 }
8  this.netname = "armor";
9 #ifdef GAMEQC
10  this.m_field = armorvalue;
11 #endif
12 }
13 
15 #ifdef CSQC
16  ATTRIB(AmmoResource, m_hidden, bool, false);
17 #endif
19 
21  this.netname = "shells";
22 #ifdef GAMEQC
23  this.m_field = ammo_shells;
24 #endif
25 }
27  this.netname = "bullets";
28 #ifdef GAMEQC
29  this.m_field = ammo_nails;
30 #endif
31 }
33  this.netname = "rockets";
34 #ifdef GAMEQC
35  this.m_field = ammo_rockets;
36 #endif
37 }
39  this.netname = "cells";
40 #ifdef GAMEQC
41  this.m_field = ammo_cells;
42 #endif
43 }
45  this.netname = "plasma";
46 #ifdef GAMEQC
47  this.m_field = ammo_plasma;
48 #endif
49 #ifdef CSQC
50  this.m_hidden = true; // WIP ammo type
51 #endif
52 }
54  this.netname = "fuel";
55 #ifdef GAMEQC
56  this.m_field = ammo_fuel;
57 #endif
58 #ifdef CSQC
59  this.m_hidden = true; // displayed in a separate panel
60 #endif
61 }
int ammo_fuel
Definition: resources.qh:24
int ammo_rockets
Definition: resources.qh:17
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
int ammo_shells
Definition: resources.qh:15
int ammo_nails
Definition: resources.qh:16
string netname
Definition: powerups.qc:20
int ammo_cells
Definition: resources.qh:18
float armorvalue
Definition: progsdefs.qc:179
#define ATTRIB(...)
Definition: oo.qh:136
int ammo_plasma
Definition: resources.qh:23
float health
Definition: progsdefs.qc:137
#define ENDCLASS(cname)
Definition: oo.qh:269
REGISTER_RESOURCE(HEALTH, NEW(Resource))
Definition: all.inc:1