From c84b54a21401f6fe447866761c01a3b71b62f2af Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 11 May 2023 15:30:25 +0200 Subject: [PATCH] #CTLD * placement of dropped crates to better align to unit length --- Moose Development/Moose/Ops/CTLD.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/CTLD.lua b/Moose Development/Moose/Ops/CTLD.lua index 1dca93f05..c623b2c58 100644 --- a/Moose Development/Moose/Ops/CTLD.lua +++ b/Moose Development/Moose/Ops/CTLD.lua @@ -1219,7 +1219,7 @@ CTLD.UnitTypes = { --- CTLD class version. -- @field #string version -CTLD.version="1.0.35" +CTLD.version="1.0.36" --- Instantiate a new CTLD. -- @param #CTLD self @@ -2335,7 +2335,7 @@ function CTLD:_GetCrates(Group, Unit, Cargo, number, drop) rheading = UTILS.RandomGaussian(0,30,-90,90,100) rheading = math.fmod((heading + rheading + addon), 360) else - local initialSpacing = IsHerc and 16 or 12 -- initial spacing of the first crates + local initialSpacing = IsHerc and 16 or (capabilities.length+2) -- initial spacing of the first crates local crateSpacing = 4 -- further spacing of remaining crates local lateralSpacing = 4 -- lateral spacing of crates local nrSideBySideCrates = 3 -- number of crates that are placed side-by-side