BahamutoD/BDArmory — pull request #1 by Yskinator (2014-11-21 23:08:10+00:00)
Title: Laser now scale down based on distance and have range equal to physics range.

I modified lasers so that they scale down based on distance and have range equal to physics range. The idea is that instead of doing full damage and suddenly stopping, they get less and less effective the further you go. I based the damage calculations on how fast the laser would diverge in void, so it might not be quite right for atmospheres, but I'd say it's close enough.

I've been planning to try doing some long range space battles, so that's the main motivation for all this, but I figured I might as well share it. Of course, it's up to you whether you want to use it or not.

Note that you'll need to add tanAngle to the config files to actually make this work, so here are my recommended values:
*Short range laser (~2km max range): tanAngle = 0.00025
*Long range laser (~50km max range): tanAngle = 0.00005 <- I used twice as high base damage for this
// tangent of angle of divergeance divided by two.