mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-17 20:56:03 +00:00
Test changes changed to live
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
See https://github.com/ciribob/DCS-CTLD for a user manual and the latest version
|
See https://github.com/ciribob/DCS-CTLD for a user manual and the latest version
|
||||||
|
|
||||||
Version: 1.06 - 29/05/2015 - Event Bug Fix from Latest DCS Patch
|
Version: 1.07 - 30/05/2015 - Radio Beacons
|
||||||
|
|
||||||
]]
|
]]
|
||||||
|
|
||||||
@@ -32,8 +32,8 @@ ctld.maximumMoveDistance = 1000 -- max distance for troops to move from drop poi
|
|||||||
|
|
||||||
ctld.numberOfTroops = 10 -- default number of troops to load on a transport heli or C-130
|
ctld.numberOfTroops = 10 -- default number of troops to load on a transport heli or C-130
|
||||||
|
|
||||||
ctld.vehiclesForTransportRED = { "BRDM-2", "BTR_D" } -- vehicles to load onto Il-76
|
ctld.vehiclesForTransportRED = { "BRDM-2", "BTR_D" } -- vehicles to load onto Il-76 - Alternatives {"Strela-1 9P31","BMP-1"}
|
||||||
ctld.vehiclesForTransportBLUE = { "M1045 HMMWV TOW", "M1043 HMMWV Armament" } -- vehicles to load onto c130
|
ctld.vehiclesForTransportBLUE = { "M1045 HMMWV TOW", "M1043 HMMWV Armament" } -- vehicles to load onto c130 - Alternatives {"M1128 Stryker MGS","M1097 Avenger"}
|
||||||
|
|
||||||
ctld.spawnRPGWithCoalition = true --spawns a friendly RPG unit with Coalition forces
|
ctld.spawnRPGWithCoalition = true --spawns a friendly RPG unit with Coalition forces
|
||||||
|
|
||||||
@@ -286,7 +286,7 @@ ctld.jtacUnitTypes = {
|
|||||||
|
|
||||||
-----------------------------------------------------------------
|
-----------------------------------------------------------------
|
||||||
-- Spawn group at a trigger and set them as extractable. Usage:
|
-- Spawn group at a trigger and set them as extractable. Usage:
|
||||||
-- ctld.spawnGroupAtTrigger("groupside", number, "triggerName", radius)
|
-- ctld.spawnGroupAtTrigger("groupside", number, "triggerName", radius)
|
||||||
-- Variables:
|
-- Variables:
|
||||||
-- "groupSide" = "red" for Russia "blue" for USA
|
-- "groupSide" = "red" for Russia "blue" for USA
|
||||||
-- _number = number of groups to spawn
|
-- _number = number of groups to spawn
|
||||||
@@ -1453,12 +1453,12 @@ function ctld.unpackCrates(_args)
|
|||||||
|
|
||||||
elseif _crate ~= nil and _crate.dist < 200 then
|
elseif _crate ~= nil and _crate.dist < 200 then
|
||||||
|
|
||||||
-- if ctld.inLogisticsZone(_heli) == true then
|
if ctld.inLogisticsZone(_heli) == true then
|
||||||
--
|
|
||||||
-- ctld.displayMessageToGroup(_heli, "You can't unpack that here! Take it to where it's needed!", 20)
|
ctld.displayMessageToGroup(_heli, "You can't unpack that here! Take it to where it's needed!", 20)
|
||||||
--
|
|
||||||
-- return
|
return
|
||||||
-- end
|
end
|
||||||
|
|
||||||
-- is multi crate?
|
-- is multi crate?
|
||||||
if ctld.isMultiCrate(_crate.details) then
|
if ctld.isMultiCrate(_crate.details) then
|
||||||
@@ -1507,12 +1507,12 @@ end
|
|||||||
-- builds a fob!
|
-- builds a fob!
|
||||||
function ctld.unpackFOBCrates(_crates,_heli)
|
function ctld.unpackFOBCrates(_crates,_heli)
|
||||||
|
|
||||||
-- if ctld.inLogisticsZone(_heli) == true then
|
if ctld.inLogisticsZone(_heli) == true then
|
||||||
--
|
|
||||||
-- ctld.displayMessageToGroup(_heli, "You can't unpack that here! Take it to where it's needed!", 20)
|
ctld.displayMessageToGroup(_heli, "You can't unpack that here! Take it to where it's needed!", 20)
|
||||||
--
|
|
||||||
-- return
|
return
|
||||||
-- end
|
end
|
||||||
|
|
||||||
-- unpack multi crate
|
-- unpack multi crate
|
||||||
local _nearbyMultiCrates = {}
|
local _nearbyMultiCrates = {}
|
||||||
@@ -1625,7 +1625,7 @@ function ctld.generateRadioFMRadioFrequency()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if _found then
|
if _found then
|
||||||
--try again!
|
--try again!
|
||||||
return ctld.generateRadioFMFrequency()
|
return ctld.generateRadioFMFrequency()
|
||||||
else
|
else
|
||||||
return _frequency
|
return _frequency
|
||||||
@@ -2202,7 +2202,7 @@ function ctld.getSpawnedFobs(_heli)
|
|||||||
|
|
||||||
if _fob ~= nil and _fob:isExist() and _fob:getCoalition() == _heli:getCoalition() and _fob:getLife() > 0 then
|
if _fob ~= nil and _fob:isExist() and _fob:getCoalition() == _heli:getCoalition() and _fob:getLife() > 0 then
|
||||||
|
|
||||||
table.insert(_fobs,_fob)
|
table.insert(_fobs,_fob)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -2784,7 +2784,7 @@ function ctld.laseUnit(_enemyUnit, _jtacUnit, _jtacGroupName, _laserCode)
|
|||||||
end
|
end
|
||||||
if _result.laserPoint then
|
if _result.laserPoint then
|
||||||
|
|
||||||
-- env.info(jtacUnit:getName() .. ' is Lasing '..enemyUnit:getName()..'. CODE:'..laserCode)
|
-- env.info(jtacUnit:getName() .. ' is Lasing '..enemyUnit:getName()..'. CODE:'..laserCode)
|
||||||
|
|
||||||
ctld.jtacLaserPoints[_jtacGroupName] = _result.laserPoint
|
ctld.jtacLaserPoints[_jtacGroupName] = _result.laserPoint
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user