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