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

Go to the source code of this file.

Classes

class  Jetpack
 
class  JetpackRegen
 

Functions

 REGISTER_ITEM (Jetpack, Jetpack)
 
 REGISTER_ITEM (JetpackFuel, Ammo)
 
 REGISTER_ITEM (JetpackRegen, JetpackRegen)
 

Variables

int m_itemid
 

Function Documentation

◆ REGISTER_ITEM() [1/3]

REGISTER_ITEM ( Jetpack  ,
Jetpack   
)

Definition at line 30 of file jetpack.qh.

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

30  {
31  this.m_canonical_spawnfunc = "item_jetpack";
32 #ifdef GAMEQC
34  this.m_model = MDL_Jetpack_ITEM;
35  this.m_itemid = IT_JETPACK;
36 #endif
37  this.netname = "jetpack";
38  this.m_name = _("Jetpack");
39  this.m_icon = "jetpack";
40  this.m_color = '0.5 0.5 0.5';
41  this.m_waypoint = _("Jetpack");
42  this.m_waypointblink = 2;
43 #ifdef SVQC
44  this.m_botvalue = 3000;
45  this.m_pickupevalfunc = ammo_pickupevalfunc;
46  this.m_iteminit = powerup_jetpack_init;
47 #endif
48 }
Item is usable during normal gameplay.
Definition: item.qh:98
string netname
Definition: powerups.qc:20
float ammo_pickupevalfunc(entity player, entity item)
Definition: items.qc:821
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
string m_name
Definition: scores.qh:135

◆ REGISTER_ITEM() [2/3]

REGISTER_ITEM ( JetpackFuel  ,
Ammo   
)

Definition at line 64 of file jetpack.qh.

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

64  {
65  this.m_canonical_spawnfunc = "item_fuel";
66 #ifdef GAMEQC
68  this.m_model = MDL_JetpackFuel_ITEM;
69 #endif
70  this.netname = "fuel";
71  this.m_name = _("fuel");
72  this.m_icon = "ammo_fuel";
73 #ifdef SVQC
74  this.m_botvalue = 2000;
75  this.m_itemid = IT_RESOURCE;
76  this.m_iteminit = ammo_fuel_init;
77 #endif
78 }
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/3]

REGISTER_ITEM ( JetpackRegen  ,
JetpackRegen   
)

Definition at line 89 of file jetpack.qh.

References ITEM_FLAG_NORMAL, m_name, netname, and spawnflags.

89  {
90  this.m_canonical_spawnfunc = "item_fuel_regen";
91 #ifdef GAMEQC
93  this.m_model = MDL_JetpackRegen_ITEM;
94 #endif
95  this.netname = "fuel_regen";
96  this.m_name = _("Fuel regenerator");
97  this.m_icon = "fuelregen";
98  this.m_color = '1 0.5 0';
99  this.m_waypoint = _("Fuel regen");
100  this.m_waypointblink = 2;
101 #ifdef SVQC
102  this.m_botvalue = 3000;
103  this.m_itemid = IT_FUEL_REGEN;
104  this.m_pickupevalfunc = ammo_pickupevalfunc;
105 #endif
106 }
Item is usable during normal gameplay.
Definition: item.qh:98
string netname
Definition: powerups.qc:20
float ammo_pickupevalfunc(entity player, entity item)
Definition: items.qc:821
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
string m_name
Definition: scores.qh:135

Variable Documentation

◆ m_itemid

int m_itemid

Definition at line 11 of file jetpack.qh.

Referenced by REGISTER_ITEM().