mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Configure skynet point defenses.
Fixes https://github.com/Khopa/dcs_liberation/issues/470
This commit is contained in:
parent
85619b156d
commit
cd6620712f
@ -89,7 +89,21 @@ if dcsLiberation and SkynetIADS then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO: Add ships.
|
local sites = iads:getSAMSites()
|
||||||
|
for i = 1, #sites do
|
||||||
|
local site = sites[i]
|
||||||
|
local name = site:getDCSName()
|
||||||
|
if not string.match(name, "|PD") then
|
||||||
|
env.info(string.format("DCSLiberation|Skynet-IADS plugin - Checking %s for PD", name))
|
||||||
|
local pds = iads:getSAMSitesByPrefix(name .. "|PD")
|
||||||
|
for j = 1, #pds do
|
||||||
|
pd = pds[j]
|
||||||
|
env.info(string.format("DCSLiberation|Skynet-IADS plugin - Adding %s as PD for %s", pd:getDCSName(), name))
|
||||||
|
site:addPointDefence(pd)
|
||||||
|
site:setIgnoreHARMSWhilePointDefencesHaveAmmo(true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if inRadio then
|
if inRadio then
|
||||||
--activate the radio menu to toggle IADS Status output
|
--activate the radio menu to toggle IADS Status output
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user