]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make fuel regenerator a proper powerup so that it passes checks for it.instanceOfPowe... 280/head
authorterencehill <piuntn@gmail.com>
Tue, 2 Feb 2016 21:47:47 +0000 (22:47 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 2 Feb 2016 21:47:47 +0000 (22:47 +0100)
qcsrc/common/items/item/jetpack.qc
qcsrc/common/mutators/mutator/itemstime.qc

index 006a36308f347c396388c08b453fe8269f1cb90a..7ccbe8fa3fdbf622290ed3864b538cae91fe2f1b 100644 (file)
@@ -1,6 +1,5 @@
 #ifdef SVQC
     #include <common/t_items.qh>
-    #include <server/constants.qh>
 #endif
 
 #include "ammo.qh"
@@ -46,7 +45,7 @@ REGISTER_ITEM(JetpackFuel, Ammo) {
 MODEL(JetpackRegen_ITEM, Item_Model("g_fuelregen.md3"));
 #endif
 
-REGISTER_ITEM(JetpackRegen, Pickup) {
+REGISTER_ITEM(JetpackRegen, Powerup) {
 #ifndef MENUQC
     this.m_model                =   MDL_JetpackRegen_ITEM;
 #endif
@@ -57,10 +56,7 @@ REGISTER_ITEM(JetpackRegen, Pickup) {
     this.m_waypointblink        =   2;
 #ifdef SVQC
     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
-    this.m_itemflags            =   FL_POWERUP;
     this.m_itemid               =   IT_FUEL_REGEN;
     this.m_pickupevalfunc       =   commodity_pickupevalfunc;
-    this.m_respawntime          =   GET(g_pickup_respawntime_powerup);
-    this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_powerup);
 #endif
 }
index 3d91189e2569f094fb5777162e285c3b0690ed2e..408bd6fc853b2aff6411efba26ea27c1bef243e2 100644 (file)
@@ -68,7 +68,6 @@ bool Item_ItemsTime_Allow(GameItem it)
     return (false
     || it.instanceOfPowerup
     || Item_ItemsTime_SpectatorOnly(it)
-    || it == ITEM_JetpackRegen
     );
 }