-
Notifications
You must be signed in to change notification settings - Fork 3
Beam crystal
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.
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.
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.
The output beam behavior and visuals ( texture, sounds, color, flags etc. ) will be taken from the entity that is considered as dominant producing the most powerful beam that hits the crystal. With, force, damage and the remaining length however are being summed across all non-looped sources.
This entity has only outputs, which means that you can only read its internal state and used it to control something else.