Its ok, I’ve sorted it…
g_items.c around line 398 the code was this:
if (other->client->sess.sessionTeam == TEAM_RED)
weapon = WP_GRENADE_LAUNCHER;
else
weapon = WP_GRENADE_PINEAPPLE;
if (other->client->ps.ammoclip[BG_FindClipForWeapon(weapon)] < i)
other->client->ps.ammoclip[BG_FindClipForWeapon(weapon)]++;
COM_BitSet(other->client->ps.weapons,weapon);
I changed it to this:
weapon = WP_GRENADE_LAUNCHER;
if (other->client->ps.ammoclip[BG_FindClipForWeapon(weapon)] < i)
other->client->ps.ammoclip[BG_FindClipForWeapon(weapon)]++;
COM_BitSet(other->client->ps.weapons,weapon);
weapon = WP_GRENADE_PINEAPPLE;
if (other->client->ps.ammoclip[BG_FindClipForWeapon(weapon)] < i)
other->client->ps.ammoclip[BG_FindClipForWeapon(weapon)]++;
COM_BitSet(other->client->ps.weapons,weapon);
I dont know if this is the best way of doing it, but it works
Hewster