Updated max distance to be configurable

This commit is contained in:
2026-08-18 20:19:33 +02:00
parent 63a1ea44db
commit 7bcd35854b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -29,6 +29,11 @@ SpearheadConfig = {
-- unit: feet
maxAlt = 28000, -- default 28000
--The "maxDistance" that's set on the CAP tasking for the aircraft to commit to a target.
--This is the distance from the aircraft to the target that the aircraft will commit to engaging
--This is shared for CAP, Intercept and Sweep missions for now.
maxCommitRange = 35, -- default 35
-- DELAYS.
-- Delays work as follow.
-- When an aircraft lands alive and well it will be rearmed and ready to go.
+1 -1
View File
@@ -34,7 +34,7 @@ function CapConfig.new()
self._minDurationOnStation = 1200
self._maxDurationOnStation = 2700
self._maxDeviationRange = 35 * 1852 -- in meters
self._maxDeviationRange = (tonumber(SpearheadConfig.CapConfig.maxCommitRange) or 35) * 1852 -- in meters
self._rearmDelay = tonumber(SpearheadConfig.CapConfig.rearmDelay) or 600
self._repairDelay = tonumber(SpearheadConfig.CapConfig.repairDelay) or 600
self._deathDelay = tonumber(SpearheadConfig.CapConfig.deathDelay) or 1800