From 9adcbbd7aa170b5444da1b00124a1a680c33c39c Mon Sep 17 00:00:00 2001 From: Lyberta Date: Mon, 16 Oct 2017 10:50:08 +0300 Subject: [PATCH] Player templates: Removed droppedweapon. --- qcsrc/server/playertemplates.qc | 122 -------------------------------- 1 file changed, 122 deletions(-) diff --git a/qcsrc/server/playertemplates.qc b/qcsrc/server/playertemplates.qc index 2f84c01ad2..cad148de08 100644 --- a/qcsrc/server/playertemplates.qc +++ b/qcsrc/server/playertemplates.qc @@ -635,128 +635,6 @@ float PlayerTemplateHook_ItemTouch(entity player, entity item, string template) return PlayerTemplate_GivePlayerItem(player, template, "pickup_weapon_rpc"); } - case "droppedweapon": - { - switch (item.weapon) - { - case WEP_BLASTER.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_shotgun"); - } - case WEP_SHOTGUN.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_shotgun"); - } - case WEP_MACHINEGUN.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_machinegun"); - } - case WEP_MORTAR.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_mortar"); - } - case WEP_ELECTRO.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_electro"); - } - case WEP_CRYLINK.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_crylink"); - } - case WEP_VORTEX.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_vortex"); - } - case WEP_HAGAR.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_hagar"); - } - case WEP_DEVASTATOR.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_devastator"); - } - case WEP_SHOCKWAVE.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_shockwave"); - } - case WEP_ARC.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_arc"); - } - case WEP_HOOK.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_hook"); - } - case WEP_TUBA.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_tuba"); - } - case WEP_PORTO.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_porto"); - } - case WEP_FIREBALL.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_fireball"); - } - case WEP_MINE_LAYER.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_minelayer"); - } - case WEP_HLAC.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_hlac"); - } - case WEP_RIFLE.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_rifle"); - } - case WEP_SEEKER.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_seeker"); - } - case WEP_VAPORIZER.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_vaporizer"); - } - case WEP_HMG.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_hmg"); - } - case WEP_RPC.m_id: - { - return PlayerTemplate_GivePlayerItem(player, template, - "pickup_weapon_rpc"); - } - default: - { - PrintToChatAll(strcat("Unrecognized item, classname: ", - item.classname, " netname: ", item.netname)); - return MUT_ITEMTOUCH_CONTINUE; - } - } - } case "replacedweapon": { switch (item.weapon) -- 2.39.5