SUNBEAM is a deadly solid-state laser working in manual control mode as well as in auto-targeting mode. Controls (may be reconfigured in the PART.CFG file):
Targeting range is 50 Km, firing range is 2 Km (limited by KSP engine).
rotate the turret:<Numpad 8, 4, 5, 6> (make sure <Numlock> is ON!) toggle targeting beam:<Numpad 9> cycle targets:<Numpad 7> fire:<Numpad 0> (Warning! Laser quickly overheats when firing!)
New in v2.1:
- New fancy laser beams with volumetric light effects (level of details is adjustable via PART.CFG).
- Fixed some smoke behavior weirdness.
- Fixed game crash after destroying the target.
Download 65 Kb (must be logged in)
To install just unzip to KSP/ folder. hstwLaser.dll plugin goes to KSP/Plugins/, hstwLaser part goes to KSP/Parts/. If you wish to develop something similar feel free to use KSP/Sources/hstwLaser/ source code as a reference. No permission is required; just mention an original author and distribute your derivative work under BY-SA license.
[spoiler=Known issues][/spoiler]
- Despite the beam is 5 Km long it can hit targets at no more than 2 Km. Targets at greater distances are most likely 'on-rails', i.e. their models are not even loaded into the game.
- Sometimes laser beam ends not reaching the target. This happens when target's collider (physical model) does not coincide with its visible model.
- Sometimes ray appears clipped in mid-air when rotating a camera. It looks like there's something weird with Unity transparent shaders and camera clipping planes. When I tested 'solid' (opaque) rays they never were clipped.
- Laser picks a target by its name when game loads. If there are several vessels in range with the same name then laser picks an arbitrary one.
- Group control is not implemented. If you have several lasers on your vessel then each of them rotates on its own in response to manual controls. Though in auto-targeting mode they will try to lock on the same target.
[spoiler=ChangeLog][/spoiler]
v2.1:New laser beams with volumetric light -- and some bug fixes. v2.0:Laser finally goes fully functional with a brand new plugin. And, well, a brand new model. v1.1:Added 90�, 135� and 180� versions; models and textures slightly tweaked. v1:First release (0� and 45� versions only).




. I could not even add some fx_smokeTrail at the point where the beam touched the ground (\'cause I dunno that point LOL).

