]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Player templates: Removed replacedweapon.
authorLyberta <lyberta@lyberta.net>
Mon, 16 Oct 2017 12:17:43 +0000 (15:17 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 16 Oct 2017 12:17:43 +0000 (15:17 +0300)
qcsrc/server/playertemplates.qc

index cad148de08ccfea3c93551275c1372ffe6181dd5..acd11e4c7a88fd455a5967bf194354ba9573c05f 100644 (file)
@@ -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");