Env portal laser: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added keyvalue from FGD)
m (Link for placement helper)
Line 7: Line 7:


==Keyvalues==
==Keyvalues==
{{KV|No placement helper|boolean|If enabled, don't automatically create a portal placement helper at the end of the laser.}}
{{KV|No placement helper|boolean|If enabled, don't automatically create [[info_placement_helper|a portal placement helper]] at the end of the laser.}}
{{KV|Laser model|studio}}
{{KV|Laser model|studio}}
{{KV|Start off?|choices}}
{{KV|Start off?|choices}}

Revision as of 09:49, 2 June 2012

env_portal_laser as seen in Hammer
env_portal_laser as seen in-game (the white light is not emitted by the laser)

Template:Portal2 point It is a laser beam that will move through portals and reflect off metal surfaces.

Note.pngNote: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 ([todo internal name (i)]) <boolean>
If enabled, don't automatically create a portal placement helper at the end of the laser.
Laser model ([todo internal name (i)]) <model path>
Start off? ([todo internal name (i)]) <choices>
  • 1 : Yes
  • 0 : No
Deal lethal damage ([todo internal name (i)]) <choices>
  • 0 : Non-lethal
  • 1 : Lethal
Should auto aim ([todo internal name (i)]) <boolean>
Default to enabled
Skin Type ([todo internal name (i)]) <choices>
  • 0 : Clean
  • 1 : Rusted
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>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
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) <QAngle>
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 Portal 2)
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 <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/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 <stringRedirectInput/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 Portal 2)
Turns off rendering of this entity in reflections when using $reflectonlymarkedentities in water material.
EnableDrawInFastReflection  (in all games since Portal 2)
Turn on rendering of this entity in reflections when using $reflectonlymarkedentities in water material.

Outputs