From ebcf106c79c69f346fff5e0398588002ef69b009 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Mon, 28 Aug 2017 06:30:12 +0300 Subject: [PATCH] Player templates: Use GivePlayerResource instead of GivePlayerAmmo. --- qcsrc/server/playertemplates.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/playertemplates.qc b/qcsrc/server/playertemplates.qc index ce64c1316f..865df42808 100644 --- a/qcsrc/server/playertemplates.qc +++ b/qcsrc/server/playertemplates.qc @@ -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; } } -- 2.39.5