Added tfc_get/setweaponammo to set ammo in weapon's clip (not backpack ammo)

This commit is contained in:
Scott Ehlert
2006-08-21 13:50:51 +00:00
parent 5b47da7cee
commit 74d3d23f13
3 changed files with 38 additions and 6 deletions

View File

@ -118,4 +118,12 @@ native tfc_setbammo(index, ammo, value);
native tfc_getweaponbammo(index, weapon);
/* Sets amount of ammo in weapon's clip (backpack) */
native tfc_setweaponbammo(index, weapon, value);
native tfc_setweaponbammo(index, weapon, value);
/* Returns amount of ammo in weapon's clip */
/* Index must be weapon's entity index */
native tfc_getweaponammo(index);
/* Sets amount of ammo in weapon's clip */
/* Index must be weapon's entity index */
native tfc_setweaponammo(index, value);