reset default values to more realistic ones

This commit is contained in:
David Pierron
2024-11-09 11:50:44 +01:00
parent 9dea93f96a
commit 419dae35fa
+97 -91
View File
@@ -43,7 +43,7 @@ ctld.staticBugWorkaround = false -- DCS had a bug where destroying statics woul
ctld.disableAllSmoke = false -- if true, all smoke is diabled at pickup and drop off zones regardless of settings below. Leave false to respect settings below ctld.disableAllSmoke = false -- if true, all smoke is diabled at pickup and drop off zones regardless of settings below. Leave false to respect settings below
--> Allow units to CTLD by aircraft type and not by pilot name --> Allow units to CTLD by aircraft type and not by pilot name
ctld.addPlayerAircraftByType = true ctld.addPlayerAircraftByType = false
ctld.hoverPickup = true -- if set to false you can load crates with the F10 menu instead of hovering... Only if not using real crates! ctld.hoverPickup = true -- if set to false you can load crates with the F10 menu instead of hovering... Only if not using real crates!
@@ -234,36 +234,37 @@ ctld.wpZones = {
-- If ctld.addPlayerAircraftByType = True, comment or uncomment lines to allow aircraft's type carry CTLD -- If ctld.addPlayerAircraftByType = True, comment or uncomment lines to allow aircraft's type carry CTLD
ctld.aircraftTypeTable = { ctld.aircraftTypeTable = {
--%%%%% MODS %%%%% --%%%%% MODS %%%%%
"Bronco-OV-10A", --"Bronco-OV-10A",
"Hercules", --"Hercules",
--"SK-60", --"SK-60",
"UH-60L", --"UH-60L",
--"T-45", --"T-45",
--%%%%% CHOPPERS %%%%% --%%%%% CHOPPERS %%%%%
"Ka-50", --"Ka-50",
"Ka-50_3", --"Ka-50_3",
"Mi-8MT", "Mi-8MT",
"Mi-24P", "Mi-24P",
"SA342L", --"SA342L",
"SA342M", --"SA342M",
"SA342Mistral", --"SA342Mistral",
"SA342Minigun", --"SA342Minigun",
"UH-1H", "UH-1H",
"CH-47Fbl1",
--%%%%% AIRCRAFTS %%%%% --%%%%% AIRCRAFTS %%%%%
"C-101EB", --"C-101EB",
"C-101CC", --"C-101CC",
--"Christen Eagle II", --"Christen Eagle II",
"L-39C", --"L-39C",
"L-39ZA", --"L-39ZA",
"MB-339A", --"MB-339A",
"MB-339APAN", --"MB-339APAN",
"Mirage-F1B", --"Mirage-F1B",
"Mirage-F1BD", --"Mirage-F1BD",
"Mirage-F1BE", --"Mirage-F1BE",
"Mirage-F1BQ", --"Mirage-F1BQ",
"Mirage-F1DDA", --"Mirage-F1DDA",
--"Su-25T", --"Su-25T",
--"Yak-52", --"Yak-52",
@@ -272,14 +273,14 @@ ctld.aircraftTypeTable = {
--"Fw 190A8", --"Fw 190A8",
--"FW-190D9", --"FW-190D9",
--"I-16", --"I-16",
"MosquitoFBMkVI", --"MosquitoFBMkVI",
--"P-47D-30", --"P-47D-30",
--"P-47D-40", --"P-47D-40",
--"P-51D", --"P-51D",
--"P-51D-30-NA", --"P-51D-30-NA",
--"SpitfireLFMkIX", --"SpitfireLFMkIX",
--"SpitfireLFMkIXCW", --"SpitfireLFMkIXCW",
"TF-51D", --"TF-51D",
} }
-- Use any of the predefined names or set your own ones -- Use any of the predefined names or set your own ones
@@ -485,50 +486,51 @@ ctld.unitLoadLimits = {
-- ["SA342M"] = 4, -- ["SA342M"] = 4,
--%%%%% MODS %%%%% --%%%%% MODS %%%%%
["Bronco-OV-10A"] = 4, --["Bronco-OV-10A"] = 4,
["Hercules"] = 30, ["Hercules"] = 30,
["SK-60"] = 1, --["SK-60"] = 1,
["UH-60L"] = 12, ["UH-60L"] = 12,
["T-45"] = 1, --["T-45"] = 1,
--%%%%% CHOPPERS %%%%% --%%%%% CHOPPERS %%%%%
["Mi-8MT"] = 16, ["Mi-8MT"] = 16,
["Mi-24P"] = 10, ["Mi-24P"] = 10,
["SA342L"] = 4, --["SA342L"] = 4,
["SA342M"] = 4, --["SA342M"] = 4,
["SA342Mistral"] = 4, --["SA342Mistral"] = 4,
["SA342Minigun"] = 3, --["SA342Minigun"] = 3,
["UH-1H"] = 8, ["UH-1H"] = 8,
["CH-47Fbl1"] = 33,
--%%%%% AIRCRAFTS %%%%% --%%%%% AIRCRAFTS %%%%%
["C-101EB"] = 1, --["C-101EB"] = 1,
["C-101CC"] = 1, --["C-101CC"] = 1,
["Christen Eagle II"] = 1, --["Christen Eagle II"] = 1,
["L-39C"] = 1, --["L-39C"] = 1,
["L-39ZA"] = 1, --["L-39ZA"] = 1,
["MB-339A"] = 1, --["MB-339A"] = 1,
["MB-339APAN"] = 1, --["MB-339APAN"] = 1,
["Mirage-F1B"] = 1, --["Mirage-F1B"] = 1,
["Mirage-F1BD"] = 1, --["Mirage-F1BD"] = 1,
["Mirage-F1BE"] = 1, --["Mirage-F1BE"] = 1,
["Mirage-F1BQ"] = 1, --["Mirage-F1BQ"] = 1,
["Mirage-F1DDA"] = 1, --["Mirage-F1DDA"] = 1,
["Su-25T"] = 1, --["Su-25T"] = 1,
["Yak-52"] = 1, --["Yak-52"] = 1,
--%%%%% WARBIRDS %%%%% --%%%%% WARBIRDS %%%%%
["Bf-109K-4"] = 1, --["Bf-109K-4"] = 1,
["Fw 190A8"] = 1, --["Fw 190A8"] = 1,
["FW-190D9"] = 1, --["FW-190D9"] = 1,
["I-16"] = 1, --["I-16"] = 1,
["MosquitoFBMkVI"] = 1, --["MosquitoFBMkVI"] = 1,
["P-47D-30"] = 1, --["P-47D-30"] = 1,
["P-47D-40"] = 1, --["P-47D-40"] = 1,
["P-51D"] = 1, --["P-51D"] = 1,
["P-51D-30-NA"] = 1, --["P-51D-30-NA"] = 1,
["SpitfireLFMkIX"] = 1, --["SpitfireLFMkIX"] = 1,
["SpitfireLFMkIXCW"] = 1, --["SpitfireLFMkIXCW"] = 1,
["TF-51D"] = 1, --["TF-51D"] = 1,
} }
@@ -554,52 +556,53 @@ ctld.unitActions = {
-- ["SA342M"] = {crates=false, troops=true}, -- ["SA342M"] = {crates=false, troops=true},
--%%%%% MODS %%%%% --%%%%% MODS %%%%%
["Bronco-OV-10A"] = {crates=true, troops=true}, --["Bronco-OV-10A"] = {crates=true, troops=true},
["Hercules"] = {crates=true, troops=true}, ["Hercules"] = {crates=true, troops=true},
["SK-60"] = {crates=true, troops=true}, ["SK-60"] = {crates=true, troops=true},
["UH-60L"] = {crates=true, troops=true}, ["UH-60L"] = {crates=true, troops=true},
["T-45"] = {crates=true, troops=true}, --["T-45"] = {crates=true, troops=true},
--%%%%% CHOPPERS %%%%% --%%%%% CHOPPERS %%%%%
["Ka-50"] = {crates=true, troops=false}, --["Ka-50"] = {crates=true, troops=false},
["Ka-50_3"] = {crates=true, troops=false}, --["Ka-50_3"] = {crates=true, troops=false},
["Mi-8MT"] = {crates=true, troops=true}, ["Mi-8MT"] = {crates=true, troops=true},
["Mi-24P"] = {crates=true, troops=true}, ["Mi-24P"] = {crates=true, troops=true},
["SA342L"] = {crates=false, troops=true}, --["SA342L"] = {crates=false, troops=true},
["SA342M"] = {crates=false, troops=true}, --["SA342M"] = {crates=false, troops=true},
["SA342Mistral"] = {crates=false, troops=true}, --["SA342Mistral"] = {crates=false, troops=true},
["SA342Minigun"] = {crates=false, troops=true}, --["SA342Minigun"] = {crates=false, troops=true},
["UH-1H"] = {crates=true, troops=true}, ["UH-1H"] = {crates=true, troops=true},
["CH-47Fbl1"] = {crates=true, troops=true},
--%%%%% AIRCRAFTS %%%%% --%%%%% AIRCRAFTS %%%%%
["C-101EB"] = {crates=true, troops=true}, --["C-101EB"] = {crates=true, troops=true},
["C-101CC"] = {crates=true, troops=true}, --["C-101CC"] = {crates=true, troops=true},
["Christen Eagle II"] = {crates=true, troops=true}, --["Christen Eagle II"] = {crates=true, troops=true},
["L-39C"] = {crates=true, troops=true}, --["L-39C"] = {crates=true, troops=true},
["L-39ZA"] = {crates=true, troops=true}, --["L-39ZA"] = {crates=true, troops=true},
["MB-339A"] = {crates=true, troops=true}, --["MB-339A"] = {crates=true, troops=true},
["MB-339APAN"] = {crates=true, troops=true}, --["MB-339APAN"] = {crates=true, troops=true},
["Mirage-F1B"] = {crates=true, troops=true}, --["Mirage-F1B"] = {crates=true, troops=true},
["Mirage-F1BD"] = {crates=true, troops=true}, --["Mirage-F1BD"] = {crates=true, troops=true},
["Mirage-F1BE"] = {crates=true, troops=true}, --["Mirage-F1BE"] = {crates=true, troops=true},
["Mirage-F1BQ"] = {crates=true, troops=true}, --["Mirage-F1BQ"] = {crates=true, troops=true},
["Mirage-F1DDA"] = {crates=true, troops=true}, --["Mirage-F1DDA"] = {crates=true, troops=true},
["Su-25T"]= {crates=true, troops=false}, --["Su-25T"]= {crates=true, troops=false},
["Yak-52"] = {crates=true, troops=true}, --["Yak-52"] = {crates=true, troops=true},
--%%%%% WARBIRDS %%%%% --%%%%% WARBIRDS %%%%%
["Bf-109K-4"] = {crates=true, troops=false}, --["Bf-109K-4"] = {crates=true, troops=false},
["Fw 190A8"] = {crates=true, troops=false}, --["Fw 190A8"] = {crates=true, troops=false},
["FW-190D9"] = {crates=true, troops=false}, --["FW-190D9"] = {crates=true, troops=false},
["I-16"] = {crates=true, troops=false}, --["I-16"] = {crates=true, troops=false},
["MosquitoFBMkVI"] = {crates=true, troops=true}, --["MosquitoFBMkVI"] = {crates=true, troops=true},
["P-47D-30"] = {crates=true, troops=false}, --["P-47D-30"] = {crates=true, troops=false},
["P-47D-40"] = {crates=true, troops=false}, --["P-47D-40"] = {crates=true, troops=false},
["P-51D"] = {crates=true, troops=false}, --["P-51D"] = {crates=true, troops=false},
["P-51D-30-NA"] = {crates=true, troops=false}, --["P-51D-30-NA"] = {crates=true, troops=false},
["SpitfireLFMkIX"] = {crates=true, troops=false}, --["SpitfireLFMkIX"] = {crates=true, troops=false},
["SpitfireLFMkIXCW"] = {crates=true, troops=false}, --["SpitfireLFMkIXCW"] = {crates=true, troops=false},
["TF-51D"] = {crates=true, troops=true}, --["TF-51D"] = {crates=true, troops=true},
} }
-- ************** WEIGHT CALCULATIONS FOR INFANTRY GROUPS ****************** -- ************** WEIGHT CALCULATIONS FOR INFANTRY GROUPS ******************
@@ -4647,6 +4650,7 @@ end
-- are we in pickup zone -- are we in pickup zone
function ctld.inPickupZone(_heli) function ctld.inPickupZone(_heli)
ctld.logDebug(string.format("ctld.inPickupZone(_heli=%s)", ctld.p(_heli)))
if ctld.inAir(_heli) then if ctld.inAir(_heli) then
return { inZone = false, limit = -1, index = -1 } return { inZone = false, limit = -1, index = -1 }
@@ -4655,6 +4659,7 @@ function ctld.inPickupZone(_heli)
local _heliPoint = _heli:getPoint() local _heliPoint = _heli:getPoint()
for _i, _zoneDetails in pairs(ctld.pickupZones) do for _i, _zoneDetails in pairs(ctld.pickupZones) do
ctld.logTrace(string.format("_zoneDetails=%s", ctld.p(_zoneDetails)))
local _triggerZone = trigger.misc.getZone(_zoneDetails[1]) local _triggerZone = trigger.misc.getZone(_zoneDetails[1])
@@ -4675,6 +4680,7 @@ function ctld.inPickupZone(_heli)
--get distance to center --get distance to center
local _dist = ctld.getDistance(_heliPoint, _triggerZone.point) local _dist = ctld.getDistance(_heliPoint, _triggerZone.point)
ctld.logTrace(string.format("_dist=%s", ctld.p(_dist)))
if _dist <= _triggerZone.radius then if _dist <= _triggerZone.radius then
local _heliCoalition = _heli:getCoalition() local _heliCoalition = _heli:getCoalition()
if _zoneDetails[4] == 1 and (_zoneDetails[5] == _heliCoalition or _zoneDetails[5] == 0) then if _zoneDetails[4] == 1 and (_zoneDetails[5] == _heliCoalition or _zoneDetails[5] == 0) then
@@ -6577,7 +6583,7 @@ function ctld.initialize(force)
assert(mist ~= nil, "\n\n** HEY MISSION-DESIGNER! **\n\nMiST has not been loaded!\n\nMake sure MiST 3.6 or higher is running\n*before* running this script!\n") assert(mist ~= nil, "\n\n** HEY MISSION-DESIGNER! **\n\nMiST has not been loaded!\n\nMake sure MiST 3.6 or higher is running\n*before* running this script!\n")
if ctld.addPlayerAircraftByType == true then if ctld.addPlayerAircraftByType == true then
ctld.AddPlayerAircraftByType() ctld.AddPlayerAircraftByType()
end end