Linedef type 2

From SRB2 Wiki
(Redirected from Custom Exit)
Jump to navigation Jump to search

Linedef type 2, Custom Exit, is a type of linedef special which changes the next level the player will go to for a given Exit Sector.

Binary setup

This linedef should be tagged to a sector with the Exit Sector special. When the player then touches the exit sector, they will exit to a specified level, overriding the one set in the level header (this will not work in Race mode). The map number of the level to go to is specified by the control sector's floor height.

Checking Flag [6] / Not Climbable will make the game skip the score tally screen when switching to the new map. If Flag [1] / Block Enemies is checked, the map number to switch to will depend upon whether or not the player has collected all seven Chaos Emeralds. If the player has all seven Chaos Emeralds, the game will go to the map number indicated by the control sector's ceiling height. If the player does not have all seven Chaos Emeralds, the game will go to the map number indicated by the control sector's floor height.

Sample

Example file: ex_ld002_customexit.wad (MAP01) 
  • This example WAD skips the score tally screen and warps to MAP03 upon completion. With all emeralds, it warps to MAP04 instead. 
  • Play this map in Single Player mode.
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_ld002_customexit.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld002_customexit.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

This linedef's tag should match the tag of a sector with the Exit flag. When the player then touches the exit sector, they will be sent to the map number specified by Argument 1, overriding the one set in the level header. Note that this will not work in Race mode.

Argument 2 contains a number of settings: checking Flag [1] / Skip score tally will make the game skip the score tally screen when switching to the new map. If Flag [2] / Check emeralds is checked, the map number to switch to will depend upon whether or not the player has collected all seven Chaos Emeralds. If the player has all seven Chaos Emeralds, they will be sent to the map number specified by Argument 3. If the player does not have all seven Chaos Emeralds, the game will fall back on the map number indicated by Argument 1.

Sample

Example file: exUDMF_ld002_customexit.wad (MAP01) 
  • This example WAD contains two custom exits. The first skips the score tally screen and warps to MAP03 upon completion. The second warps to MAP02 by default, but with all emeralds, it warps to MAP04 instead. 
  • Play this map in Single Player mode.
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_ld002_customexit.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select exUDMF_ld002_customexit.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