Small fix for translocator modules bouncing on bridge actors.

This commit is contained in:
Marisa the Magician 2019-08-11 17:25:07 +02:00
commit c3f2830c1e

View file

@ -132,6 +132,7 @@ Class TranslocatorModule : Actor
+MOVEWITHSECTOR;
+CANBOUNCEWATER;
+BLOCKASPLAYER;
-ALLOWBOUNCEONACTORS;
BounceType "Hexen";
BounceFactor 0.3;
WallBounceFactor 0.3;
@ -218,7 +219,7 @@ Class TranslocatorModule : Actor
{
A_SetPitch(0);
A_PlaySound("transloc/bounce");
if ( BlockingFloor ) alreadyhit = true;
if ( BlockingFloor || (tracer && (pos.z >= tracer.pos.z+tracer.height) && tracer.bACTLIKEBRIDGE) ) alreadyhit = true;
}
}
Goto Spawn;
@ -226,7 +227,7 @@ Class TranslocatorModule : Actor
TMOD A 0
{
A_SetPitch(0);
if ( tracer )
if ( tracer && !tracer.bACTLIKEBRIDGE )
{
SetOrigin(tracer.Vec2OffsetZ(0,0,pos.z),false);
vel.xy *= 0;