mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
commit
This commit is contained in:
11
CTLD.lua
11
CTLD.lua
@@ -2081,7 +2081,7 @@ function ctld.repackVehicle(_params, t) -- scan rrs table 'repackRequestsStack'
|
|||||||
repackableUnit:destroy() -- destroy repacked unit
|
repackableUnit:destroy() -- destroy repacked unit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--ctld.updateRepackMenu(playerUnitName) -- update the repack menu to process destroyed units
|
ctld.updateRepackMenu(playerUnitName) -- update the repack menu
|
||||||
ctld.repackRequestsStack[ii] = nil -- remove the processed request from the stacking table
|
ctld.repackRequestsStack[ii] = nil -- remove the processed request from the stacking table
|
||||||
end
|
end
|
||||||
if ctld.enableRepackingVehicles == true then
|
if ctld.enableRepackingVehicles == true then
|
||||||
@@ -5997,6 +5997,10 @@ function ctld.addTransportF10MenuOptions(_unitName)
|
|||||||
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("List FOBs"), _crateCommands,
|
missionCommands.addCommandForGroup(_groupId, ctld.i18n_translate("List FOBs"), _crateCommands,
|
||||||
ctld.listFOBS, { _unitName })
|
ctld.listFOBS, { _unitName })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ctld.enableRepackingVehicles == true then
|
||||||
|
ctld.updateRepackMenu( _unitName ) -- add repack menu
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if ctld.enableSmokeDrop then
|
if ctld.enableSmokeDrop then
|
||||||
@@ -6080,7 +6084,10 @@ function ctld.isUnitInMenuEntriesTable(_MenuEntriesTable, _typeUnitDesc)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
--******************************************************************************************************
|
--******************************************************************************************************
|
||||||
|
ctld.updateCount = 0
|
||||||
function ctld.updateRepackMenu(_playerUnitName)
|
function ctld.updateRepackMenu(_playerUnitName)
|
||||||
|
ctld.updateCount = ctld.updateCount + 1
|
||||||
|
ctld.logTrace("FG_ ctld.updateRepackMenu(%s) - %s", _playerUnitName, ctld.updateCount)
|
||||||
local playerUnit = ctld.getTransportUnit(_playerUnitName)
|
local playerUnit = ctld.getTransportUnit(_playerUnitName)
|
||||||
if playerUnit then
|
if playerUnit then
|
||||||
local _groupId = ctld.getGroupId(playerUnit)
|
local _groupId = ctld.getGroupId(playerUnit)
|
||||||
@@ -8341,7 +8348,7 @@ function ctld.initialize()
|
|||||||
timer.scheduleFunction(ctld.checkHoverStatus, nil, timer.getTime() + 1)
|
timer.scheduleFunction(ctld.checkHoverStatus, nil, timer.getTime() + 1)
|
||||||
end
|
end
|
||||||
if ctld.enableRepackingVehicles == true then
|
if ctld.enableRepackingVehicles == true then
|
||||||
timer.scheduleFunction(ctld.autoUpdateRepackMenu, nil, timer.getTime() + 1)
|
--timer.scheduleFunction(ctld.autoUpdateRepackMenu, nil, timer.getTime() + 1) -- initialize repack menu
|
||||||
timer.scheduleFunction(ctld.repackVehicle, nil, timer.getTime() + 1)
|
timer.scheduleFunction(ctld.repackVehicle, nil, timer.getTime() + 1)
|
||||||
end
|
end
|
||||||
if ctld.enableAutoOrbitingFlyingJtacOnTarget then
|
if ctld.enableAutoOrbitingFlyingJtacOnTarget then
|
||||||
|
|||||||
Reference in New Issue
Block a user