Dashing can activate lines. With ragekit it can bust walls.

Some minor 3D floor handling cleanup.
This commit is contained in:
Mari the Deer 2020-09-12 17:32:27 +02:00
commit dcf612aab5
11 changed files with 174 additions and 94 deletions

View file

@ -206,13 +206,13 @@ Class mkBloodDrop : Actor
A_StartSound("misc/blooddrop",volume:.1);
dead = true;
SWWMUtility.SetToSlope(self,FRandom[Blood](0,360));
tracksector = CurSector;
tracksector = FloorSector;
trackplane = 0;
F3DFloor ff;
for ( int i=0; i<CurSector.Get3DFloorCount(); i++ )
for ( int i=0; i<FloorSector.Get3DFloorCount(); i++ )
{
if ( !(CurSector.Get3DFloor(i).top.ZAtPoint(pos.xy) ~== floorz) ) continue;
ff = CurSector.Get3DFloor(i);
if ( !(FloorSector.Get3DFloor(i).top.ZAtPoint(pos.xy) ~== floorz) ) continue;
ff = FloorSector.Get3DFloor(i);
break;
}
if ( ff )