Xonotic
jetpack.qc
Go to the documentation of this file.
1 #include "jetpack.qh"
2 
3 #ifdef SVQC
4 
5 METHOD(Jetpack, m_spawnfunc_hookreplace, GameItem(Jetpack this, entity e))
6 {
7  if(start_items & ITEM_Jetpack.m_itemid)
8  {
9  return ITEM_JetpackFuel;
10  }
11  return this;
12 }
13 
14 METHOD(JetpackRegen, m_spawnfunc_hookreplace, GameItem(JetpackRegen this, entity e))
15 {
16  if (start_items & ITEM_JetpackRegen.m_itemid)
17  {
18  return ITEM_JetpackFuel;
19  }
20  return this;
21 }
22 
23 #endif
entity() spawn
int start_items
Definition: world.qh:84
#define METHOD(cname, name, prototype)
Definition: oo.qh:257