Beam sensor - dvdvideo1234/LaserSTool GitHub Wiki

Description

This scripted entity is designed to sum a bunch of laser beam parameters. Every time a beam hits, its source will be added to the crystal sources for the output superposition beam to be calculated. You can easily create crystal loops that will stay sustained until something blocks the beam path or a given refraction material absorbs some of the power when passing trough it.

crystal

Turning the entity ON / OFF

The entity will be turned on whenever at least one source is present and all the sources combined power is greater than zero. This cannot be turned on using wiremod.

Choosing a dominant

The beam power is calculated using the formula p = 5 * w + d, where p is the power being considered, w is current beam width and d is the damage. The entity loops trough its sources for the source entity that produces the most powerful laser beam and uses it as dominant.

Beam filtering

When internals are set to zero or an empty string, filtering is not enabled, otherwise a hit will be detected if the beam data meets the sensor filter requirements. This can include direction, origin, damage, force, width, length and much more.

Wire behavior

This entity has origin and direction as inputs overriding internals. You can wire the outputs to extract beam information or control something else.