helo everyone :)
is there a way to acces/modify the base turret range (to affect every turrets), i'v been digging for it and all i'v been able to find is an obscure modifier for station turrets under lib/shiputility.lua
local turret
if entity.isStation then
-- stations get turrets with highest reach <= !! this is not increasing aniting as i understand it, it get the higher range from turret and apply it tu any other turrets ...
local currentReach = 0.0
for i, t in pairs(turrets) do
for j = 0, t.numWeapons - 1 do
local reach = t.reach
if reach > currentReach then
currentReach = reach
turret = t
end
end
end
else
-- ships get random turrets <= !! no modification done to turrets range !!
turret = turrets[math.random(1, #turrets)]
end
any clue ? the aim is just to increase the overall range for turrets as i dont get why laser or kinetic weapon should have a range in space anyway same with other exept maybe for the tesla one ... <= cf: newton first law of motion