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

Go to the source code of this file.

Functions

 REGISTER_ITEM (VaporizerCells, Ammo)
 
 REGISTER_ITEM (ExtraLife, Powerup)
 

Variables

float instagib_respawntime_ammo = 45
 
float instagib_respawntimejitter_ammo = 0
 

Function Documentation

◆ REGISTER_ITEM() [1/2]

REGISTER_ITEM ( VaporizerCells  ,
Ammo   
)

Definition at line 25 of file items.qh.

References ITEM_FLAG_MUTATORBLOCKED, m_name, netname, and spawnflags.

25  {
26  this.m_canonical_spawnfunc = "item_vaporizer_cells";
27 #ifdef GAMEQC
29  this.m_model = MDL_VaporizerCells_ITEM;
30  this.m_sound = SND_VaporizerCells;
31 #endif
32  this.netname = "vaporizer_cells";
33  this.m_name = _("Vaporizer ammo");
34  this.m_icon = "ammo_supercells";
35 #ifdef SVQC
36  this.m_botvalue = 2000;
37  this.m_itemid = IT_RESOURCE;
38  this.m_respawntime = GET(instagib_respawntime_ammo);
39  this.m_respawntimejitter = GET(instagib_respawntimejitter_ammo);
40  this.m_iteminit = ammo_vaporizercells_init;
41 #endif
42 }
float instagib_respawntime_ammo
Definition: items.qh:7
string netname
Definition: powerups.qc:20
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
float instagib_respawntimejitter_ammo
Definition: items.qh:8
#define GET(name)
Definition: misc.qh:34
string m_name
Definition: scores.qh:135

◆ REGISTER_ITEM() [2/2]

REGISTER_ITEM ( ExtraLife  ,
Powerup   
)

Definition at line 52 of file items.qh.

References m_name, and netname.

52  {
53  this.m_canonical_spawnfunc = "item_extralife";
54 #ifdef GAMEQC
55  this.m_model = MDL_ExtraLife_ITEM;
56  this.m_sound = SND_ExtraLife;
57 #endif
58  this.netname = "extralife";
59  this.m_name = _("Extra life");
60  this.m_icon = "item_mega_health";
61  this.m_color = '1 0 0';
62  this.m_waypoint = _("Extra life");
63  this.m_waypointblink = 2;
64 #ifdef SVQC
65  this.m_itemid = IT_RESOURCE;
66 #endif
67 }
string netname
Definition: powerups.qc:20
int m_itemid
Definition: jetpack.qh:11
string m_name
Definition: scores.qh:135

Variable Documentation

◆ instagib_respawntime_ammo

float instagib_respawntime_ammo = 45

Definition at line 7 of file items.qh.

◆ instagib_respawntimejitter_ammo

float instagib_respawntimejitter_ammo = 0

Definition at line 8 of file items.qh.