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 sets the speed in fracunits per tic. Unless Flag [1] / Don't teleport player to sector center is checked, the player will NOT be teleported to the center of the sector when the speed pad is activated. If Flag [2] / Force spinning frames 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]
2 - Custom Exit3 - Zoom Tube Parameters4 - Speed Pad Parameters8 - Special Sector Properties / Set Camera Collision Planes9 - Chain Parameters11 - Rope Hang Parameters12 - Rock Spawner Parameters14 - Bustable Block Parameters15 - Fan Particle Spawner Parameters / Fan Particle Generator Heights16 - Minecart Parameters64 - Continuously Appearing/Disappearing FOF