]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Player templates: Removed droppedweapon.
authorLyberta <lyberta@lyberta.net>
Mon, 16 Oct 2017 07:50:08 +0000 (10:50 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 16 Oct 2017 07:50:08 +0000 (10:50 +0300)
qcsrc/server/playertemplates.qc

index 2f84c01ad28072669c82896e7f943abfdc53cd3b..cad148de08ccfea3c93551275c1372ffe6181dd5 100644 (file)
@@ -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)