Adds that you can pick up weapons you already have for ammo.

This commit is contained in:
Marco Cawthorne 2019-08-18 14:11:45 -07:00
parent e70ed91801
commit 9224efb3ad

View file

@ -20,9 +20,10 @@ class item_pickup:CBaseEntity
void item_pickup::touch(void)
{
if (other.classname == "player") {
if (Weapons_IsPresent((player)other, id) == TRUE) {
/*if (Weapons_IsPresent((player)other, id) == TRUE) {
return;
}
}*/
sound(other, CHAN_ITEM, "items/gunpickup2.wav", 1, ATTN_NORM);
Weapons_AddItem((player)other, id);