Teleport destinations are mobjs like any other, which means you can make them pushable, killable, etc, via dehacked flags. One simple thing you can do with this is boom-compatible teleporters with multiple destinations:



Download: teledest1.wad

If you walk over the teleporter it takes you to the red side. But if you hit the switch, the teleporter now takes you to the blue side instead.

When you walk over a teleport linedef the engine searches through all sectors (in ascending order) looking for one which matches the tag of the tele line and which contains a teleport destination object. The red telepad has a lower sector index than blue, so it is found first in the search. When you press the switch, the teleport destination object gets pushed off of the red telepad, so the search for a teleport destination continues onward to the blue one.

In the demo wad the destination objects are candle sprites so you can clearly see what's happening, but in practice you could blank them out with an empty graphic.

0 comments:

Post a Comment

Post a Comment