Linedef type 52

From SRB2 Wiki
Jump to: navigation, search
A continuous falling lava FOF in Red Volcano Zone Act 1.

Linedef type 52, Continuously Falling Sector, is a type of linedef special which makes the floor and ceiling of a sector (typically an FOF) continuously fall a certain height and then respawn at their starting point. This effect is useful for gimmicks like intermittently falling lava. It is also used to create the elevators in Dusty Wasteland Zone. In Pipe Towers Zone, this effect is used for a series of platforms moving up and down over a pit that the player has to jump across.

Setup

While this effect can be applied to any sector, it usually only makes sense to apply it to an FOF. To do this, 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 52. The linedef's front sector should be the FOF's control sector.

The floor and ceiling height of the linedef's front sector will indicate the starting point of the FOF. The heights of the linedef's back sector will indicate the point the sector will fall to, before respawning at the height of the linedef's front sector and repeating the process: The floor height of the linedef's back sector will be the ending point of the FOF's ceiling; the ceiling height of the linedef's back sector will be unused. You should usually give the back sector a lower floor and ceiling height than the front sector. The length of the linedef indicates the speed of the movement; one fracunit of length equals one fracunit per tic.

If Flag [6] / Not Climbable is checked, the FOF will rise instead of falling and the ceiling height of the linedef's back sector will be used for the ending point of FOF's floor; the floor height of the linedef's back sector will be unused. In this scenario, you should give the back sector a higher floor and ceiling height than the front sector.

Sample

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