]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/jetpack.qc
Merge branch 'master' into terencehill/menu_listbox_changes
[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 REGISTER_ITEM(Jetpack, Pickup) {
7     this.m_model                =   "models/items/g_jetpack.md3";
8     this.m_name                 =   "Jet pack";
9 #ifdef SVQC
10     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
11     this.m_itemflags            =   FL_POWERUP;
12     this.m_itemid               =   IT_JETPACK;
13     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
14     this.m_respawntime          =   GET(g_pickup_respawntime_powerup);
15     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_powerup);
16 #endif
17 }
18
19 REGISTER_ITEM(JetpackFuel, Pickup) {
20     this.m_model                =   "models/items/g_fuel.md3";
21     this.m_name                 =   "Fuel";
22 #ifdef SVQC
23     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
24     this.m_itemid               =   IT_FUEL;
25     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
26     this.m_respawntime          =   GET(g_pickup_respawntime_ammo);
27     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_ammo);
28 #endif
29 }
30
31 REGISTER_ITEM(JetpackRegen, Pickup) {
32     this.m_model                =   "models/items/g_fuelregen.md3";
33     this.m_name                 =   "Fuel regenerator";
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 }