From: Lyberta Date: Mon, 16 Oct 2017 12:17:43 +0000 (+0300) Subject: Player templates: Removed replacedweapon. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a9c2256327261d6ffb19bf17f3427c6afec54eb2;p=xonotic%2Fxonotic-data.pk3dir.git Player templates: Removed replacedweapon. --- diff --git a/qcsrc/server/playertemplates.qc b/qcsrc/server/playertemplates.qc index cad148de08..acd11e4c7a 100644 --- a/qcsrc/server/playertemplates.qc +++ b/qcsrc/server/playertemplates.qc @@ -635,44 +635,12 @@ float PlayerTemplateHook_ItemTouch(entity player, entity item, string template) return PlayerTemplate_GivePlayerItem(player, template, "pickup_weapon_rpc"); } - case "replacedweapon": - { - switch (item.weapon) - { - 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"); - } - default: - { - PrintToChatAll(strcat("Unrecognized item, classname: ", - item.classname, " netname: ", item.netname)); - return MUT_ITEMTOUCH_CONTINUE; - } - } - } case "item_strength": { return PlayerTemplate_GivePlayerItem(player, template, "pickup_item_strength"); } - case "item_invincible": + case "item_shield": { return PlayerTemplate_GivePlayerItem(player, template, "pickup_item_shield");