mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-23 01:41:54 +00:00
Fix for VHF Beacons
This commit is contained in:
@@ -1761,6 +1761,7 @@ function ctld.updateRadioBeacon(_vhfFrequency, _vhfGroupName, _uhfFrequency,_uhf
|
|||||||
|
|
||||||
for _,_radio in pairs(_radioLoop) do
|
for _,_radio in pairs(_radioLoop) do
|
||||||
|
|
||||||
|
if _radio.silent then
|
||||||
local _setFrequency = {
|
local _setFrequency = {
|
||||||
["enabled"] = true,
|
["enabled"] = true,
|
||||||
["auto"] = false,
|
["auto"] = false,
|
||||||
@@ -1797,7 +1798,7 @@ function ctld.updateRadioBeacon(_vhfFrequency, _vhfGroupName, _uhfFrequency,_uhf
|
|||||||
["id"] = "TransmitMessage",
|
["id"] = "TransmitMessage",
|
||||||
["params"] = {
|
["params"] = {
|
||||||
["loop"] = true, --false works too
|
["loop"] = true, --false works too
|
||||||
["subtitle"] = _radioText, --_text
|
["subtitle"] = "", --_text
|
||||||
["duration"] = 60, -- reset every 60 seconds --used to have timer.getTime() +60
|
["duration"] = 60, -- reset every 60 seconds --used to have timer.getTime() +60
|
||||||
["file"] = _sound,
|
["file"] = _sound,
|
||||||
},
|
},
|
||||||
@@ -1817,8 +1818,15 @@ function ctld.updateRadioBeacon(_vhfFrequency, _vhfGroupName, _uhfFrequency,_uhf
|
|||||||
_groupController:setOption(AI.Option.Ground.id.ROE, AI.Option.Ground.val.ROE.WEAPON_HOLD)
|
_groupController:setOption(AI.Option.Ground.id.ROE, AI.Option.Ground.val.ROE.WEAPON_HOLD)
|
||||||
|
|
||||||
--env.info("Radio Beacon: ".. _text)
|
--env.info("Radio Beacon: ".. _text)
|
||||||
|
else
|
||||||
|
-- Above function doesnt work for simulating VHF in multiplayer but DOES in single player.... WHY DCS WHY!?!?!
|
||||||
|
|
||||||
-- trigger.action.radioTransmission(ctld.radioSoundShort, _vhfGroup:getUnit(1):getPoint(), _radio.mode, false, _radio.freq, 1000)
|
trigger.action.radioTransmission(ctld.radioSound, _vhfGroup:getUnit(1):getPoint(), _radio.mode, false, _radio.freq, 1000)
|
||||||
|
--This function doesnt actually stop transmitting when then sound is false. My hope is it will stop if a new beacon is created on the same
|
||||||
|
-- frequency... OR they fix the bug where it wont stop.
|
||||||
|
end
|
||||||
|
|
||||||
|
--
|
||||||
end
|
end
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user