env_laser

XashXT

env_laser

Spawnflag

SF_BEAM_SOLID 512 (sets rendermode to normal)

Options

m_iProjection Laser projection type:
  • 0—no projection
  • 1—depends on the angle relationship
  • 2—like 1, but mirror reflections are taken into account
m_iStoppedBy Filter for objects that can obstruct the laser:
  • 0—glass and monsters
  • 1—only monsters (traced by their hitboxes)
  • 2—glass and monster hulls
  • 3—only monster hulls
  • 4—only glass
  • 5—ignore all except world geometry

Usage Details

  • The laser implementation has a limitation whereby crossing the beam and subsequent activation of the object in the target field do not work for projection type 2.
  • The EndSprite option accepts either a path to the sprite or the name of an existing env_sprite in the scene for more flexible sprite configuration.