Updates in defense system. Added SetSquadronEngageProbability method to decide per squadron what is the probability when it will engage.

This commit is contained in:
FlightControl
2019-03-09 17:29:18 +01:00
parent 10b96f6cce
commit afc918c5e5
2 changed files with 55 additions and 634 deletions
@@ -111,6 +111,7 @@ do -- AI_AIR_DISPATCHER
self:SetDefaultTakeoff( AI_AIR_DISPATCHER.Takeoff.Air )
self:SetDefaultTakeoffInAirAltitude( 500 ) -- Default takeoff is 500 meters above the ground.
self:SetDefaultLanding( AI_AIR_DISPATCHER.Landing.NearAirbase )
self:SetDefaultEngageRadius( 150000 )
self:SetDefaultOverhead( 1 )
self:SetDefaultGrouping( 1 )
@@ -382,6 +383,7 @@ do -- AI_AIR_DISPATCHER
return self
end
--- Define a border area to simulate a **cold war** scenario.
@@ -508,7 +510,7 @@ do -- AI_AIR_DISPATCHER
--- Set the default engage limit for squadrons, which will be used to determine how many air units will engage at the same time with the enemy.
-- The default eatrol limit is 1, which means one eatrol group maximum per squadron.
-- The default eatrol limit is 1, which means one patrol group maximum per squadron.
-- @param #AI_AIR_DISPATCHER self
-- @param #number EngageLimit The maximum engages that can be done at the same time per squadron.
-- @return #AI_AIR_DISPATCHER
@@ -528,6 +530,7 @@ do -- AI_AIR_DISPATCHER
end
function AI_AIR_DISPATCHER:SetIntercept( InterceptDelay )
self.DefenderDefault.InterceptDelay = InterceptDelay