Skip to main content

env_laser

env_laser icon
Point entity

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:

KeyDescriptionDefault
Nametargetname

Triggering the entity switches the laser on or off, as the use type says. Without a name, the laser is always on. See Common keys.

Render FXrenderfx

Sets 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)
  • Slow Pulse (1)
  • Fast Pulse (2)
  • Slow Wide Pulse (3)
  • Fast Wide Pulse (4)
  • Slow Strobe (9)
  • Fast Strobe (10)
  • Faster Strobe (11)
  • Slow Flicker (12)
  • Fast Flicker (13)
  • Slow Fade Away (5)
  • Fast Fade Away (6)
  • Slow Become Solid (7)
  • Fast Become Solid (8)
  • Constant Glow (14)
  • Distort (15)
  • Hologram (Distort + fade) (16)
  • Bulge Sideways (18)
  • Glow Shell (19)
Default Normal (0)
Target of LaserLaserTarget

Names 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.

Brightnessrenderamt

Sets 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.

Default 100
Beam Colorrendercolor

Sets the color of the beam and its sprites, as red, green and blue from 0 up to 255.

Default 0 0 0
Width of beamwidth

Sets 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.

Default 20
Amount of noiseNoiseAmplitude

Sets how much the beam jitters, from 0 for a straight beam up to 255 for a very jagged one.

Default 0
Sprite Nametexture

Sets the sprite the beam is drawn with.

If you leave this key empty, the entity is removed when the map starts.

Default sprites/laserbeam.spr
Start SpriteFeaturefulStartSprite

Sets a sprite shown at the start of the laser while it is on.

End SpriteEndSprite

Sets a sprite shown where the beam ends while it is on.

Texture Scroll RateTextureScroll

Sets 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.

Default 35
Starting Frameframestart

Sets the frame of the sprite the beam is drawn with.

Default 0
Damage / seconddamage

Sets 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.

Default 100

Flags​

1Start On

A laser with a Name is on when the map starts. A laser without a name is always on

16StartSparks

Sparks fly at the start of the beam

32EndSparks

Sparks fly at the end of the beam

64Decal End

The 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

4096No Camera PunchFeatureful

A player the laser hurts doesn't have their view jerk

Notes​

  • If the laser is removed, for example by a KillTarget, its sprites are removed with it

See also​

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