Linedef type 504

From SRB2 Wiki
Jump to navigation Jump to search
This article or section is outdated and has not been fully updated to reflect the current version of SRB2.

Please help the Wiki by correcting or removing any misinformation, as well as adding any new information to the page.


An example of using a linedef 504.

Linedef type 504, Scroll Tagged Wall (Displacement), is a type of linedef special which scrolls the front side textures of every tagged linedef along a given direction and at a specified speed. Unlike linedef type 502, it can be specifically set to start and stop at defined intervals. Note that it will also scroll any player climbing on the front side of any affected linedef.

Setup

The length of the linedef indicates the base scrolling speed (32 fracunits of length equal one fracunit per tic), however the actual visible scrolling speed is set differently as explained ahead. The direction of the linedef indicates the direction of the scrolling.

On its own, this linedef will not scroll the wall texture. Rather, the texture will move whenever either the floor or ceiling of the control sector moves, which can done by using linedef executors. The actual scrolling speed is equal to the base speed × the control sector's movement speed. The direction of the scroll will be reversed if the floor or ceiling height of the control sector is lowered instead of raised.

To keep things simple and easier to control, the best thing to do is just use a base speed of 1 fracunit per tic (by giving the control linedef a length of 32 fracunits), and control the scrolling speed by moving the floor or ceiling of the control sector.

If this linedef is used in conjunction with linedef type 401, the scroller will immediately jump to the specified distance. If this linedef is used in conjunction with linedef type 404, the scroller will move continuously until the control sector reaches the given ceiling height. If this linedef is used in conjunction with linedef type 407, the scroller will only work as long as the linedef executor is being continuously triggered.

Sample

Example file: ex_ld504_scrollwall_displacement.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_ld504_scrollwall_displacement.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld504_scrollwall_displacement.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 – Scroll effects [view]
Wall scrolling:

Scroll Front Wall LeftScroll Front Wall RightScroll Tagged WallScroll Tagged Wall (Accelerative)Scroll Tagged Wall (Displacement)Scroll Front Wall by Front Side OffsetsScroll Front Wall by Back Side OffsetsScroll Back Wall by Front Side OffsetsScroll Back Wall by Back Side Offsets


Plane scrolling:

Scroll Floor TextureScroll Floor Texture (Accelerative)Scroll Floor Texture (Displacement)Scroll Ceiling TextureScroll Ceiling Texture (Accelerative)Scroll Ceiling Texture (Displacement)Carry Objects on FloorCarry Objects on Floor (Accelerative)Carry Objects on Floor (Displacement)Carry Objects on CeilingCarry Objects on Ceiling (Accelerative)Carry Objects on Ceiling (Displacement)Scroll Floor Texture and Carry ObjectsScroll Floor Texture and Carry Objects (Accelerative)Scroll Floor Texture and Carry Objects (Displacement)Scroll Ceiling Texture and Carry ObjectsScroll Ceiling Texture and Carry Objects (Accelerative)Scroll Ceiling Texture and Carry Objects (Displacement)