mirror of
https://github.com/weyne85/DCS-ExportScripts.git
synced 2025-10-29 16:58:18 +00:00
made the additional info export optional, that makes the Apache export way less costly in CPU resources
This commit is contained in:
parent
494d4dd1c2
commit
96fe3b871a
@ -8,6 +8,16 @@ local Terrain = require('terrain') -- map info
|
|||||||
ExportScript.FoundDCSModule = true
|
ExportScript.FoundDCSModule = true
|
||||||
ExportScript.Version.AH64D_BLK_II = "1.2.1"
|
ExportScript.Version.AH64D_BLK_II = "1.2.1"
|
||||||
|
|
||||||
|
ExportScript.exportAdditionalInfo = false
|
||||||
|
--[[
|
||||||
|
If set to true, will add additional info on the low tick export:
|
||||||
|
- AirportInfo: Provides info on the two closest airports
|
||||||
|
- WindsAloft: Gets winds at the aircraft
|
||||||
|
- GroundRadar: Reports 2 closest friendlies and 2 enemies (Use in Single Player)
|
||||||
|
- AirRadar: Reports 2 closest friendlies and 2 enemies (Use in Single Player)
|
||||||
|
- IglaHunter: Locates closest Igla (Use in Single Player)
|
||||||
|
]]
|
||||||
|
|
||||||
ExportScript.ConfigEveryFrameArguments =
|
ExportScript.ConfigEveryFrameArguments =
|
||||||
{
|
{
|
||||||
--[[
|
--[[
|
||||||
@ -744,6 +754,7 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
|||||||
if LoIsObjectExportAllowed() then -- returns true if world objects data is available
|
if LoIsObjectExportAllowed() then -- returns true if world objects data is available
|
||||||
if LoIsOwnshipExportAllowed() then -- returns true if ownship data is available
|
if LoIsOwnshipExportAllowed() then -- returns true if ownship data is available
|
||||||
ExportScript.LoAircraftInfo(mainPanelDevice) -- Provides a lot of aircraft properties
|
ExportScript.LoAircraftInfo(mainPanelDevice) -- Provides a lot of aircraft properties
|
||||||
|
if ExportScript.exportAdditionalInfo then
|
||||||
ExportScript.AirportInfo(mainPanelDevice) -- Provides info on the two closest airports
|
ExportScript.AirportInfo(mainPanelDevice) -- Provides info on the two closest airports
|
||||||
ExportScript.WindsAloft(mainPanelDevice) -- Gets winds at the aircraft
|
ExportScript.WindsAloft(mainPanelDevice) -- Gets winds at the aircraft
|
||||||
ExportScript.GroundRadar(mainPanelDevice) -- Reports 2 closest friendlies and 2 enemies (Use in Single Player)
|
ExportScript.GroundRadar(mainPanelDevice) -- Reports 2 closest friendlies and 2 enemies (Use in Single Player)
|
||||||
@ -751,7 +762,7 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
|||||||
ExportScript.IglaHunter(mainPanelDevice) -- Locates closest Igla (Use in Single Player)
|
ExportScript.IglaHunter(mainPanelDevice) -- Locates closest Igla (Use in Single Player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user