View Full Version : modifying Teleporter actor
12th Sep 2001, 04:13 PM
i've got a modified teleporter which is working fine. While i'm at it, i'd really like to prevent telefragging. I've pored over all the relevant code, but have to confess i can't see exactly how to do it. Was just hoping someone may already be familiar enough with it to point me in the right direction ... ?
I thought about patterning off the way warpzones do it, but i really can't convince myself that it won't cause undesirable side effects ...
12th Sep 2001, 04:22 PM
I didn't ever use teleporters or subclasses of them, but you have a few choices :
Check the Touch list of the target teleporter, if any players are in there, or
trace a line at the target teleporter and test if it hits an player.
13th Sep 2001, 01:36 AM
i guess what i don't understand is whether the game engine enforces telefragging no matter what meaning i'd have to find a way to delay/retry the teleport until the target is clear, or whether there is some flag or other setting which would let it handle the exchange without killing one of the players.
13th Sep 2001, 10:07 AM
All the teleporter does is move actors from one location to another, AFIK. The telefragging is caused by the pawns themselves -- try messing around with the function in Pawn with the word "encroaching" somewhere in it.
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.