diff --git a/wadsrc/static/zscript/actors/hexen/blastradius.zs b/wadsrc/static/zscript/actors/hexen/blastradius.zs index eee084f83..271f2bcfc 100644 --- a/wadsrc/static/zscript/actors/hexen/blastradius.zs +++ b/wadsrc/static/zscript/actors/hexen/blastradius.zs @@ -148,6 +148,11 @@ extend class Actor // in another region and cannot be seen. continue; } + if ((blastflags & BF_ONLYVISIBLETHINGS) && !isVisible(mo, true)) + { + //only blast if target can bee seen by calling actor + continue; + } BlastActor (mo, strength, speed, blasteffect, !!(blastflags & BF_NOIMPACTDAMAGE)); } } diff --git a/wadsrc/static/zscript/constants.zs b/wadsrc/static/zscript/constants.zs index 490cfc2cb..63f76d35e 100644 --- a/wadsrc/static/zscript/constants.zs +++ b/wadsrc/static/zscript/constants.zs @@ -285,6 +285,7 @@ enum EBlastFlags BF_DONTWARN = 2, BF_AFFECTBOSSES = 4, BF_NOIMPACTDAMAGE = 8, + BF_ONLYVISIBLETHINGS = 16; }; // Flags for A_SeekerMissile