]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Player templates: Use GivePlayerResource instead of GivePlayerAmmo.
authorLyberta <lyberta@lyberta.net>
Mon, 28 Aug 2017 03:30:12 +0000 (06:30 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 28 Aug 2017 03:30:12 +0000 (06:30 +0300)
qcsrc/server/playertemplates.qc

index ce64c1316f2d2f79ce5f4ef197d4a141277afb7a..865df428080daf517467372f67cdc42db516c7bf 100644 (file)
@@ -250,22 +250,22 @@ float PlayerTemplate_GivePlayerItem(entity player, string template,
                        }
                        case 3:
                        {
-                               GivePlayerAmmo(player, ammo_shells, stof(argv(i)));
+                               GivePlayerResource(player, RESOURCE_SHELLS, stof(argv(i)));
                                break;
                        }
                        case 4:
                        {
-                               GivePlayerAmmo(player, ammo_nails, stof(argv(i)));
+                               GivePlayerResource(player, RESOURCE_BULLETS, stof(argv(i)));
                                break;
                        }
                        case 5:
                        {
-                               GivePlayerAmmo(player, ammo_rockets, stof(argv(i)));
+                               GivePlayerResource(player, RESOURCE_ROCKETS, stof(argv(i)));
                                break;
                        }
                        case 6:
                        {
-                               GivePlayerAmmo(player, ammo_cells, stof(argv(i)));
+                               GivePlayerResource(player, RESOURCE_CELLS, stof(argv(i)));
                                break;
                        }
                }