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