I'm attempting to make a sort of "Admin Weapon" (in retail) with RTB wrench-like modes. It seems that no matter what I do to change AgunProjectile::onCollision the bullet always does damage/explodes bricks near it/etc. (I made it explode bricks to see what was happening, but I only want it to happen in a certain mode)
How would I make a projectile only hit and damage something if a certain variable is set?