Sweep cap (#54)

* Added initial implementation of Sweep groups

* Added initial implementation of Sweep groups

* Added initial implementation of Sweep groups

* Added initial implementation of Sweep groups

* fixed issues when testing

* Intercept cap (#55)

* First intial WIP for intercept units

* First intial WIP for intercept units

* major updates

---------

Co-authored-by: ex61wi <tim.rorije@ing.com>
Co-authored-by: dutchie032 <dutchie032>

---------

Co-authored-by: ex61wi <tim.rorije@ing.com>
Co-authored-by: dutchie032 <dutchie032>
This commit is contained in:
2025-06-12 22:40:55 +02:00
committed by GitHub
co-authored by ex61wi dutchie032 <dutchie032>
parent bdf7154333
commit ef65f5a353
22 changed files with 1834 additions and 353 deletions
+15
View File
@@ -113,6 +113,19 @@ function AirGroup:Spawn()
self:SpawnInternal(false)
end
function AirGroup:IsInAir()
local group = Group.getByName(self._groupName)
if group then
local units = group:getUnits()
for _, unit in pairs(units) do
if unit:inAir() == true then
return true
end
end
end
return false
end
---@param force boolean
---@param withoutLoadout boolean?
---@protected
@@ -423,6 +436,8 @@ Spearhead.classes.capClasses.airGroups.AirGroup = AirGroup
---@alias AirGroupType
---| "CAP"
---| "SWEEP"
---| "INTERCEPT"
---| "CAS"
---| "SEAD"