Oops! Flash grenades don't go through walls anymore!

This commit is contained in:
Finny Merrill 2003-12-01 22:41:49 +00:00
parent 0e1892532c
commit 512ce1bc1b

View file

@ -88,7 +88,7 @@ void() FlashGrenadeExplode =
makevectors(te.v_angle);
// Damage player and explode
// no, don't damage
if (te.health > 0 && (normalize(self.origin - te.origin) * v_forward > -0.5))
if (te.health > 0 && (normalize(self.origin - te.origin) * v_forward > -0.5) && visible(te))
{
local float ft = 60 - (vlen(self.origin - te.origin) * 6 / 50);