Teleporter

A teleporter moves players and monsters from one location on the map to another almost instantly.

In vanilla doom, there are four linedef types for teleporting. These implement the combinations of one-time versus repeating and players plus monsters versus monsters only. All of them are of the walk-over variety.

The tag field of the teleporter linedef specifies the destination sector (the lowest-numbered sector with the same tag value). Within that sector, there must be a teleport landing thing, which specifies the specific coordinates and angle the player or monster will have after teleporting.

If a monster or another player is on the teleport landing spot at the time of teleporting, monsters will not teleport but players will, killing whatever was on the landing spot. This is known as a telefrag.

Teleporters are the only direction-sensitive linedef types. This is necessary for when the landing spot is another teleporter, so the player can get off the landing spot without teleporting again.

Normally, teleporters are constructed as a 32-unit square with a distinctive floor flat, but this is not a technical requirement. All four sides of a square teleporter usually teleport to the same place, but again this is not required. Some tricky levels have teleporters that take you to different places depending on which side you enter from.

Boom introduced some extended teleporter line types, including switch-activated teleporters and silent teleporters. The latter preserve player orientation, position, momentum and height so that the teleport may not be noticed; this can be used to simulate rooms over rooms and other special effects.