Linedef type 30

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. This linedef type is used to make the flags in Castle Eggman Zone Act 2 wave back and forth.

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 Castle Eggman Zone Act 2, 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.