Linedef type 511

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 511, Scroll Floor Texture (Accelerative), is a type of linedef special which scrolls every tagged sector's floor flat without carrying Objects touching the floor. Unlike linedef type 510, the speed can be changed in an accelerative/decelerative fashion.


The direction of the control linedef determines the direction the floor flat will scroll. 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.

On its own, this linedef will not scroll the floor. Rather, the flat will scroll whenever either the floor or ceiling of the control sector moves, which can done by using linedef executors. The actual scrolling speed, in any given instant, is equal to the base speed × the distance the control sector has moved + the speed in the previous instant. In other words, every time the control sector's floor or ceiling rises, the scroller accelerates, and every time the floor or ceiling lowers, the scroller decelerates. If the floor and ceiling are returned to their original heights, the scroller will stop, and if they are lowered past this point, the scroller will accelerate in the reverse direction.

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 used in conjunction with linedef type 401, the speed will instantly jump to a fixed value. If used in conjunction with linedef type 407, the speed will gradually increase or decrease.


Example WAD: ex_ld511_scrollfloortexture_accelerative.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)