Linedef type 522

From SRB2 Wiki
Jump to: navigation, search
Warning icon.png
This article or section should contain one or more images. Please spruce up the article by adding an image.

Linedef type 522, Carry Objects on Floor (Displacement), is a type of linedef special which scrolls Objects on any tagged sector's floor without scrolling the sector's floor flat. Unlike linedef type 520, it can be specifically set to start and stop at defined intervals.

Setup

The direction of the control linedef determines the direction the Objects will be carried. The length of the linedef indicates the base carrying speed (32 fracunits of length equal one fracunit per tic), however the actual effective carrying speed is set differently as explained ahead. The target sector must have the Conveyor Belt sector type applied to it, otherwise the carrying doesn't function properly.

On its own, this linedef will not carry Objects. Rather, the Objects move whenever either the floor or ceiling of the control sector moves, which can done by using linedef executors. The actual carrying speed is equal to the base speed × the control sector's movement speed. The direction of the carrying 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 carrying speed by moving the floor or ceiling of the control sector.

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

If the Not Climbable flag is checked, the control linedef connects the target sector to any target sectors touching it with the same tag, rather than pushing faster over sector borders. This flag should be checked when using the linedef special in conjunction with linedef type 64, otherwise the player will not stand still on the "moving sector".

Sample

Example WAD: ex_ld522_carryobjectsonfloor_displacement.wad
  Linedef types - Scroll effects [view]
Wall scrolling:

Scroll Wall Front Side LeftScroll Wall Front Side RightScroll Wall According to LinedefScroll Wall According to Linedef (Accelerative)Scroll Wall According to Linedef (Displacement)Scroll Texture by Front Side OffsetsScroll Texture 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)