Linedef type 4

From SRB2 Wiki
Jump to navigation Jump to 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).

Binary 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 Flag [9] / Solid Midtexture / Effect 4 is checked, the player will be teleported to the center of the sector when the speed pad is activated. If Flag [10] / Repeat Midtexture / Effect 5 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).

UDMF 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 arg1 settingsets the speed in fracunits per tic. Unless Flag 1 is checked, the player will NOT be teleported to the center of the sector when the speed pad is activated. If Flag 2 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 Stringarg 1, 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 PropertiesSet Camera Collision Planes (UDMF) Chain ParametersRope Hang ParametersRock Spawner ParametersBustable Block ParametersFan Particle Spawner ParametersMinecart ParametersContinuously Appearing/Disappearing FOFMake FOF Bouncy