CLinkedPortalDoor

From Source Entities
(Redirected from Linked portal door)
Jump to navigation Jump to search

Code classes:

CLinkedPortalDoor is a code class in P2.png.

Classnames:

  • linked_portal_door - Square portal that leads seamlessly to another linked_portal_door. The player can shoot the portal gun through it, but portals viewed through it don't look quite right.

Note: Brush entities near the portal may cause it to close.

Note: By default there's a limit of 4 portals visible on-screen. This means you're effectively limited to two linked doors in singleplayer and none in coop. If the limit is exceeded, things may begin to render incorrectly.

Tip: In Hammer, the red axis points away from the surface of the portal, the green axis is the width, and the blue axis is the height.

linked_portal_door is used in every Puzzle Maker level, to connect the exit and entrance elevators to the entrance and exit airlock rooms, but also in the GlaDOS wakeup sequence and in Chapter 9, in the Chamber 75 Death Trap with 6 defective turrets aiming directly at you. The incinerator shaft and the turret room are actually completely separate from their supposed surroundings. These are the only uses of this entity in the final version of the game, though commentary states that it was often used during development to link chambers together.

Keyvalues[edit | edit source]

Width (width) <integer>
Half width of the desired portal. The actual width will be twice this number.
Height (height) <integer>
Half height of the desired portal. The actual height will be twice this number.
Start Active (startactive) <boolean>
Opens the portal when the map starts.
Linked Partner (partnername) <target_destination>
Name of the linked_portal_door this one is linked to.

Inputs[edit | edit source]

SetPartner <target_destination>
Sets Linked Partner.
Open
Opens the portal.
Close
Closes the portal.

Outputs[edit | edit source]

OnEntityTeleportFromMe
Fires when any entity goes through this portal.
OnPlayerTeleportFromMe
Fires when a player goes through this portal.
OnEntityTeleportToMe
Fires when any entity goes through this portal's Linked Partner.
OnPlayerTeleportToMe
Fires when a player goes through this portal's Linked Partner.
OnOpen
Fires when the Open input is sent.
OnClose
Fires when the Close input is sent.

See Also[edit | edit source]