mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add EWR generation.
Fixes https://github.com/Khopa/dcs_liberation/issues/66
This commit is contained in:
@@ -38,6 +38,9 @@
|
||||
"HawkGenerator",
|
||||
"RapierGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
"HawkGenerator",
|
||||
"ChaparralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -45,6 +45,9 @@
|
||||
"HawkGenerator",
|
||||
"ChaparralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -46,6 +46,9 @@
|
||||
"HawkGenerator",
|
||||
"ChaparralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -63,6 +63,9 @@
|
||||
"HawkGenerator",
|
||||
"PatriotGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"PatriotEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
"HawkGenerator",
|
||||
"AvengerGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -48,6 +48,9 @@
|
||||
"SA10Generator",
|
||||
"SA6Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"BigBirdGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CV_1143_5_Admiral_Kuznetsov"
|
||||
],
|
||||
|
||||
@@ -45,6 +45,9 @@
|
||||
"RolandGenerator",
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -54,6 +54,9 @@
|
||||
"RolandGenerator",
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -40,6 +40,9 @@
|
||||
"HawkGenerator",
|
||||
"RolandGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -46,6 +46,9 @@
|
||||
"SA6Generator",
|
||||
"SA3Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"StraightFlushGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CV_1143_5_Admiral_Kuznetsov"
|
||||
],
|
||||
|
||||
@@ -53,6 +53,9 @@
|
||||
"HawkGenerator",
|
||||
"HQ7Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"SnowDriftGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
"HawkGenerator",
|
||||
"ChaparralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -40,6 +40,9 @@
|
||||
"HawkGenerator",
|
||||
"ChaparralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -43,6 +43,9 @@
|
||||
"HawkGenerator",
|
||||
"ChaparralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
"HawkGenerator",
|
||||
"AvengerGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
"HawkGenerator",
|
||||
"AvengerGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -43,6 +43,9 @@
|
||||
"HawkGenerator",
|
||||
"PatriotGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"PatriotEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -43,6 +43,9 @@
|
||||
"SA3Generator",
|
||||
"SA6Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"StraightFlushGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
"sams": [
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -51,6 +51,9 @@
|
||||
"SA3Generator",
|
||||
"SA6Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"StraightFlushGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -47,6 +47,9 @@
|
||||
"SA10Generator",
|
||||
"SA2Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"BigBirdGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"carrier_names": [
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
"SA3Generator",
|
||||
"SA6Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"StraightFlushGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -49,6 +49,9 @@
|
||||
"SA3Generator",
|
||||
"SA6Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"SnowDriftGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
"SA6Generator",
|
||||
"SA11Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"SnowDriftGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CV_1143_5_Admiral_Kuznetsov"
|
||||
],
|
||||
|
||||
@@ -58,6 +58,9 @@
|
||||
"SA6Generator",
|
||||
"SA19Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"BigBirdGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CV_1143_5_Admiral_Kuznetsov"
|
||||
],
|
||||
|
||||
@@ -55,6 +55,9 @@
|
||||
"SA10Generator",
|
||||
"SA19Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"BigBirdGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CV_1143_5_Admiral_Kuznetsov"
|
||||
],
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
"sams": [
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
"sams": [
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"navy_generators": [
|
||||
"OliverHazardPerryGroupGenerator"
|
||||
],
|
||||
|
||||
@@ -42,6 +42,9 @@
|
||||
"SA3Generator",
|
||||
"SA6Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"StraightFlushGenerator"
|
||||
],
|
||||
"missiles": [
|
||||
"ScudGenerator"
|
||||
],
|
||||
|
||||
@@ -45,6 +45,9 @@
|
||||
"SA3Generator",
|
||||
"SA6Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"StraightFlushGenerator"
|
||||
],
|
||||
"missiles": [
|
||||
"ScudGenerator"
|
||||
],
|
||||
|
||||
@@ -63,6 +63,9 @@
|
||||
"SA10Generator",
|
||||
"SA11Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"BigBirdGenerator"
|
||||
],
|
||||
"missiles": [
|
||||
"ScudGenerator"
|
||||
],
|
||||
|
||||
@@ -41,6 +41,9 @@
|
||||
"sams": [
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"navy_generators": [
|
||||
"OliverHazardPerryGroupGenerator"
|
||||
],
|
||||
|
||||
@@ -36,6 +36,9 @@
|
||||
"sams": [
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"requirements": {},
|
||||
"carrier_names": [
|
||||
],
|
||||
|
||||
@@ -41,6 +41,9 @@
|
||||
"sams": [
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -48,6 +48,9 @@
|
||||
"SA10Generator",
|
||||
"SA11Generator"
|
||||
],
|
||||
"ewrs": [
|
||||
"BigBirdGenerator"
|
||||
],
|
||||
"requirements": {},
|
||||
"carrier_names": [
|
||||
"Admiral Kuznetov",
|
||||
|
||||
@@ -53,6 +53,9 @@
|
||||
"HawkGenerator",
|
||||
"PatriotGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"PatriotEwrGenerator"
|
||||
],
|
||||
"requirements": {},
|
||||
"navy_generators": [
|
||||
"OliverHazardPerryGroupGenerator"
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
"HawkGenerator",
|
||||
"ChaparralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"requirements": {},
|
||||
"doctrine": "coldwar"
|
||||
}
|
||||
@@ -33,6 +33,9 @@
|
||||
"HawkGenerator",
|
||||
"ChaparralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"navy_generators": [
|
||||
"OliverHazardPerryGroupGenerator"
|
||||
],
|
||||
|
||||
@@ -50,6 +50,9 @@
|
||||
"sams": [
|
||||
"HawkGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"HawkEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
"HawkGenerator",
|
||||
"PatriotGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"PatriotEwrGenerator"
|
||||
],
|
||||
"aircraft_carrier": [
|
||||
"CVN_74_John_C__Stennis"
|
||||
],
|
||||
|
||||
@@ -13,16 +13,6 @@
|
||||
"mnemonic": "createBlueIADS",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"nameInUI": "Long-range SAM act as EWR for RED coalition",
|
||||
"mnemonic": "actAsEwrRED",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"nameInUI": "Long-range SAM act as EWR for BLUE coalition",
|
||||
"mnemonic": "actAsEwrBLUE",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"nameInUI": "Include RED IADS in radio menu",
|
||||
"mnemonic": "includeRedInRadio",
|
||||
|
||||
@@ -14,8 +14,6 @@ if dcsLiberation and SkynetIADS then
|
||||
-- specific options
|
||||
local createRedIADS = false
|
||||
local createBlueIADS = false
|
||||
local actAsEwrRED = false
|
||||
local actAsEwrBLUE = false
|
||||
local includeRedInRadio = false
|
||||
local includeBlueInRadio = false
|
||||
local debugRED = false
|
||||
@@ -26,8 +24,6 @@ if dcsLiberation and SkynetIADS then
|
||||
if dcsLiberation.plugins.skynetiads then
|
||||
createRedIADS = dcsLiberation.plugins.skynetiads.createRedIADS
|
||||
createBlueIADS = dcsLiberation.plugins.skynetiads.createBlueIADS
|
||||
actAsEwrRED = dcsLiberation.plugins.skynetiads.actAsEwrRED
|
||||
actAsEwrBLUE = dcsLiberation.plugins.skynetiads.actAsEwrBLUE
|
||||
includeRedInRadio = dcsLiberation.plugins.skynetiads.includeRedInRadio
|
||||
includeBlueInRadio = dcsLiberation.plugins.skynetiads.includeBlueInRadio
|
||||
debugRED = dcsLiberation.plugins.skynetiads.debugRED
|
||||
@@ -37,8 +33,6 @@ if dcsLiberation and SkynetIADS then
|
||||
|
||||
env.info(string.format("DCSLiberation|Skynet-IADS plugin - createRedIADS=%s",tostring(createRedIADS)))
|
||||
env.info(string.format("DCSLiberation|Skynet-IADS plugin - createBlueIADS=%s",tostring(createBlueIADS)))
|
||||
env.info(string.format("DCSLiberation|Skynet-IADS plugin - actAsEwrRED=%s",tostring(actAsEwrRED)))
|
||||
env.info(string.format("DCSLiberation|Skynet-IADS plugin - actAsEwrBLUE=%s",tostring(actAsEwrBLUE)))
|
||||
env.info(string.format("DCSLiberation|Skynet-IADS plugin - includeRedInRadio=%s",tostring(includeRedInRadio)))
|
||||
env.info(string.format("DCSLiberation|Skynet-IADS plugin - includeBlueInRadio=%s",tostring(includeBlueInRadio)))
|
||||
env.info(string.format("DCSLiberation|Skynet-IADS plugin - debugRED=%s",tostring(debugRED)))
|
||||
@@ -46,7 +40,7 @@ if dcsLiberation and SkynetIADS then
|
||||
|
||||
-- actual configuration code
|
||||
|
||||
local function initializeIADS(iads, coalition, actAsEwr, inRadio, debug)
|
||||
local function initializeIADS(iads, coalition, inRadio, debug)
|
||||
|
||||
local coalitionPrefix = "BLUE"
|
||||
if coalition == 1 then
|
||||
@@ -60,12 +54,12 @@ if dcsLiberation and SkynetIADS then
|
||||
iadsDebug.samWentDark = true
|
||||
iadsDebug.contacts = true
|
||||
iadsDebug.radarWentLive = true
|
||||
iadsDebug.noWorkingCommmandCenter = false
|
||||
iadsDebug.ewRadarNoConnection = false
|
||||
iadsDebug.samNoConnection = false
|
||||
iadsDebug.noWorkingCommmandCenter = true
|
||||
iadsDebug.ewRadarNoConnection = true
|
||||
iadsDebug.samNoConnection = true
|
||||
iadsDebug.jammerProbability = true
|
||||
iadsDebug.addedEWRadar = false
|
||||
iadsDebug.hasNoPower = false
|
||||
iadsDebug.addedEWRadar = true
|
||||
iadsDebug.hasNoPower = true
|
||||
iadsDebug.harmDefence = true
|
||||
iadsDebug.samSiteStatusEnvOutput = true
|
||||
iadsDebug.earlyWarningRadarStatusEnvOutput = true
|
||||
@@ -77,13 +71,6 @@ if dcsLiberation and SkynetIADS then
|
||||
--add SAM groups to the IADS:
|
||||
iads:addSAMSitesByPrefix(coalitionPrefix .. "|SAM|")
|
||||
|
||||
-- specific configurations, for each SAM type
|
||||
if actAsEwr then
|
||||
iads:getSAMSitesByNatoName('SA-10'):setActAsEW(true)
|
||||
iads:getSAMSitesByNatoName('SA-6'):setActAsEW(true)
|
||||
iads:getSAMSitesByNatoName('Patriot'):setActAsEW(true)
|
||||
end
|
||||
|
||||
-- add the AWACS
|
||||
if dcsLiberation.AWACs then
|
||||
for _, data in pairs(dcsLiberation.AWACs) do
|
||||
@@ -102,6 +89,8 @@ if dcsLiberation and SkynetIADS then
|
||||
end
|
||||
end
|
||||
|
||||
-- TODO: Add ships.
|
||||
|
||||
if inRadio then
|
||||
--activate the radio menu to toggle IADS Status output
|
||||
env.info("DCSLiberation|Skynet-IADS plugin - adding in radio menu")
|
||||
@@ -118,13 +107,13 @@ if dcsLiberation and SkynetIADS then
|
||||
if createRedIADS then
|
||||
env.info("DCSLiberation|Skynet-IADS plugin - creating red IADS")
|
||||
redIADS = SkynetIADS:create("IADS")
|
||||
initializeIADS(redIADS, 1, actAsEwrRED, includeRedInRadio, debugRED) -- RED
|
||||
initializeIADS(redIADS, 1, includeRedInRadio, debugRED) -- RED
|
||||
end
|
||||
|
||||
if createBlueIADS then
|
||||
env.info("DCSLiberation|Skynet-IADS plugin - creating blue IADS")
|
||||
blueIADS = SkynetIADS:create("IADS")
|
||||
initializeIADS(blueIADS, 2, actAsEwrBLUE, includeBlueInRadio, debugBLUE) -- BLUE
|
||||
initializeIADS(blueIADS, 2, includeBlueInRadio, debugBLUE) -- BLUE
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user