]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/jetpack.qc
Merge branch 'master' into Mario/vaporizer_damage
[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                =   "g_jetpack.md3";
11     this.m_name                 =   "Jet pack";
12     this.m_icon                 =   "jetpack";
13     this.m_color                =   '0.5 0.5 0.5';
14     this.m_waypoint             =   _("Jet Pack");
15     this.m_waypointblink        =   2;
16 #ifdef SVQC
17     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
18     this.m_itemid               =   IT_JETPACK;
19     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
20 #endif
21 }
22
23 REGISTER_ITEM(JetpackFuel, Ammo) {
24     this.m_model    =   "g_fuel.md3";
25     this.m_name     =   "Fuel";
26     this.m_icon     =   "ammo_fuel";
27 #ifdef SVQC
28     this.m_botvalue =   BOT_PICKUP_RATING_LOW;
29     this.m_itemid   =   IT_FUEL;
30 #endif
31 }
32
33 REGISTER_ITEM(JetpackRegen, Pickup) {
34     this.m_model                =   "g_fuelregen.md3";
35     this.m_name                 =   "Fuel regenerator";
36     this.m_icon                 =   "fuelregen";
37     this.m_color                =   '1 0.5 0';
38     this.m_waypoint             =   _("Fuel regen");
39     this.m_waypointblink        =   2;
40 #ifdef SVQC
41     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
42     this.m_itemflags            =   FL_POWERUP;
43     this.m_itemid               =   IT_FUEL_REGEN;
44     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
45     this.m_respawntime          =   GET(g_pickup_respawntime_powerup);
46     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_powerup);
47 #endif
48 }