Beam splitter multy - dvdvideo1234/LaserSTool GitHub Wiki

Description

This scripted entity is designed to split a laser beam to N smaller and weaker beams. Every time a beam hits, its source will be added to the splitter sources for the output beams to be selected. 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 in case the entity is in repeater mode having only one output beam.

splitter_m

Turning the entity ON / OFF

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

Calculating output beam

The output beam behavior and visuals ( texture, sounds, color, flags etc. ) will be taken from the entity laser beam being an actual laser source. With, force, damage and the remaining length however are being divided to the output beams count. The splitter multi can process recursively many beams at the same time.

Wire behavior

This entity has only one input and this is the surface normal vector defining the surface the sources must check.