Added JTAC to DETECTION_DISPATCHER

Added Process_JTAC to coordinate this activity during a CAS or BAI.
Removed TASK_CAS and TASK BAI into a generic TASK_A2G task.
This commit is contained in:
FlightControl
2016-07-21 15:28:53 +02:00
parent 8e8fcef266
commit 2eeaf7b92d
56 changed files with 1440 additions and 1280 deletions

View File

@@ -209,7 +209,7 @@ end
-- @param Unit#UNIT self
-- @return #string The Callsign of the Unit.
-- @return #nil The DCS Unit is not existing or alive.
function UNIT:GetCallSign()
function UNIT:GetCallsign()
self:F2( self.UnitName )
local DCSUnit = self:GetDCSObject()
@@ -473,6 +473,20 @@ function UNIT:GetThreatLevel()
local Attributes = self:GetDesc().attributes
local ThreatLevel = 0
local ThreatLevels = {
"Unarmed",
"Infantry",
"Old Tanks & APCs",
"Tanks & IFVs without ATGM",
"Tanks & IFV with ATGM",
"Modern Tanks",
"AAA",
"IR Guided SAMs",
"SR SAMs",
"MR SAMs",
"LR SAMs"
}
self:T2( Attributes )
if Attributes["LR SAM"] then ThreatLevel = 10
@@ -492,7 +506,7 @@ function UNIT:GetThreatLevel()
end
self:T2( ThreatLevel )
return ThreatLevel
return ThreatLevel, ThreatLevels[ThreatLevel+1]
end