Xonotic
all.inc File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AmmoResource
 

Functions

 REGISTER_RESOURCE (HEALTH, NEW(Resource))
 
 REGISTER_RESOURCE (ARMOR, NEW(Resource))
 
 REGISTER_RESOURCE (SHELLS, NEW(AmmoResource))
 
 REGISTER_RESOURCE (BULLETS, NEW(AmmoResource))
 
 REGISTER_RESOURCE (ROCKETS, NEW(AmmoResource))
 
 REGISTER_RESOURCE (CELLS, NEW(AmmoResource))
 
 REGISTER_RESOURCE (PLASMA, NEW(AmmoResource))
 
 REGISTER_RESOURCE (FUEL, NEW(AmmoResource))
 

Function Documentation

◆ REGISTER_RESOURCE() [1/8]

REGISTER_RESOURCE ( HEALTH  ,
NEW(Resource  
)

Definition at line 1 of file all.inc.

References health, and netname.

1  {
2  this.netname = "health";
3 #ifdef GAMEQC
4  this.m_field = health;
5 #endif
6 }
string netname
Definition: powerups.qc:20
float health
Definition: progsdefs.qc:137

◆ REGISTER_RESOURCE() [2/8]

REGISTER_RESOURCE ( ARMOR  ,
NEW(Resource  
)

Definition at line 7 of file all.inc.

References armorvalue, and netname.

7  {
8  this.netname = "armor";
9 #ifdef GAMEQC
10  this.m_field = armorvalue;
11 #endif
12 }
string netname
Definition: powerups.qc:20
float armorvalue
Definition: progsdefs.qc:179

◆ REGISTER_RESOURCE() [3/8]

REGISTER_RESOURCE ( SHELLS  ,
NEW(AmmoResource  
)

Definition at line 20 of file all.inc.

References ammo_shells, and netname.

20  {
21  this.netname = "shells";
22 #ifdef GAMEQC
23  this.m_field = ammo_shells;
24 #endif
25 }
int ammo_shells
Definition: resources.qh:15
string netname
Definition: powerups.qc:20

◆ REGISTER_RESOURCE() [4/8]

REGISTER_RESOURCE ( BULLETS  ,
NEW(AmmoResource  
)

Definition at line 26 of file all.inc.

References ammo_nails, and netname.

26  {
27  this.netname = "bullets";
28 #ifdef GAMEQC
29  this.m_field = ammo_nails;
30 #endif
31 }
int ammo_nails
Definition: resources.qh:16
string netname
Definition: powerups.qc:20

◆ REGISTER_RESOURCE() [5/8]

REGISTER_RESOURCE ( ROCKETS  ,
NEW(AmmoResource  
)

Definition at line 32 of file all.inc.

References ammo_rockets, and netname.

32  {
33  this.netname = "rockets";
34 #ifdef GAMEQC
35  this.m_field = ammo_rockets;
36 #endif
37 }
int ammo_rockets
Definition: resources.qh:17
string netname
Definition: powerups.qc:20

◆ REGISTER_RESOURCE() [6/8]

REGISTER_RESOURCE ( CELLS  ,
NEW(AmmoResource  
)

Definition at line 38 of file all.inc.

References ammo_cells, and netname.

38  {
39  this.netname = "cells";
40 #ifdef GAMEQC
41  this.m_field = ammo_cells;
42 #endif
43 }
string netname
Definition: powerups.qc:20
int ammo_cells
Definition: resources.qh:18

◆ REGISTER_RESOURCE() [7/8]

REGISTER_RESOURCE ( PLASMA  ,
NEW(AmmoResource  
)

Definition at line 44 of file all.inc.

References ammo_plasma, and netname.

44  {
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 }
string netname
Definition: powerups.qc:20
int ammo_plasma
Definition: resources.qh:23

◆ REGISTER_RESOURCE() [8/8]

REGISTER_RESOURCE ( FUEL  ,
NEW(AmmoResource  
)

Definition at line 53 of file all.inc.

References ammo_fuel, and netname.

53  {
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
string netname
Definition: powerups.qc:20