]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/jetpack.qc
Notifications: relocate
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / jetpack.qc
1 #ifdef SVQC
2     #include <common/t_items.qh>
3 #endif
4
5 #include "ammo.qh"
6 #include "powerup.qh"
7
8 #ifndef MENUQC
9 MODEL(Jetpack_ITEM, Item_Model("g_jetpack.md3"));
10 #endif
11
12 REGISTER_ITEM(Jetpack, Powerup) {
13 #ifndef MENUQC
14     this.m_model                =   MDL_Jetpack_ITEM;
15 #endif
16     this.m_name                 =   "Jet pack";
17     this.m_icon                 =   "jetpack";
18     this.m_color                =   '0.5 0.5 0.5';
19     this.m_waypoint             =   _("Jet Pack");
20     this.m_waypointblink        =   2;
21 #ifdef SVQC
22     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
23     this.m_itemid               =   IT_JETPACK;
24     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
25 #endif
26 }
27
28 #ifndef MENUQC
29 MODEL(JetpackFuel_ITEM, Item_Model("g_fuel.md3"));
30 #endif
31
32 REGISTER_ITEM(JetpackFuel, Ammo) {
33 #ifndef MENUQC
34     this.m_model    =   MDL_JetpackFuel_ITEM;
35 #endif
36     this.m_name     =   "Fuel";
37     this.m_icon     =   "ammo_fuel";
38 #ifdef SVQC
39     this.m_botvalue =   BOT_PICKUP_RATING_LOW;
40     this.m_itemid   =   IT_FUEL;
41 #endif
42 }
43
44 #ifndef MENUQC
45 MODEL(JetpackRegen_ITEM, Item_Model("g_fuelregen.md3"));
46 #endif
47
48 REGISTER_ITEM(JetpackRegen, Powerup) {
49 #ifndef MENUQC
50     this.m_model                =   MDL_JetpackRegen_ITEM;
51 #endif
52     this.m_name                 =   "Fuel regenerator";
53     this.m_icon                 =   "fuelregen";
54     this.m_color                =   '1 0.5 0';
55     this.m_waypoint             =   _("Fuel regen");
56     this.m_waypointblink        =   2;
57 #ifdef SVQC
58     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
59     this.m_itemid               =   IT_FUEL_REGEN;
60     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
61 #endif
62 }