Adds that you can pick up weapons you already have for ammo.
This commit is contained in:
parent
e70ed91801
commit
9224efb3ad
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue