Small fix for translocator modules bouncing on bridge actors.
This commit is contained in:
parent
fb6eed17d1
commit
4f7117ff70
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue