4 #include <server/items/items.qh>
15 MODEL(Jetpack_ITEM, Item_Model("g_jetpack.md3"));
19 PROPERTY(int, g_pickup_fuel_jetpack);
20 void powerup_jetpack_init(Pickup this, entity item)
22 if(!GetResource(item, RES_FUEL))
23 SetResourceExplicit(item, RES_FUEL, g_pickup_fuel_jetpack);
27 CLASS(Jetpack, Powerup)
30 REGISTER_ITEM(Jetpack, Powerup) {
31 this.m_canonical_spawnfunc = "item_jetpack";
33 this.spawnflags = ITEM_FLAG_NORMAL;
34 this.m_model = MDL_Jetpack_ITEM;
35 this.m_itemid = IT_JETPACK;
37 this.netname = "jetpack";
38 this.m_name = _("Jetpack");
39 this.m_icon = "jetpack";
40 this.m_color = '0.5 0.5 0.5';
41 this.m_waypoint = _("Jetpack");
42 this.m_waypointblink = 2;
44 this.m_botvalue = 3000;
45 this.m_pickupevalfunc = ammo_pickupevalfunc;
46 this.m_iteminit = powerup_jetpack_init;
50 SPAWNFUNC_ITEM(item_jetpack, ITEM_Jetpack)
53 MODEL(JetpackFuel_ITEM, Item_Model("g_fuel.md3"));
57 PROPERTY(int, g_pickup_fuel);
58 void ammo_fuel_init(Pickup this, entity item)
60 if(!GetResource(item, RES_FUEL))
61 SetResourceExplicit(item, RES_FUEL, g_pickup_fuel);
64 REGISTER_ITEM(JetpackFuel, Ammo) {
65 this.m_canonical_spawnfunc = "item_fuel";
67 this.spawnflags = ITEM_FLAG_NORMAL | ITEM_FLAG_RESOURCE;
68 this.m_model = MDL_JetpackFuel_ITEM;
70 this.netname = "fuel";
71 this.m_name = _("fuel");
72 this.m_icon = "ammo_fuel";
74 this.m_botvalue = 2000;
75 this.m_itemid = IT_RESOURCE;
76 this.m_iteminit = ammo_fuel_init;
80 SPAWNFUNC_ITEM(item_fuel, ITEM_JetpackFuel)
83 MODEL(JetpackRegen_ITEM, Item_Model("g_fuelregen.md3"));
86 CLASS(JetpackRegen, Powerup)
87 ENDCLASS(JetpackRegen)
89 REGISTER_ITEM(JetpackRegen, JetpackRegen) {
90 this.m_canonical_spawnfunc = "item_fuel_regen";
92 this.spawnflags = ITEM_FLAG_NORMAL;
93 this.m_model = MDL_JetpackRegen_ITEM;
95 this.netname = "fuel_regen";
96 this.m_name = _("Fuel regenerator");
97 this.m_icon = "fuelregen";
98 this.m_color = '1 0.5 0';
99 this.m_waypoint = _("Fuel regen");
100 this.m_waypointblink = 2;
102 this.m_botvalue = 3000;
103 this.m_itemid = IT_FUEL_REGEN;
104 this.m_pickupevalfunc = ammo_pickupevalfunc;
108 SPAWNFUNC_ITEM(item_fuel_regen, ITEM_JetpackRegen)