I’m testing out a concept for a beam weapon that constantly stays “on”, meaning it doesn’t have a visually detactable firing interval. In my attempts, I set it so that the beam duration is longer than the firing interval. No dice though, since there’s still gaps between firing. Oh well.
However, I found something really weird. If a target is inside minimum distance, it shouldn’t be fired upon, right? Here is a section of the salient code:
beam_duration = 300 beamwidth = 18.0 blasttexture = "beam_orange_atlas.dds" cost = 1200 damage = 25 fire_interval = 250 grain = "beam_purple_atlas.dds" has_grain = 1 icon = turret max_range = 1400 min_range = 1350 optimum_range = 1375
When testing the weapon out, though, I noticed something weird. Despite clearing the (extremely high) minimum distance, targets will still getting slammed by the beams.
(Big thanks to Darkstar’s Uni-T for being my test dummies again)
I’m completely puzzled by this behavior. The ships are way inside the minimum distance, yet they’re still getting hammered.
And yes, I know the weapon is ridiculous. Just a proof of concept test for right now.