env_laser

An env_laser fires a laser beam from its position at a target entity. The beam stops at the first wall, player or
monster in the way, and it can hurt what it hits and show a sprite at each end.
Attributes
The entity also has these common keys:
- Position: Pitch Yaw Roll
targetnameTriggering the entity switches the laser on or off, as the use type says. Without a name, the laser is always on. See Common keys.
renderfxSets an effect that the engine adds to how the entity is drawn. Most of them change how visible it is over time, and Glow Shell (19) draws a shell in the FX Color around a model.The 19 choices
Normal (0)LaserTargetNames the entity the laser points at, and when several entities have this name, it picks one of them at random every 0.1 seconds.
If you leave this key empty, the laser points at the point 0 0 0 of the map.
renderamtSets how bright the beam and its sprites are, from 1 for barely visible up to 255 for full brightness.
If you leave this key empty, it is 0 and you can't see the laser.
100rendercolorSets the color of the beam and its sprites, as red, green and blue from 0 up to 255.
0 0 0widthSets how wide the beam is, in tenths of a unit from 0 up to 255, so 10 is one unit.
If you leave this key empty, it is 0 and you can't see the beam.
20NoiseAmplitudeSets how much the beam jitters, from 0 for a straight beam up to 255 for a very jagged one.
0textureSets the sprite the beam is drawn with.
If you leave this key empty, the entity is removed when the map starts.
sprites/laserbeam.sprEndSpriteSets a sprite shown where the beam ends while it is on.
TextureScrollSets how fast the sprite moves along the beam, from 0 for still up to 100 for fast.
If you leave this key empty, it is 0 and the sprite doesn't move.
35framestartSets the frame of the sprite the beam is drawn with.
0damageSets how much damage per second the beam deals to what it hits. A player takes more where the beam crosses them: twice as much on the chest, three times on the stomach and ten times on the head.
If you leave this key empty, it is 0 and the beam deals no damage.
100Flags
1Start OnA laser with a Name is on when the map starts. A laser without a name is always on
16StartSparksSparks fly at the start of the beam
32EndSparksSparks fly at the end of the beam
64Decal EndThe laser keeps leaving large bullet-hole decals where it hits a wall or a brush entity, ten times a second, even when it deals no damage
Notes
- If the laser is removed, for example by a KillTarget, its sprites are removed with it
See also
env_beam- a beam between two entities or pointsfunc_tanklaser- a gun that fires a laser- env_laser on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new key Start Sprite and the new flag No Camera Punch
- A removed laser takes its sprites with it. In SBO 1.38, the end sprite stayed behind
