Linedef type 53

From SRB2 Wiki
Jump to navigation Jump to search
Moving floors and ceilings of FOF and sector by linedef type 53.

Linedef type 53, Continuous Floor/Ceiling Mover, is a type of linedef special which moves the floor and ceiling of a sector or an FOF vertically back and forth between specified heights. It is useful as an alternative for moving platforms made with linedef type 59 or linedef type 60, as its change of direction is faster. It can also be used to make simple elevators and FOF crushers.

Setup

To use this effect, create two control sectors outside of your map, joined by a single linedef. The easiest way to do this is to create two small squares of equal size which share a linedef. The linedef which joins together the two control sectors should be set to have linedef type 53, and be tagged to the desired target sector(s) within the map or FOF control sector(s).

The target sector's/FOF's floor and ceiling will first move to the floor and ceiling heights of the linedef's front control sector, then to the floor and ceiling heights of the linedef's back control sector, then to the front sector again, and so on. The length of the control linedef determines the speed of the movement; one fracunit of length equals 0.25 fracunits per tic.

It is possible to add a delay before the floor and ceiling begin to move, by setting the time in tics in the control linedef's front texture Y offset. If you want the ceiling and floor to delay every time before changing direction, you can do so by setting the time in tics in the control linedef's front texture X offset.

Be aware that while using this action that if the floor and ceiling are moving too fast and are too close to each other that the sector will brake and start to distort itself. This is mainly noticeable with small FOFs.

Sample

Example file: ex_ld053_continuousfloorceilingmover.wad (MAP01)
How to use
  • You may load this file into your favorite map editor, such as Zone Builder. Select MAP01 as the map to load.
  • You may also load this file in the game:
    1. Save ex_ld053_continuousfloorceilingmover.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld053_continuousfloorceilingmover.wad.
    3. Start the game in Single Player mode.
    4. Press the Console button (~), and type in the command MAP MAP01 to access the example map.
  • When you load this file in the game, it replaces Greenflower Zone Act 1.


  Linedef types – Plane movement [view]
Continuously Falling SectorContinuous Floor/Ceiling MoverContinuous Floor MoverContinuous Ceiling MoverContinuous Two-Speed Floor/Ceiling MoverContinuous Two-Speed Floor MoverContinuous Two-Speed Ceiling MoverActivate Moving PlatformActivate Moving Platform (Adjustable Speed)Crusher (Ceiling to Floor)Crusher (Floor to Ceiling)Move Floor by DisplacementMove Ceiling by DisplacementMove Floor and Ceiling by Displacement