Linedef type 64

From SRB2 Wiki
Jump to: navigation, search
Player walking over a bridge whose pieces appear and disappear at a fixed rate.

Linedef type 64, Continuously Appearing/Disappearing FOF, is a type of linedef special which makes an FOF appear and disappear at a fixed rate. This effect can also be used to simulate horizontally moving platforms, but it can cause lag when used excessively, so PolyObjects are usually preferable for this purpose. This effect is used extensively in Egg Rock Zone Act 1 for various purposes.

Setup

To use this effect, create both a regular FOF control sector and a separate control sector with the appearing/disappearing FOF effect. This effect should be tagged to the in-level target sector, not to the FOF control sector.

Additionally, you can specify different settings for different FOFs in the same target sector by giving the FOF control sector and control sector that contains the appearing/disappearing FOF effect the same tag. This can be useful, for example, if you wish to have multiple "horizontal moving platforms" at different heights and with different parameters within the same target sector.

If the Block Enemies flag is checked, this effect should instead be tagged to the FOF control sector. In this case, the tag of the appearing/disappearing FOF control sector will do nothing.

The X distance of the linedef determines the amount of time in tics that the FOF is visible and tangible, and the Y distance of the linedef determines the amount of time in tics that the FOF is invisible and intangible. The floor height of the control sector indicates the amount of delay before starting the process.

The FOF will play a "ding" sound effect (sfx_appear) whenever it appears, unless the Not Climbable flag is checked.

Note that if the appearing/disappearing FOF has a sector effect, that effect will still apply when the FOF is invisible.

Sample

Example WAD: ex_ld064_appdisappfof.wad
  • This example WAD can be played in any gametype. It uses MAP01, replacing Greenflower Zone Act 1.
  • This map showcases two uses of this effect: The blue FOF to the right of the player simply disappears and reappears every 32 tics. In front of the player is a series of FOFs that use this effect to create the illusion of a horizontally moving platform.
  • The horizontally moving platform uses the Not Climbable flag to prevent the "ding" sound from being played as the platform moves.

  Linedef types – Parameters [view]
Custom ExitZoom Tube ParametersSpecial Sector PropertiesChain ParametersRope Hang ParametersRock Spawner ParametersContinuously Appearing/Disappearing FOFBridge Thinker