func_liquidportal

From Valve Developer Community
Jump to: navigation, search
English (en)
... Icon-Important.png

func_liquidportal

is a brush entity available in Portal Portal. It marks the space filled with portal liquid and teleports entities when done.

Icon-Bug.pngBug:This entity is incomplete and does not function very well.
Icon-Bug.pngBug:This entity requires mat_queue_mode to be set to 2 in order to render properly. Without this, it will display a missing texture.
In code, it is represented by theCFunc_LiquidPortalclass, defined in thefunc_liquidportal.cppfile.

Keyvalues

Linked liquid portal. (InitialLinkedPortal) <string>
Fill Time (sec) (FillTime) <float>
How long the volume takes to fill in seconds.

Origin:
Origin (X Y Z) (origin) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.

Angles:
Pitch Yaw Roll (Y Z X) (angles) <angle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

SetLinkedLiquidPortal <string>
The liquid portal this should link to. Will update linked portal to point back.
SetFillTime <float>
How long the area takes to fill.
StartFilling
Start filling NOW. Entities teleport when finished.
AddActivatorToTeleportList
Add the activator entity to the list of entities to teleport when filling is finished.
RemoveActivatorFromTeleportList
Remove the activator entity from the list of entities to teleport when filling is finished.

Outputs


Targetname:
OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (only in Left 4 Dead)
This output fires when the entity is killed and removed from the game.