Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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 (ARMOR, NEW(Resource))
 REGISTER_RESOURCE (BULLETS, NEW(AmmoResource))
 REGISTER_RESOURCE (CELLS, NEW(AmmoResource))
 REGISTER_RESOURCE (FUEL, NEW(AmmoResource))
 REGISTER_RESOURCE (HEALTH, NEW(Resource))
 REGISTER_RESOURCE (ROCKETS, NEW(AmmoResource))
 REGISTER_RESOURCE (SHELLS, NEW(AmmoResource))

Function Documentation

◆ REGISTER_RESOURCE() [1/7]

REGISTER_RESOURCE ( ARMOR ,
NEW(Resource)  )

Definition at line 7 of file all.inc.

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 resources.qh:10

References armorvalue, and netname.

◆ REGISTER_RESOURCE() [2/7]

REGISTER_RESOURCE ( BULLETS ,
NEW(AmmoResource)  )

Definition at line 34 of file all.inc.

34 {
35 this.netname = "bullets";
36#ifdef GAMEQC
37 this.m_field = ammo_nails;
38#endif
39 this.m_name = _("Bullets");
40 this.m_icon = "ammo_bullets";
41 this.m_color = '0.678 0.941 0.522';
42}
string m_name
Definition scores.qh:142
int ammo_nails
Definition resources.qh:16

References ammo_nails, m_name, and netname.

◆ REGISTER_RESOURCE() [3/7]

REGISTER_RESOURCE ( CELLS ,
NEW(AmmoResource)  )

Definition at line 52 of file all.inc.

52 {
53 this.netname = "cells";
54#ifdef GAMEQC
55 this.m_field = ammo_cells;
56#endif
57 this.m_name = _("Cells");
58 this.m_icon = "ammo_cells";
59 this.m_color = '0.545 0.882 0.969';
60}
int ammo_cells
Definition resources.qh:18

References ammo_cells, m_name, and netname.

◆ REGISTER_RESOURCE() [4/7]

REGISTER_RESOURCE ( FUEL ,
NEW(AmmoResource)  )

Definition at line 61 of file all.inc.

61 {
62 this.netname = "fuel";
63#ifdef GAMEQC
64 this.m_field = ammo_fuel;
65#endif
66 this.m_name = _("Fuel");
67 this.m_icon = "ammo_fuel";
68 this.m_color = '0.984 0.878 0.506';
69#ifdef CSQC
70 this.m_hidden = true; // displayed in a separate panel
71#endif
72}
bool m_hidden
Definition guide.qh:29
const int ammo_fuel
Definition resources.qh:20

References ammo_fuel, m_hidden, m_name, and netname.

◆ REGISTER_RESOURCE() [5/7]

REGISTER_RESOURCE ( HEALTH ,
NEW(Resource)  )

Definition at line 1 of file all.inc.

1 {
2 this.netname = "health";
3#ifdef GAMEQC
4 this.m_field = health;
5#endif
6}
float health
Legacy fields for the resources. To be removed.
Definition resources.qh:9

References health, and netname.

◆ REGISTER_RESOURCE() [6/7]

REGISTER_RESOURCE ( ROCKETS ,
NEW(AmmoResource)  )

Definition at line 43 of file all.inc.

43 {
44 this.netname = "rockets";
45#ifdef GAMEQC
46 this.m_field = ammo_rockets;
47#endif
48 this.m_name = _("Rockets");
49 this.m_icon = "ammo_rockets";
50 this.m_color = '0.918 0.686 0.525';
51}
int ammo_rockets
Definition resources.qh:17

References ammo_rockets, m_name, and netname.

◆ REGISTER_RESOURCE() [7/7]

REGISTER_RESOURCE ( SHELLS ,
NEW(AmmoResource)  )

Definition at line 25 of file all.inc.

25 {
26 this.netname = "shells";
27#ifdef GAMEQC
28 this.m_field = ammo_shells;
29#endif
30 this.m_name = _("Shells");
31 this.m_icon = "ammo_shells";
32 this.m_color = '0.604 0.647 0.671';
33}
int ammo_shells
Definition resources.qh:15

References ammo_shells, m_name, netname, NEW, and REGISTER_RESOURCE.