]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/jetpack.qc
Merge branch 'master' into Mario/vehicles
[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 #ifdef SVQC
13     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
14     this.m_itemid               =   IT_JETPACK;
15     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
16 #endif
17 }
18
19 REGISTER_ITEM(JetpackFuel, Ammo) {
20     this.m_model    =   "models/items/g_fuel.md3";
21     this.m_name     =   "Fuel";
22     this.m_ammoPic  =   "ammo_fuel";
23 #ifdef SVQC
24     this.m_botvalue =   BOT_PICKUP_RATING_LOW;
25     this.m_itemid   =   IT_FUEL;
26 #endif
27 }
28
29 REGISTER_ITEM(JetpackRegen, Pickup) {
30     this.m_model                =   "models/items/g_fuelregen.md3";
31     this.m_name                 =   "Fuel regenerator";
32 #ifdef SVQC
33     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
34     this.m_itemflags            =   FL_POWERUP;
35     this.m_itemid               =   IT_FUEL_REGEN;
36     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
37     this.m_respawntime          =   GET(g_pickup_respawntime_powerup);
38     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_powerup);
39 #endif
40 }