Linedef type 7

From SRB2 Wiki
Jump to: navigation, search
An aligned flat (to the left) and an angled flat (to the right).

Linedef type 7, Sector Flat Alignment, is a type of linedef special which sets the angle and offsets of the tagged sector's floor and/or ceiling flats upon loading a level. Note that this linedef action has no effect on skies (flats assigned with F_SKY1).

Setup

By default, this linedef will set the angle and offset of both the floor and ceiling flat in all tagged sectors. If no tag (i.e., tag 0) is given, the control linedef's front sector will be affected instead. If the Netgame Only flag is set, the floor flat(s) will not be affected. If the No Netgame flag is set, the ceiling flat(s) will not be affected.

The angle of the affected flats is determined by the control linedef's angle. The offsets of the affected flats are set so that the control linedef's beginning vertex is the apparent origin. When looking at the linedef in a map editor, the beginning vertex is the one to the right of the notch in the middle. If the Effect 6 flag is set, the offsets are set directly via the control linedef's front X and Y texture offsets.

Sample

Example file: ex_ld007_sectorflatalignment.wad (MAP01) 
  • This example WAD shows both the angle effect and the alignment effect. In both cases, only the floor is affected.
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_ld007_sectorflatalignment.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld007_sectorflatalignment.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 – Miscellaneous [view]
Per-Sector GravityCamera ScannerSector Flat AlignmentCulling PlaneHeat Wave EffectVisual Portal Between Tagged LinedefsHorizon EffectInstantly Lower Floor on Level LoadInstantly Raise Ceiling on Level LoadFake Floor/Ceiling PlanesFloor Friction