]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/jetpack.qc
Merge branch 'master' into TimePath/itemstime2.0
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / jetpack.qc
1 #ifdef SVQC
2     #include "../../../server/t_items.qh"
3     #include "../../../server/constants.qh"
4 #endif
5
6 #include "ammo.qh"
7 #include "powerup.qh"
8
9 REGISTER_ITEM(Jetpack, Powerup) {
10     this.m_model                =   "models/items/g_jetpack.md3";
11     this.m_name                 =   "Jet pack";
12     this.m_icon                 =   "jetpack";
13 #ifdef SVQC
14     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
15     this.m_itemid               =   IT_JETPACK;
16     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
17 #endif
18 }
19
20 REGISTER_ITEM(JetpackFuel, Ammo) {
21     this.m_model    =   "models/items/g_fuel.md3";
22     this.m_name     =   "Fuel";
23     this.m_icon     =   "ammo_fuel";
24 #ifdef SVQC
25     this.m_botvalue =   BOT_PICKUP_RATING_LOW;
26     this.m_itemid   =   IT_FUEL;
27 #endif
28 }
29
30 REGISTER_ITEM(JetpackRegen, Pickup) {
31     this.m_model                =   "models/items/g_fuelregen.md3";
32     this.m_name                 =   "Fuel regenerator";
33     this.m_icon                 =   "fuelregen";
34 #ifdef SVQC
35     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
36     this.m_itemflags            =   FL_POWERUP;
37     this.m_itemid               =   IT_FUEL_REGEN;
38     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
39     this.m_respawntime          =   GET(g_pickup_respawntime_powerup);
40     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_powerup);
41 #endif
42 }