X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fitem%2Fjetpack.qc;h=ec09d5c45d62d904c6e4a2ada5ec570ae3b5c4bc;hb=696e813e264ec0a097c3b3921f36e7a3f7aacd27;hp=63019aebe8bbf50800da4967ce6421144bb1d906;hpb=a16486e99c59c7d1dc2450c9bc9390276938af0b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/item/jetpack.qc b/qcsrc/common/items/item/jetpack.qc index 63019aebe..ec09d5c45 100644 --- a/qcsrc/common/items/item/jetpack.qc +++ b/qcsrc/common/items/item/jetpack.qc @@ -1,66 +1 @@ -#ifdef SVQC - #include "../../../server/t_items.qh" - #include "../../../server/constants.qh" -#endif - -#include "ammo.qh" -#include "powerup.qh" - -#ifndef MENUQC -MODEL(Jetpack_ITEM, Item_Model("g_jetpack.md3")); -#endif - -REGISTER_ITEM(Jetpack, Powerup) { -#ifndef MENUQC - this.m_model = MDL_Jetpack_ITEM; -#endif - this.m_name = "Jet pack"; - this.m_icon = "jetpack"; - this.m_color = '0.5 0.5 0.5'; - this.m_waypoint = _("Jet Pack"); - this.m_waypointblink = 2; -#ifdef SVQC - this.m_botvalue = BOT_PICKUP_RATING_LOW; - this.m_itemid = IT_JETPACK; - this.m_pickupevalfunc = commodity_pickupevalfunc; -#endif -} - -#ifndef MENUQC -MODEL(JetpackFuel_ITEM, Item_Model("g_fuel.md3")); -#endif - -REGISTER_ITEM(JetpackFuel, Ammo) { -#ifndef MENUQC - this.m_model = MDL_JetpackFuel_ITEM; -#endif - this.m_name = "Fuel"; - this.m_icon = "ammo_fuel"; -#ifdef SVQC - this.m_botvalue = BOT_PICKUP_RATING_LOW; - this.m_itemid = IT_FUEL; -#endif -} - -#ifndef MENUQC -MODEL(JetpackRegen_ITEM, Item_Model("g_fuelregen.md3")); -#endif - -REGISTER_ITEM(JetpackRegen, Pickup) { -#ifndef MENUQC - this.m_model = MDL_JetpackRegen_ITEM; -#endif - this.m_name = "Fuel regenerator"; - this.m_icon = "fuelregen"; - this.m_color = '1 0.5 0'; - this.m_waypoint = _("Fuel regen"); - 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 -} +#include "jetpack.qh"