Small fix for translocator modules bouncing on bridge actors.
This commit is contained in:
parent
19f9ba107c
commit
a8a720ab81
1 changed files with 3 additions and 2 deletions
|
|
@ -132,6 +132,7 @@ Class TranslocatorModule : Actor
|
||||||
+MOVEWITHSECTOR;
|
+MOVEWITHSECTOR;
|
||||||
+CANBOUNCEWATER;
|
+CANBOUNCEWATER;
|
||||||
+BLOCKASPLAYER;
|
+BLOCKASPLAYER;
|
||||||
|
-ALLOWBOUNCEONACTORS;
|
||||||
BounceType "Hexen";
|
BounceType "Hexen";
|
||||||
BounceFactor 0.3;
|
BounceFactor 0.3;
|
||||||
WallBounceFactor 0.3;
|
WallBounceFactor 0.3;
|
||||||
|
|
@ -218,7 +219,7 @@ Class TranslocatorModule : Actor
|
||||||
{
|
{
|
||||||
A_SetPitch(0);
|
A_SetPitch(0);
|
||||||
A_PlaySound("transloc/bounce");
|
A_PlaySound("transloc/bounce");
|
||||||
if ( BlockingFloor ) alreadyhit = true;
|
if ( BlockingFloor || (tracer && (pos.z >= tracer.pos.z+tracer.height) && tracer.bACTLIKEBRIDGE) ) alreadyhit = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Goto Spawn;
|
Goto Spawn;
|
||||||
|
|
@ -226,7 +227,7 @@ Class TranslocatorModule : Actor
|
||||||
TMOD A 0
|
TMOD A 0
|
||||||
{
|
{
|
||||||
A_SetPitch(0);
|
A_SetPitch(0);
|
||||||
if ( tracer )
|
if ( tracer && !tracer.bACTLIKEBRIDGE )
|
||||||
{
|
{
|
||||||
SetOrigin(tracer.Vec2OffsetZ(0,0,pos.z),false);
|
SetOrigin(tracer.Vec2OffsetZ(0,0,pos.z),false);
|
||||||
vel.xy *= 0;
|
vel.xy *= 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue