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