Linedef type 67

From SRB2 Wiki
Jump to navigation Jump to search

Linedef type 67, Move Ceiling by Displacement, is a type of linedef special which is used to move the 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 ceiling. Rather, the 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 ceiling. A value of 256 means the movement is translated 1:1, i.e., the target sector ceiling always moves the same distance as the control sector floor. Lower values mean the target sector ceiling moves slower, higher values mean it moves faster. If Flag [6] / Not Climbable is set, the target sector ceiling moves in the opposite direction of the control sector floor.

If this linedef is used in conjunction with linedef type 400, the target sector ceiling will immediately jump to the specified height. If this linedef is used in conjunction with linedef type 403, the 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 ceiling will only move as long as the linedef executor is being continuously triggered.

Sample

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