]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/jetpack.qc
Merge branch 'master' into terencehill/bot_waypoints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / jetpack.qc
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