#define hud_panel_itemstime_hidelarge false
#endif
-bool Item_ItemsTime_Allow(GameItem it, WepSet _weapons)
+bool Item_ItemsTime_SpectatorOnly(GameItem it)
{
return (false
- || it.instanceOfPowerup
|| it == ITEM_ArmorMega || (it == ITEM_ArmorLarge && !hud_panel_itemstime_hidelarge)
|| it == ITEM_HealthMega || (it == ITEM_HealthLarge && !hud_panel_itemstime_hidelarge)
+ );
+}
+
+bool Item_ItemsTime_Allow(GameItem it, WepSet _weapons)
+{
+ return (false
+ || it.instanceOfPowerup
+ || Item_ItemsTime_SpectatorOnly(it)
|| (_weapons & WEPSET_SUPERWEAPONS)
);
}
));
}
-#endif
\ No newline at end of file
+#endif
}
}
+bool Item_ItemsTime_SpectatorOnly(GameItem it);
bool Item_ItemsTime_Allow(GameItem it, WepSet _weapons);
float Item_ItemsTime_UpdateTime(entity e, float t);
void Item_ItemsTime_SetTime(entity e, float t);
wp.wp_extra = wpextra;
if(self.waypointsprite_attached)
{
- if (self.items == IT_HEALTH || self.items == IT_ARMOR)
+ GameItem def = self.itemdef;
+ if (Item_ItemsTime_SpectatorOnly(def))
WaypointSprite_UpdateRule(self.waypointsprite_attached, 0, SPRITERULE_SPECTATOR);
WaypointSprite_UpdateBuildFinished(self.waypointsprite_attached, time + ITEM_RESPAWN_TICKS);
}