Skip to content

Laser

Whether a railgun system draws a beam alongside its spiral of particles.

Specification
Applies to
ParticleSystemType
File
rules.ini
Section
[<ObjectType ID>]
Value
boolean
When omitted
no

The beam is created once, on the same frame the trace is laid, and runs the length of the trace — for a railgun weapon, from the firer’s muzzle to the far end of the beam’s damage sweep. It is a single line in LaserColor with no outer glow, it lasts ten frames, and it fades from half intensity to nothing across them. The lowest detail setting draws it as a flat line of that color instead, with neither the fade nor the channel rule below.

rules.ini
[MyRailgunSys] ; a ParticleSystemType registered in [ParticleSystems]
BehavesLike=Railgun
HoldsWhat=MyRailgunPart ; a ParticleType registered in [Particles]
Laser=yes
LaserColor=25,20,255

Only the Railgun behavior reads the flag, and the beam is independent of the particles beside it: a trace that lays no particles still draws it. A system that sets the flag and leaves LaserColor unset draws nothing visible above the lowest detail setting, because a color channel of zero is left untouched rather than painted; at the lowest setting the same system paints a black line.

This is not the beam a laser weapon fires. That one belongs to IsLaser=yes on the WeaponType, takes its colors from the weapon, and reaches nothing here.