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

@ -8,14 +8,12 @@
#ifndef __linux__
#define LINUXOFFSET 0
#define WEAP_LINUXOFFSET 0
#define CLIP_LINUXOFFSET 0
#else
#define LINUXOFFSET 5
#endif
#ifndef __linux__
#define WEAP_LINUXOFFSET 0
#else
#define WEAP_LINUXOFFSET 3
#define CLIP_LINUXOFFSET 4
#endif
#define TFCMAX_CUSTOMWPNS 5
@ -39,6 +37,8 @@
#define PD_AMMO_NADE1 14 + WEAP_LINUXOFFSET
#define PD_AMMO_NADE2 15 + WEAP_LINUXOFFSET
#define PD_WEAPON_AMMO 307 + CLIP_LINUXOFFSET
enum {
TFC_AMMO_SHELLS = 0,
TFC_AMMO_BULLETS,