Linedef type 4

From SRB2 Wiki
Jump to: navigation, search
Player being dashed forward by a speed pad.

Linedef type 4, Speed Pad, is a type of linedef special which turns the floor of a tagged sector into a speed pad that will dash the player forward at a specified speed. After the dash, the player will also be momentarily invincible (just like after taking damage).

Setup

The target sector must have the Speed Pad sector special for this linedef effect to work. The direction of the speed pad is indicated by the direction of the control linedef. The linedef's front texture X offset sets the speed in fracunits per tic. Unless the Solid Midtexture flag is checked, the player will be teleported to the center of the sector when the speed pad is activated. If the Repeat Midtexture flag is checked and the player is using a character with the spindash ability, they will be forced into a spin when the speed pad is activated. By the default, the sound sfx_spdpad is played upon activating the speed pad. Alternatively, a different sound can be specified via the linedef's front upper texture, using the DS prefix (e.g., DSSPDPAD to play sfx_spdpad).

Sample

Example file: ex_ld004_speedpad.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_ld004_speedpad.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld004_speedpad.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 – Parameters [view]
Custom ExitZoom Tube ParametersSpeed Pad ParametersSpecial Sector PropertiesChain ParametersRope Hang ParametersRock Spawner ParametersBustable Block ParametersFan Particle Spawner ParametersMinecart ParametersContinuously Appearing/Disappearing FOF