env_portal_laser
Jump to navigation
Jump to search
Code classes:
CPortalLaserCBaseAnimating(models)CBaseEntity(all ents)
env_portal_laser is a point entity present in
Portal 2. This entity emits a Thermal Discouragement Beam.
Keyvalues[edit | edit source]
- Start off?
(StartState)<boolean> - If Yes, laser emitter is off by default.
- Deal lethal damage
(LethalDamage)<boolean> - If lethal, the laser will kill players immediately instead of taking several hits to kill.
- Should auto aim
(AutoAimEnabled)<boolean> - Allows the laser to bend itself slightly to reach a
prop_laser_catcherorpoint_laser_target. Does not apply if the beam has gone through a reflector cube. - No placement helper
(NoPlacementHelper)<boolean> - Prevents portals from moving slightly to help the player line them up with this laser.
- Skin Type
(skin)<choices> - Appearance of the emitter.
- 0: Clean
- 1: Rusted
- Render in Fast Reflections
(drawinfastreflection)<boolean> - Makes the entity be rendered in reflections from water materials using
$reflectonlymarkedentities.
Inputs[edit | edit source]
- TurnOn
- Turns the laser on.
- TurnOff
- Turns the laser off.
- Toggle
- If on, turn off. If off, turn on.
- EnableDrawInFastReflection
- Sets Render in Fast Reflections to true.
- DisableDrawInFastReflection
- Sets Render in Fast Reflections to false.