In void() BackpackTouch =
I added code so that if a backpack contains a certain amount of ammo it will explode.
I want the owner of the backpack to get a frag if a player dies in this manner.
I tried adding:
item.classname = "backpack"; in
void() DropBackpack = and adding:
if (targ.deathtype == "backpack")
{
attacker.frags = attacker.frags + 1;
return;
}
in
void() ClientObituary =
but it didn't work?