Linedef type 40

From SRB2 Wiki
(Redirected from Portal)
Jump to navigation Jump to search
Player looking into a series of visual portals.

Linedef type 40, Visual Portal Between Tagged Linedefs, is a type of linedef special which creates a connection between two one-sided linedefs for rendering purposes. The linedefs must be of equal length and point to sectors of equal floor-to-ceiling height, but they can be at any angle and height relative to each other. The effect is purely visual; players cannot walk through the portals. However, the effect can be combined with the teleporter effect to create portals that the player can walk through as well. Visual portals are currently not supported in OpenGL.

Setup

The tag of the linedef determines which linedef to link the portal to in the renderer; portal linedefs with the same tag are linked with each other.

Sample

Example file: ex_ld040_visualportals.wad (MAP01) 
  • The innermost linedef in the opening of each wall is a portal tagged to its companion on the other side of its corner of the map. The links demonstrate portals at different angles, as well as different heights.
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_ld040_visualportals.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld040_visualportals.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 – Miscellaneous [view]
Per-Sector GravityCamera ScannerSector Flat AlignmentCulling PlaneHeat Wave EffectVisual Portal Between Tagged LinedefsHorizon EffectInstantly Lower Floor on Level LoadInstantly Raise Ceiling on Level LoadFake Floor/Ceiling PlanesFloor Friction