Skip to content

Beam crystal

Deyan Dobromirov edited this page Jul 31, 2024 · 1 revision

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.

Calculating output beam

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.

Wire behavior

This entity has only outputs, which means that you can only read its internal state and used it to control something else.

crystal_mlp

Clone this wiki locally