mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-03-24 19:32:00 +00:00
Oops! Flash grenades don't go through walls anymore!
This commit is contained in:
parent
0e1892532c
commit
512ce1bc1b
1 changed files with 1 additions and 1 deletions
2
scout.qc
2
scout.qc
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue