From: Lyberta Date: Mon, 28 Aug 2017 03:30:12 +0000 (+0300) Subject: Player templates: Use GivePlayerResource instead of GivePlayerAmmo. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ebcf106c79c69f346fff5e0398588002ef69b009;p=xonotic%2Fxonotic-data.pk3dir.git Player templates: Use GivePlayerResource instead of GivePlayerAmmo. --- 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; } }