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
entity() spawn
start_items
int start_items
Definition:
world.qh:84
GameItem
Definition:
item.qh:104
METHOD
#define METHOD(cname, name, prototype)
Definition:
oo.qh:257
jetpack.qh
JetpackRegen
Definition:
jetpack.qh:86
Jetpack
Definition:
jetpack.qh:27
common
items
item
jetpack.qc
Generated on Thu Mar 17 2022 17:26:27 for Xonotic by
1.8.13