Linedef type 3

From SRB2 Wiki
Jump to navigation Jump to search
Player spinning through a zoom tube.

Linedef type 3, Zoom Tube Parameters, is a type of linedef special which is used to define the parameters of a sequence of zoom tube waypoints. For more information about creating zoom tubes, refer to the zoom tube tutorial.

Binary setup

This linedef must be tagged to the two sectors which have the Zoom Tube Start and Zoom Tube End special, respectively (or only one of these to create a one-way zoom tube). The linedef's front texture X offset determines the speed of the zoom tube (a value of 8 equals 1 fracunit per tic of speed), and its front texture Y offset determines the number of the waypoint sequence. In both cases, the sign is ignored, so a negative value will have the same effect as the corresponding positive value.

If Flag [9] / Solid Midtexture / Effect 4 is checked, the zoom tube will also activate if the player is not facing the same direction as the zoom tube itself. Note that this effect should be only used for one-way zoom tubes, as the player will spin back and forth endlessly if both ends contain an activator sector.

Sample

Example file: ex_ld003_zoomtubeparameters.wad (MAP01) 
  • This map contains two separate zoom tubes. One is a regular ground-based zoom tube, while the other is floating freely in the air with the use of an intangible FOF.
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_ld003_zoomtubeparameters.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld003_zoomtubeparameters.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.


UDMF setup

For a two-way zoom tube, this linedef's tag must match the tag of two sectors which respectively have the Zoom Tube Start and Zoom Tube End flags applied. For a one-way zoom tube, only one sector with a matching tag and either flag is required, although it is recommended to give it the Zoom Tube Start flag.

Argument 1 of the linedef determines the speed of the zoom tube (a value of 8 equals 1 fracunit per tic of speed), and Argument 2 determines the number of the waypoint sequence. In both cases, the sign is ignored, so a negative value will have the same effect as the corresponding positive value.

If Argument 3 / Ignore player direction? is set to Yes, the zoom tube will also activate if the player is not facing the same direction as the zoom tube itself. Note that this effect should be only used for one-way zoom tubes, as the player will spin back and forth endlessly if both ends contain an activator sector.

Sample

Example file: exUDMF_ld003_zoomtubeparameters.wad (MAP01) 
  • This map contains two separate zoom tubes. The first is a one-way ground-based zoom tube, while the second is a two-way zoom tube with its waypoints floating freely in the air.
How to use
  • You may load this file into your favorite UDMF map editor, such as Ultimate Zone Builder. Select MAP01 as the map to load.
  • You may also load this file in the game:
    1. Save exUDMF_ld003_zoomtubeparameters.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select exUDMF_ld003_zoomtubeparameters.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