Remove self-damage from Overpressure beam. It's annoying.

This commit is contained in:
Mari the Deer 2022-09-28 22:38:48 +02:00
commit 9a6b71e751
2 changed files with 3 additions and 4 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r526 \cu(Wed 28 Sep 22:26:56 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r526 \cu(2022-09-28 22:26:56)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r527 \cu(Wed 28 Sep 22:38:48 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r527 \cu(2022-09-28 22:38:48)\c-";

View file

@ -879,7 +879,6 @@ Class MisterRailBeam : Actor
if ( isFrozen() ) return;
A_SetScale(scale.x*.85,scale.y);
A_FadeOut(.05);
if ( frame == 1 ) return;
if ( !cbt ) cbt = new("CandyBeamTracer");
cbt.hitlist.Clear();
Vector3 dir = SWWMUtility.Vec3FromAngles(angle,pitch-90);
@ -887,7 +886,7 @@ Class MisterRailBeam : Actor
cbt.Trace(pos,CurSector,dir,scale.y,0);
for ( int i=0; i<cbt.hitlist.Size(); i++ )
{
if ( !cbt.hitlist[i].hitactor ) continue;
if ( !cbt.hitlist[i].hitactor || (cbt.hitlist[i].hitactor == target) ) continue;
SWWMUtility.DoKnockback(cbt.hitlist[i].hitactor,cbt.hitlist[i].x,12000);
let p = SWWMPuff.Setup(cbt.hitlist[i].hitlocation,cbt.hitlist[i].x,self,target,cbt.hitlist[i].hitactor);
cbt.hitlist[i].hitactor.DamageMobj(p,target,44,'Mortal',DMG_THRUSTLESS|DMG_INFLICTOR_IS_PUFF);