Linedef type 30

From SRB2 Wiki
Jump to navigation Jump to search
A two-side waving flag.

Linedef type 30, PolyObject – Waving Flag, is a type of linedef special which is used to make parts of a PolyObject shift forward and backward, creating a ripple effect. In v2.0 and v2.1, this linedef type was used to make the flags in Castle Eggman Zone Act 2 wave back and forth. Since v2.2, Object-based waving flags are used instead.

Setup

This linedef should be given a tag corresponding to the ID of the wanted PolyObject. The angle of the linedef determines the direction of the waving effect. The length of the linedef determines the wave effect's speed (1 fracunit of the linedef length equals 1 fracunit per tic of speed), and the front texture X offset determines how many fracunits to shift back and forth.

For this effect to work the way it does in v2.1's CEZ2, certain sides of the PolyObject should be split up by several vertices, to create waving points. This effect specifically requires the PolyObject to have an even amount of vertices to work, rather than an odd amount.

Sample

Example file: ex_ld030_polyobject_wavingflag.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_ld030_polyobject_wavingflag.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld030_polyobject_wavingflag.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 – PolyObjects [view]
First LineParametersWaving FlagDisplacement by Front SectorAngular Displacement by Front Sector