Xonotic
ammo.qh File Reference
+ Include dependency graph for ammo.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Ammo
 
class  Bullets
 
class  Shells
 

Functions

 REGISTER_ITEM (Bullets, Bullets)
 
 REGISTER_ITEM (Cells, Ammo)
 
 REGISTER_ITEM (Plasma, Ammo)
 
 REGISTER_ITEM (Rockets, Ammo)
 
 REGISTER_ITEM (Shells, Shells)
 

Function Documentation

◆ REGISTER_ITEM() [1/5]

REGISTER_ITEM ( Bullets  ,
Bullets   
)

Definition at line 45 of file ammo.qh.

References ITEM_FLAG_NORMAL, ITEM_FLAG_RESOURCE, m_name, netname, and spawnflags.

45  {
46  this.m_canonical_spawnfunc = "item_bullets";
47 #ifdef GAMEQC
49  this.m_model = MDL_Bullets_ITEM;
50 #endif
51  this.netname = "bullets";
52  this.m_name = _("bullets");
53  this.m_icon = "ammo_bullets";
54 #ifdef SVQC
55  this.m_botvalue = 1500;
56  this.m_itemid = IT_RESOURCE;
57  this.m_iteminit = ammo_bullets_init;
58 #endif
59 }
Item is usable during normal gameplay.
Definition: item.qh:98
string netname
Definition: powerups.qc:20
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
Item is is a resource, not a held item.
Definition: item.qh:100
string m_name
Definition: scores.qh:135

◆ REGISTER_ITEM() [2/5]

REGISTER_ITEM ( Cells  ,
Ammo   
)

Definition at line 75 of file ammo.qh.

References ITEM_FLAG_NORMAL, ITEM_FLAG_RESOURCE, m_name, netname, and spawnflags.

75  {
76  this.m_canonical_spawnfunc = "item_cells";
77 #ifdef GAMEQC
79  this.m_model = MDL_Cells_ITEM;
80 #endif
81  this.netname = "cells";
82  this.m_name = _("cells");
83  this.m_icon = "ammo_cells";
84 #ifdef SVQC
85  this.m_botvalue = 1500;
86  this.m_itemid = IT_RESOURCE;
87  this.m_iteminit = ammo_cells_init;
88 #endif
89 }
Item is usable during normal gameplay.
Definition: item.qh:98
string netname
Definition: powerups.qc:20
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
Item is is a resource, not a held item.
Definition: item.qh:100
string m_name
Definition: scores.qh:135

◆ REGISTER_ITEM() [3/5]

REGISTER_ITEM ( Plasma  ,
Ammo   
)

Definition at line 105 of file ammo.qh.

References ITEM_FLAG_NORMAL, ITEM_FLAG_RESOURCE, m_name, netname, and spawnflags.

105  {
106  this.m_canonical_spawnfunc = "item_plasma";
107 #ifdef GAMEQC
109  this.m_model = MDL_Plasma_ITEM;
110 #endif
111  this.netname = "plasma";
112  this.m_name = _("plasma");
113  this.m_icon = "ammo_plasma";
114 #ifdef SVQC
115  this.m_botvalue = 1500;
116  this.m_itemid = IT_RESOURCE;
117  this.m_iteminit = ammo_plasma_init;
118 #endif
119 }
Item is usable during normal gameplay.
Definition: item.qh:98
string netname
Definition: powerups.qc:20
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
Item is is a resource, not a held item.
Definition: item.qh:100
string m_name
Definition: scores.qh:135

◆ REGISTER_ITEM() [4/5]

REGISTER_ITEM ( Rockets  ,
Ammo   
)

Definition at line 135 of file ammo.qh.

References ITEM_FLAG_NORMAL, ITEM_FLAG_RESOURCE, m_name, netname, and spawnflags.

135  {
136  this.m_canonical_spawnfunc = "item_rockets";
137 #ifdef GAMEQC
139  this.m_model = MDL_Rockets_ITEM;
140 #endif
141  this.netname = "rockets";
142  this.m_name = _("rockets");
143  this.m_icon = "ammo_rockets";
144 #ifdef SVQC
145  this.m_botvalue = 1500;
146  this.m_itemid = IT_RESOURCE;
147  this.m_iteminit = ammo_rockets_init;
148 #endif
149 }
Item is usable during normal gameplay.
Definition: item.qh:98
string netname
Definition: powerups.qc:20
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
Item is is a resource, not a held item.
Definition: item.qh:100
string m_name
Definition: scores.qh:135

◆ REGISTER_ITEM() [5/5]

REGISTER_ITEM ( Shells  ,
Shells   
)

Definition at line 169 of file ammo.qh.

References ITEM_FLAG_NORMAL, ITEM_FLAG_RESOURCE, m_name, netname, and spawnflags.

169  {
170  this.m_canonical_spawnfunc = "item_shells";
171 #ifdef GAMEQC
173  this.m_model = MDL_Shells_ITEM;
174 #endif
175  this.netname = "shells";
176  this.m_name = _("shells");
177  this.m_icon = "ammo_shells";
178 #ifdef SVQC
179  this.m_botvalue = 1000;
180  this.m_itemid = IT_RESOURCE;
181  this.m_iteminit = ammo_shells_init;
182 #endif
183 }
Item is usable during normal gameplay.
Definition: item.qh:98
string netname
Definition: powerups.qc:20
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
Item is is a resource, not a held item.
Definition: item.qh:100
string m_name
Definition: scores.qh:135