locus_beam

A locus_beam makes a beam each time you trigger it, between two entities, between two positions, or from a position
in a direction. Each beam is an entity of its own that can hurt what it touches, and it stays until its Duration
is over or a KillTarget removes it.
Attributes
targetnameTriggering the entity makes a beam. See Common keys.
m_iszStartSets where the beam starts, as an entity name or a locus position, as Start & End are says. With !activator, it is the entity that started the chain of triggers.
If you leave this key empty, no beam is made.
m_iszEndSets where the beam ends, as an entity name, a locus position, or with "Position & Direction", a locus vector added to the start. With *locus, it is the entity that started the chain of triggers.
If you leave this key empty, it works like *locus.
*locusimpulsePicks what Start at and End at name, and an end that is an entity follows that entity while it moves.
- Entity & Entity (0) - Two entities
- Position & Entity (1) - A position and an entity
- Position & Position (2) - Two positions
- Position & Direction (3) - A position and a vector, so the end is the start plus the vector
Entity & Entity (0)m_iszSpriteSets the sprite of the beam. It is loaded with the map, so changing it while the map runs does nothing.
sprites/laserbeam.sprrenderamtSets how bright the beam is, from 1 up to 255, and with 0 you can't see it.
0rendercolorSets the color of the beam, as red, green and blue from 0 up to 255, and with 0 0 0 you can't see it, or with Draw solid it is black.
0 0 0m_iWidthSets how wide the beam is, and with 0 you can't see it.
0m_iDistortionSets how much the beam wobbles, where 0 is straight, and with Draw sine, the height of the wave.
0m_fFrameSets the frame of the sprite each beam starts on.
0m_iScrollRateSets how fast the texture moves along the beam.
0m_fDurationSets how many seconds pass before the beam is removed, and with 0, it stays until a KillTarget with its name removes it.
0m_fDamageSets the damage dealt per second to the first thing the beam touches. The entity that triggered the locus_beam gets the kill, except when a player's beam hurts another player, where the beam itself is the attacker.
0m_iDamageTypePicks the kind of damage the beam deals.The 16 choices
Generic (0)m_iszTargetNameSets the name each beam gets, so a KillTarget of that name removes the beams.
targetThe entity fires this each time it makes a beam, and passes on the beam as the activator.
m_iStartAttachmentFor a start that is an entity, starts the beam at this attachment point of its model, from 1 up to 4.
m_iEndAttachmentFor an end that is an entity, ends the beam at this attachment point of its model, from 1 up to 4.
Flags
16Start sparksSparks fly at the start of the beam every 0.1 seconds
32End sparksSparks fly at the end of the beam every 0.1 seconds
64Decal endThe beam leaves scorch marks where it hits a wall
128Fade startThe beam fades in from its start, so it is see-through at the start and solid toward the end
256Fade endThe beam fades out toward its end, so it is solid at the start and see-through at the end
512Draw solidThe beam is drawn solid, where normally its colors are added to what is behind it
1024Draw sineThe beam is drawn as a wave, whose height Distortion sets
Notes
- An entity without a model, such as an
info_targetor apath_corner, counts as its position - The damage, the sparks and the scorch marks work as on an
env_laser, because every 0.1 seconds the beam is traced from its start to its end - Only alive players are hurt. When a player's beam hurts another player, the beam is the attacker, so the server
setting
mp_friendlyfire(set inserver.cfgor the server console) doesn't stop it - No beam is made when the map is close to the limit of entities
- In Start attachment and End attachment, 1 is the first attachment point of the model, which
calc_positioncalls Attachment point 0
See also
- Locus guide - a beam that follows the player, step by step
env_beam- a beam between two entities or pointsenv_laser- a beam that ends where it hits a wall- Locus system - the positions and vectors these keys take
Changes since 1.38
locus_beamis new in SBO 2.0.0

