env_portal_laser
Jump to navigation
Jump to search
env_portal_laser
is a point entity available in Portal 2. It is a model with the ablity to emit a potent lazer beam. The laser can travel through portals and be redirected by Reflection Cubes. It will damage players that touch it. Turrets that are hit by the laser will be set on fire and explode after a second.
Note:There are two models that can be used. laser_emitter_center.mdl is the emitter pictured to the right, and laser_emitter.mdl is an emitter with the same base, but dropped a few units to line the laser up with redirectional cubes.
Keyvalues
- No placement helper (NoPlacementHelper) <boolean>
- If enabled, don't automatically create a portal placement helper at the end of the laser.
- Laser model (model) <model path>
- Which model the laser should use. Use this to alternate between laser_emitter_center.mdl and laser_emitter.mdl
- Start off? (StartState) <choices>
- Self-explanatory.
- 1 : Yes
- 0 : No
- Deal lethal damage (LethalDamage) <choices>
- Used to determine whether the laser will bump the player, or kill it.
- 0 : Non-lethal
- 1 : Lethal
- Should auto aim (AutoAimEnabled) <boolean>
- Default to enabled
- Skin Type (skin) <choices>
- Which skin the laser should use.
- 0 : Clean
- 1 : Rusted
- DisablePlayerCollision (DisablePlayerCollision) <boolean> (only in )
- Override to disable player collision for this laser. If set to 0 (default), sv_player_collide_with_laser will determine whether or not to collide. If 1, laser collision will be disabled.
- 0 : "Force Off"
- 1 : "Default Behavior"
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- 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.
- Render in Fast Reflections (drawinfastreflection) <boolean> (in all games since )
- If enabled, this entity will render in fast water reflections (i.e. when a water material specifies
$reflectonlymarkedentities
) and in the world impostor pass.
Inputs
Parentname:
- SetParent <string>
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string>
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string>
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
Reflection:
- DisableDrawInFastReflection (in all games since )
- Turns off rendering of this entity in reflections when using
$reflectonlymarkedentities
in water material.
- EnableDrawInFastReflection (in all games since )
- Turn on rendering of this entity in reflections when using
$reflectonlymarkedentities
in water material.