Linedef type 68

From SRB2 Wiki
Jump to: navigation, search

Linedef type 68, Move Floor and Ceiling by Displacement, is a type of linedef special which is used to move the floor and ceiling of every tagged sector by changing the floor height of the linedef's front sector. It behaves in a similar manner to displacement plane scrollers (linedef types 512, 515, 522, 525, 532 and 535), but instead of scrolling the plane, it changes its height.

Setup

On its own, this linedef will not move the tagged sector's floor and ceiling. Rather, the floor and ceiling will move whenever the floor of the control sector moves, which can done by using linedef executors. The length of the control linedef determines how the movement of the control sector floor is translated to the target sector floor and ceiling. A value of 256 means the movement is translated 1:1, i.e., the target sector floor and ceiling always move the same distance as the control sector floor. Lower values mean the target sector floor and ceiling move slower, higher values mean they move faster. If Flag [6] / Not Climbable is set, the target sector floor and ceiling move in the opposite direction of the control sector floor.

If this linedef is used in conjunction with linedef type 400, the target sector floor and ceiling will immediately jump to the specified height. If this linedef is used in conjunction with linedef type 403, the floor and ceiling will move continuously until the control sector floor reaches the given height. If this linedef is used in conjunction with linedef type 405, the floor and ceiling will only move as long as the linedef executor is being continuously triggered.

Sample

Example file: ex_ld068_movefloorandceilingbydisplacement.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_ld068_movefloorandceilingbydisplacement.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld068_movefloorandceilingbydisplacement.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