mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Select correct template to engage is working now also.
This commit is contained in:
parent
456a38022f
commit
f76b0dc7d3
@ -2207,7 +2207,7 @@ do -- AI_A2G_DISPATCHER
|
|||||||
|
|
||||||
---
|
---
|
||||||
-- @param #AI_A2G_DISPATCHER self
|
-- @param #AI_A2G_DISPATCHER self
|
||||||
function AI_A2G_DISPATCHER:CountDefenders( AttackerDetection, DefenderCount )
|
function AI_A2G_DISPATCHER:CountDefenders( AttackerDetection, DefenderCount, DefenderTaskType )
|
||||||
|
|
||||||
local Friendlies = nil
|
local Friendlies = nil
|
||||||
|
|
||||||
@ -2225,8 +2225,8 @@ do -- AI_A2G_DISPATCHER
|
|||||||
-- Now we need to check if the AIGroup has a Task.
|
-- Now we need to check if the AIGroup has a Task.
|
||||||
local DefenderTask = self:GetDefenderTask( FriendlyGroup )
|
local DefenderTask = self:GetDefenderTask( FriendlyGroup )
|
||||||
if DefenderTask then
|
if DefenderTask then
|
||||||
-- The Task should be SEAD
|
-- The Task should be of the same type.
|
||||||
if true then -- TODO: fix this to the correct DefenderTaskType
|
if DefenderTaskType == DefenderTask.Type then
|
||||||
-- If there is no target, then add the AIGroup to the ResultAIGroups for Engagement to the AttackerSet
|
-- If there is no target, then add the AIGroup to the ResultAIGroups for Engagement to the AttackerSet
|
||||||
if DefenderTask.Target == nil then
|
if DefenderTask.Target == nil then
|
||||||
if DefenderTask.Fsm:Is( "Returning" )
|
if DefenderTask.Fsm:Is( "Returning" )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user