mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-25 12:29:17 +00:00
review
This commit is contained in:
+3
-3
@@ -254,7 +254,7 @@ ctld.i18n["fr"]["Drop Orange Smoke"] = "Déposer Fumi Orange"
|
|||||||
ctld.i18n["fr"]["Drop Green Smoke"] = "Déposer Fumi Vert"
|
ctld.i18n["fr"]["Drop Green Smoke"] = "Déposer Fumi Vert"
|
||||||
ctld.i18n["fr"]["Drop Beacon"] = "Déposer Fumi Vert"
|
ctld.i18n["fr"]["Drop Beacon"] = "Déposer Fumi Vert"
|
||||||
ctld.i18n["fr"]["Radio Beacons"] = "Déposer Balise"
|
ctld.i18n["fr"]["Radio Beacons"] = "Déposer Balise"
|
||||||
ctld.i18n["fr"]["Remove Closet Beacon"] = "Supprimer Balise +proche"
|
ctld.i18n["fr"]["Remove Closest Beacon"] = "Supprimer Balise +proche"
|
||||||
ctld.i18n["fr"]["JTAC Status"] = "Statut JTAC"
|
ctld.i18n["fr"]["JTAC Status"] = "Statut JTAC"
|
||||||
ctld.i18n["fr"]["DISABLE "] = "DESACTIVE "
|
ctld.i18n["fr"]["DISABLE "] = "DESACTIVE "
|
||||||
ctld.i18n["fr"]["ENABLE "] = "ACTIVE "
|
ctld.i18n["fr"]["ENABLE "] = "ACTIVE "
|
||||||
@@ -521,7 +521,7 @@ ctld.i18n["es"]["Drop Orange Smoke"] = "Soltar humo naranja"
|
|||||||
ctld.i18n["es"]["Drop Green Smoke"] = "Soltar humo verde"
|
ctld.i18n["es"]["Drop Green Smoke"] = "Soltar humo verde"
|
||||||
ctld.i18n["es"]["Drop Beacon"] = "Soltar baliza"
|
ctld.i18n["es"]["Drop Beacon"] = "Soltar baliza"
|
||||||
ctld.i18n["es"]["Radio Beacons"] = "Balizas de radio"
|
ctld.i18n["es"]["Radio Beacons"] = "Balizas de radio"
|
||||||
ctld.i18n["es"]["Remove Closet Beacon"] = "Quitar baliza cercana"
|
ctld.i18n["es"]["Remove Closest Beacon"] = "Quitar baliza cercana"
|
||||||
ctld.i18n["es"]["JTAC Status"] = "Estado de JTAC"
|
ctld.i18n["es"]["JTAC Status"] = "Estado de JTAC"
|
||||||
ctld.i18n["es"]["DISABLE "] = "DESHABILITAR "
|
ctld.i18n["es"]["DISABLE "] = "DESHABILITAR "
|
||||||
ctld.i18n["es"]["ENABLE "] = "HABILITAR "
|
ctld.i18n["es"]["ENABLE "] = "HABILITAR "
|
||||||
@@ -771,7 +771,7 @@ ctld.i18n["ko"]["Drop Orange Smoke"] = "주황색 연막 투하"
|
|||||||
ctld.i18n["ko"]["Drop Green Smoke"] = "녹색 연막 투하"
|
ctld.i18n["ko"]["Drop Green Smoke"] = "녹색 연막 투하"
|
||||||
ctld.i18n["ko"]["Drop Beacon"] = "비콘 투하"
|
ctld.i18n["ko"]["Drop Beacon"] = "비콘 투하"
|
||||||
ctld.i18n["ko"]["Radio Beacons"] = "라디오 비콘"
|
ctld.i18n["ko"]["Radio Beacons"] = "라디오 비콘"
|
||||||
ctld.i18n["ko"]["Remove Closet Beacon"] = "가까운 비콘 제거"
|
ctld.i18n["ko"]["Remove Closest Beacon"] = "가까운 비콘 제거"
|
||||||
ctld.i18n["ko"]["JTAC Status"] = "JTAC 상태"
|
ctld.i18n["ko"]["JTAC Status"] = "JTAC 상태"
|
||||||
ctld.i18n["ko"]["DISABLE "] = "비활성화 "
|
ctld.i18n["ko"]["DISABLE "] = "비활성화 "
|
||||||
ctld.i18n["ko"]["ENABLE "] = "활성화 "
|
ctld.i18n["ko"]["ENABLE "] = "활성화 "
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ ctld.i18n["en"]["Drop Orange Smoke"] = nil
|
|||||||
ctld.i18n["en"]["Drop Green Smoke"] = nil
|
ctld.i18n["en"]["Drop Green Smoke"] = nil
|
||||||
ctld.i18n["en"]["Drop Beacon"] = nil
|
ctld.i18n["en"]["Drop Beacon"] = nil
|
||||||
ctld.i18n["en"]["Radio Beacons"] = nil
|
ctld.i18n["en"]["Radio Beacons"] = nil
|
||||||
ctld.i18n["en"]["Remove Closet Beacon"] = nil
|
ctld.i18n["en"]["Remove Closest Beacon"] = nil
|
||||||
ctld.i18n["en"]["JTAC Status"] = nil
|
ctld.i18n["en"]["JTAC Status"] = nil
|
||||||
ctld.i18n["en"]["DISABLE "] = nil
|
ctld.i18n["en"]["DISABLE "] = nil
|
||||||
ctld.i18n["en"]["ENABLE "] = nil
|
ctld.i18n["en"]["ENABLE "] = nil
|
||||||
@@ -5672,7 +5672,7 @@ function ctld.addTransportF10MenuOptions(_unitName)
|
|||||||
local _radioCommands = missionCommands.addSubMenuForGroup(_groupId, ctld.i18n_translate("Radio Beacons"), _rootPath)
|
local _radioCommands = missionCommands.addSubMenuForGroup(_groupId, ctld.i18n_translate("Radio Beacons"), _rootPath)
|
||||||
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("List Beacons"), _radioCommands, ctld.listRadioBeacons, { _unitName })
|
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("List Beacons"), _radioCommands, ctld.listRadioBeacons, { _unitName })
|
||||||
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("Drop Beacon"), _radioCommands, ctld.dropRadioBeacon, { _unitName })
|
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("Drop Beacon"), _radioCommands, ctld.dropRadioBeacon, { _unitName })
|
||||||
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("Remove Closet Beacon"), _radioCommands, ctld.removeRadioBeacon, { _unitName })
|
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("Remove Closest Beacon"), _radioCommands, ctld.removeRadioBeacon, { _unitName })
|
||||||
elseif ctld.deployedRadioBeacons ~= {} then
|
elseif ctld.deployedRadioBeacons ~= {} then
|
||||||
local _radioCommands = missionCommands.addSubMenuForGroup(_groupId, ctld.i18n_translate("Radio Beacons"), _rootPath)
|
local _radioCommands = missionCommands.addSubMenuForGroup(_groupId, ctld.i18n_translate("Radio Beacons"), _rootPath)
|
||||||
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("List Beacons"), _radioCommands, ctld.listRadioBeacons, { _unitName })
|
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("List Beacons"), _radioCommands, ctld.listRadioBeacons, { _unitName })
|
||||||
@@ -7284,7 +7284,6 @@ end
|
|||||||
-- examples ---------------------------------------------------------
|
-- examples ---------------------------------------------------------
|
||||||
--ctld.reconRefreshTargetsInLosOnF10Map(Unit.getByName("uh2-1"), 2000, 200)
|
--ctld.reconRefreshTargetsInLosOnF10Map(Unit.getByName("uh2-1"), 2000, 200)
|
||||||
--ctld.reconRemoveTargetsInLosOnF10Map(Unit.getByName("uh2-1"))
|
--ctld.reconRemoveTargetsInLosOnF10Map(Unit.getByName("uh2-1"))
|
||||||
|
|
||||||
--ctld.reconShowTargetsInLosOnF10Map(Unit.getByName("uh2-1"), 2000, 200)
|
--ctld.reconShowTargetsInLosOnF10Map(Unit.getByName("uh2-1"), 2000, 200)
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
--if ctld == nil then ctld = {} end
|
--if ctld == nil then ctld = {} end
|
||||||
@@ -7313,18 +7312,28 @@ function ctld.addReconRadioCommand(_side) -- _side = 1 or 2 (red or blue)
|
|||||||
if ctld.reconRadioAdded[tostring(_groupId)] == nil then
|
if ctld.reconRadioAdded[tostring(_groupId)] == nil then
|
||||||
ctld.logDebug("ctld.addReconRadioCommand - adding RECON radio menu for unit [%s]", ctld.p(_playerUnit:getName()))
|
ctld.logDebug("ctld.addReconRadioCommand - adding RECON radio menu for unit [%s]", ctld.p(_playerUnit:getName()))
|
||||||
local RECONpath = missionCommands.addSubMenuForGroup(_groupId, ctld.reconMenuName)
|
local RECONpath = missionCommands.addSubMenuForGroup(_groupId, ctld.reconMenuName)
|
||||||
missionCommands.addCommandForGroup( _groupId, ctld.i18n_translate("Show targets in LOS (refresh)"), RECONpath,
|
missionCommands.addCommandForGroup(_groupId,
|
||||||
ctld.reconRefreshTargetsInLosOnF10Map, { _groupId = _groupId,
|
ctld.i18n_translate("Show targets in LOS (refresh)"), RECONpath,
|
||||||
|
ctld.reconRefreshTargetsInLosOnF10Map, {
|
||||||
|
_groupId = _groupId,
|
||||||
_playerUnit = _playerUnit,
|
_playerUnit = _playerUnit,
|
||||||
_searchRadius = ctld.reconLosSearchRadius,
|
_searchRadius = ctld.reconLosSearchRadius,
|
||||||
_markRadius = ctld.reconLosMarkRadius,
|
_markRadius = ctld.reconLosMarkRadius,
|
||||||
_boolRemove = true})
|
_boolRemove = true
|
||||||
|
})
|
||||||
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("Hide targets in LOS"), RECONpath, ctld.reconRemoveTargetsInLosOnF10Map, _playerUnit)
|
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("Hide targets in LOS"), RECONpath, ctld.reconRemoveTargetsInLosOnF10Map, _playerUnit)
|
||||||
if ctld.reconAutoRefreshLosTargetMarks then
|
if ctld.reconAutoRefreshLosTargetMarks then
|
||||||
local c1 = missionCommands.addCommandForGroup( _groupId, ctld.i18n_translate("STOP autoRefresh targets in LOS"), RECONpath,
|
missionCommands.addCommandForGroup(_groupId,
|
||||||
ctld.reconStopAutorefreshTargetsInLosOnF10Map, _groupId, _playerUnit)
|
ctld.i18n_translate("STOP autoRefresh targets in LOS"), RECONpath,
|
||||||
|
ctld.reconStopAutorefreshTargetsInLosOnF10Map,
|
||||||
|
_groupId,
|
||||||
|
_playerUnit,
|
||||||
|
ctld.reconLosSearchRadius,
|
||||||
|
ctld.reconLosMarkRadius,
|
||||||
|
true)
|
||||||
else
|
else
|
||||||
local c2 = missionCommands.addCommandForGroup( _groupId, ctld.i18n_translate("START autoRefresh targets in LOS"), RECONpath,
|
missionCommands.addCommandForGroup(_groupId,
|
||||||
|
ctld.i18n_translate("START autoRefresh targets in LOS"), RECONpath,
|
||||||
ctld.reconStartAutorefreshTargetsInLosOnF10Map,
|
ctld.reconStartAutorefreshTargetsInLosOnF10Map,
|
||||||
_groupId,
|
_groupId,
|
||||||
_playerUnit,
|
_playerUnit,
|
||||||
@@ -7334,8 +7343,6 @@ function ctld.addReconRadioCommand(_side) -- _side = 1 or 2 (red or blue)
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
ctld.reconRadioAdded[tostring(_groupId)] = timer.getTime() --fetch the time to check for a regular refresh
|
ctld.reconRadioAdded[tostring(_groupId)] = timer.getTime() --fetch the time to check for a regular refresh
|
||||||
else
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -7344,7 +7351,7 @@ function ctld.addReconRadioCommand(_side) -- _side = 1 or 2 (red or blue)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
function ctld.reconStopAutorefreshTargetsInLosOnF10Map(_groupId, _playerUnit)
|
function ctld.reconStopAutorefreshTargetsInLosOnF10Map(_groupId, _playerUnit, _searchRadius, _markRadius, _boolRemove)
|
||||||
ctld.reconAutoRefreshLosTargetMarks = false
|
ctld.reconAutoRefreshLosTargetMarks = false
|
||||||
|
|
||||||
if ctld.reconLastScheduleIdAutoRefresh ~= 0 then
|
if ctld.reconLastScheduleIdAutoRefresh ~= 0 then
|
||||||
@@ -7366,15 +7373,18 @@ function ctld.reconStartAutorefreshTargetsInLosOnF10Map(_groupId, _playerUnit, _
|
|||||||
ctld.reconAutoRefreshLosTargetMarks = true
|
ctld.reconAutoRefreshLosTargetMarks = true
|
||||||
ctld.reconRefreshTargetsInLosOnF10Map({ _groupId = _groupId,
|
ctld.reconRefreshTargetsInLosOnF10Map({ _groupId = _groupId,
|
||||||
_playerUnit = _playerUnit,
|
_playerUnit = _playerUnit,
|
||||||
_searchRadius = ctld.reconLosSearchRadius,
|
_searchRadius = _searchRadius or ctld.reconLosSearchRadius,
|
||||||
_markRadius = ctld.reconLosMarkRadius,
|
_markRadius = _markRadius or ctld.reconLosMarkRadius,
|
||||||
_boolRemove = true},
|
_boolRemove = _boolRemove or true},
|
||||||
timer.getTime())
|
timer.getTime())
|
||||||
missionCommands.removeItemForGroup( _groupId, {ctld.reconMenuName, ctld.i18n_translate("START autoRefresh targets in LOS")})
|
missionCommands.removeItemForGroup( _groupId, {ctld.reconMenuName, ctld.i18n_translate("START autoRefresh targets in LOS")})
|
||||||
missionCommands.addCommandForGroup( _groupId, ctld.i18n_translate("STOP autoRefresh targets in LOS"), {ctld.reconMenuName},
|
missionCommands.addCommandForGroup( _groupId, ctld.i18n_translate("STOP autoRefresh targets in LOS"), {ctld.reconMenuName},
|
||||||
ctld.reconStopAutorefreshTargetsInLosOnF10Map,
|
ctld.reconStopAutorefreshTargetsInLosOnF10Map,
|
||||||
_groupId,
|
_groupId,
|
||||||
_playerUnit)
|
_playerUnit,
|
||||||
|
_searchRadius,
|
||||||
|
_markRadius,
|
||||||
|
_boolRemove)
|
||||||
end
|
end
|
||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
function ctld.reconShowTargetsInLosOnF10Map(_playerUnit, _searchRadius, _markRadius) -- _groupId targeting
|
function ctld.reconShowTargetsInLosOnF10Map(_playerUnit, _searchRadius, _markRadius) -- _groupId targeting
|
||||||
@@ -7382,12 +7392,10 @@ function ctld.reconShowTargetsInLosOnF10Map(_playerUnit, _searchRadius, _markRad
|
|||||||
if _playerUnit then
|
if _playerUnit then
|
||||||
local TargetsInLOS = {}
|
local TargetsInLOS = {}
|
||||||
|
|
||||||
local enemyCoa = 1
|
|
||||||
local enemyColor = "red"
|
local enemyColor = "red"
|
||||||
local color = {1, 0, 0, 0.2} -- red
|
local color = {1, 0, 0, 0.2} -- red
|
||||||
|
|
||||||
if _playerUnit:getCoalition() == 1 then
|
if _playerUnit:getCoalition() == 1 then
|
||||||
enemyCoa = 2
|
|
||||||
enemyColor = "blue"
|
enemyColor = "blue"
|
||||||
color = {51/255, 51/255, 1, 0.2} -- blue
|
color = {51/255, 51/255, 1, 0.2} -- blue
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1125,6 +1125,8 @@ ctld.addCallback(function(_args)
|
|||||||
end)
|
end)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Below is a complete list of all the "actions" plus the data that is sent through. For more information its best to check the CTLD Code to see more details of the arguments.
|
||||||
|
|
||||||
* `{unit = "Unit that did the action", unloaded = "DCS Troops Group", action = "dropped_troops"}`
|
* `{unit = "Unit that did the action", unloaded = "DCS Troops Group", action = "dropped_troops"}`
|
||||||
* `{unit = "Unit that did the action", unloaded = "DCS Vehicles Group", action = "dropped_vehicles"}`
|
* `{unit = "Unit that did the action", unloaded = "DCS Vehicles Group", action = "dropped_vehicles"}`
|
||||||
* `{unit = "Unit that did the action", unloaded = "List of picked up vehicles", action = "load_vehicles"}`
|
* `{unit = "Unit that did the action", unloaded = "List of picked up vehicles", action = "load_vehicles"}`
|
||||||
|
|||||||
Reference in New Issue
Block a user