mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
bug correction in the JTACautolase LUA config
This commit is contained in:
parent
41d5020467
commit
44c976948d
@ -369,12 +369,6 @@ dcsLiberation = {}
|
|||||||
-- the base location for state.json; if non-existent, it'll be replaced with LIBERATION_EXPORT_DIR, TEMP, or DCS working directory
|
-- the base location for state.json; if non-existent, it'll be replaced with LIBERATION_EXPORT_DIR, TEMP, or DCS working directory
|
||||||
dcsLiberation.installPath=""" + state_location + """
|
dcsLiberation.installPath=""" + state_location + """
|
||||||
|
|
||||||
-- you can override dcsLiberation.JTACAutoLase to make it use your own function ; it will be called with these parameters : ({jtac.unit_name}, {jtac.code}, {smoke}, 'vehicle') for all JTACs
|
|
||||||
if ctld then
|
|
||||||
dcsLiberation.JTACAutoLase=ctld.JTACAutoLase
|
|
||||||
elseif JTACAutoLase then
|
|
||||||
dcsLiberation.JTACAutoLase=JTACAutoLase
|
|
||||||
end
|
|
||||||
"""
|
"""
|
||||||
# Process the tankers
|
# Process the tankers
|
||||||
lua += """
|
lua += """
|
||||||
|
|||||||
@ -9,29 +9,28 @@
|
|||||||
env.info("DCSLiberation|JTACAutolase plugin - configuration")
|
env.info("DCSLiberation|JTACAutolase plugin - configuration")
|
||||||
|
|
||||||
if dcsLiberation then
|
if dcsLiberation then
|
||||||
veaf.logTrace("dcsLiberation")
|
env.info(string.format("DCSLiberation|JTACAutolase plugin - dcsLiberation"))
|
||||||
|
|
||||||
-- specific options
|
-- specific options
|
||||||
local smoke = false
|
local smoke = false
|
||||||
|
|
||||||
-- retrieve specific options values
|
-- retrieve specific options values
|
||||||
if dcsLiberation.plugins then
|
if dcsLiberation.plugins then
|
||||||
veaf.logTrace("dcsLiberation.plugins")
|
env.info(string.format("DCSLiberation|JTACAutolase plugin - dcsLiberation.plugins"))
|
||||||
|
|
||||||
if dcsLiberation.plugins.jtacautolase then
|
if dcsLiberation.plugins.jtacautolase then
|
||||||
veaf.logTrace("dcsLiberation.plugins.jtacautolase")
|
env.info(string.format("DCSLiberation|JTACAutolase plugin - dcsLiberation.plugins.jtacautolase"))
|
||||||
veaf.logTrace(string.format("dcsLiberation.plugins.jtacautolase.smoke=%s",veaf.p(dcsLiberation.plugins.jtacautolase.smoke)))
|
|
||||||
|
|
||||||
smoke = dcsLiberation.plugins.jtacautolase.smoke
|
smoke = dcsLiberation.plugins.jtacautolase.smoke
|
||||||
|
env.info(string.format("DCSLiberation|JTACAutolase plugin - smoke = %s",tostring(smoke)))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
veaf.logTrace(string.format("smoke=%s",veaf.p(smoke)))
|
|
||||||
|
|
||||||
-- actual configuration code
|
-- actual configuration code
|
||||||
for _, jtac in pairs(dcsLiberation.JTACs) do
|
for _, jtac in pairs(dcsLiberation.JTACs) do
|
||||||
if dcsLiberation.JTACAutoLase then
|
env.info(string.format("DCSLiberation|JTACAutolase plugin - setting up %s",jtac.dcsUnit))
|
||||||
dcsLiberation.JTACAutoLase(jtac.dcsUnit, jtac.code, smoke, 'vehicle')
|
if JTACAutoLase then
|
||||||
|
env.info(string.format("DCSLiberation|JTACAutolase plugin - calling dcsLiberation.JTACAutoLase"))
|
||||||
|
JTACAutoLase(jtac.dcsUnit, jtac.laserCode, smoke, 'vehicle')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
],
|
],
|
||||||
"configurationWorkOrders": [
|
"configurationWorkOrders": [
|
||||||
{
|
{
|
||||||
"file": "configuration.lua",
|
"file": "jtacautolase-config.lua",
|
||||||
"mnemonic": "jtacautolase-config"
|
"mnemonic": "jtacautolase-config"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user