Linedef type 40

From SRB2 Wiki
Jump to: navigation, 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 WAD: ex_ld040_visualportals.wad
  • This example WAD can be played in any gametype. It uses MAP01, replacing Greenflower Zone Act 1.
  • 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.

  Linedef types - Miscellaneous [view]
Per-Sector GravitySpeed PadCamera ScannerDisable Linedef Effect on Level LoadSector Flat AlignmentCulling PlaneHeat Wave EffectVisual Portal Between Tagged LinedefsInstantly Lower Floor on Level LoadInstantly Raise Ceiling on Level LoadFake Floor/Ceiling PlanesFloor Friction