Reviewed-on: #49 Co-authored-by: dutchie031 <timrorije@gmail.com>
This commit was merged in pull request #49.
This commit is contained in:
@@ -7,6 +7,7 @@ local SWEEP = {}
|
||||
---@param attackHelos boolean
|
||||
---@return table
|
||||
local function GetCAPTargetTypes(attackHelos)
|
||||
---@type Array<string>
|
||||
local targetTypes = {
|
||||
[1] = "Planes",
|
||||
}
|
||||
@@ -49,7 +50,9 @@ local function GetCAPPointFromTriggerZone(airBase, capZone)
|
||||
---@type Vec2
|
||||
local baseVec2 = { x = baseVec3.x, y = baseVec3.z }
|
||||
|
||||
---@type Vec2
|
||||
local pointA = capZone.verts[furthestA]
|
||||
---@type Vec2
|
||||
local pointB = capZone.verts[furthestB]
|
||||
local furthest = pointA
|
||||
local closest = pointB
|
||||
@@ -80,6 +83,7 @@ end
|
||||
---@param airbase Airbase
|
||||
---@param capZone SpearheadTriggerZone
|
||||
---@param capConfig CapConfig
|
||||
---@return table
|
||||
local GetOutboundTask = function(airbase, capZone, capConfig)
|
||||
local airbaseVec3 = airbase:getPoint()
|
||||
local airbaseVec2 = { x = airbaseVec3.x, y = airbaseVec3.z }
|
||||
@@ -121,6 +125,7 @@ end
|
||||
---@param airbase Airbase
|
||||
---@param capZone SpearheadTriggerZone
|
||||
---@param capConfig CapConfig
|
||||
---@return table
|
||||
function SWEEP.getAsMissionFromAirbase(groupName, airbase, capZone, capConfig)
|
||||
|
||||
local pointA, pointB, pointC = SWEEP.getAsTasking(groupName, airbase, capZone, capConfig)
|
||||
|
||||
Reference in New Issue
Block a user