]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Player templates: More item pickups.
authorLyberta <lyberta@lyberta.net>
Thu, 5 Oct 2017 18:04:12 +0000 (21:04 +0300)
committerLyberta <lyberta@lyberta.net>
Thu, 5 Oct 2017 18:04:12 +0000 (21:04 +0300)
qcsrc/server/playertemplates.qc

index f053db4a683d29db532bd63c4d977b4ef7bc391b..0b67eb611f1b713f2a35641018fc4b2d9244767e 100644 (file)
@@ -502,6 +502,11 @@ float PlayerTemplateHook_ItemTouch(entity player, entity item, string template)
                        return PlayerTemplate_GivePlayerItem(player, template,
                                "pickup_item_plasma");
                }
+               case "item_fuel":
+               {
+                       return PlayerTemplate_GivePlayerItem(player, template,
+                               "pickup_item_fuel");
+               }
                case "weapon_blaster":
                {
                        return PlayerTemplate_GivePlayerItem(player, template,
@@ -581,6 +586,26 @@ float PlayerTemplateHook_ItemTouch(entity player, entity item, string template)
                        return PlayerTemplate_GivePlayerItem(player, template,
                                "pickup_weapon_fireball");
                }
+               case "weapon_minelayer":
+               {
+                       return PlayerTemplate_GivePlayerItem(player, template,
+                               "pickup_weapon_minelayer");
+               }
+               case "weapon_hlac":
+               {
+                       return PlayerTemplate_GivePlayerItem(player, template,
+                               "pickup_weapon_hlac");
+               }
+               case "weapon_rifle":
+               {
+                       return PlayerTemplate_GivePlayerItem(player, template,
+                               "pickup_weapon_rifle");
+               }
+               case "weapon_seeker":
+               {
+                       return PlayerTemplate_GivePlayerItem(player, template,
+                               "pickup_weapon_seeker");
+               }
                case "weapon_vaporizer":
                {
                        return PlayerTemplate_GivePlayerItem(player, template,