From 7b03e7f7535707c83a53f34f7a7b415a9e319169 Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Sun, 27 Jul 2025 15:08:22 +0200 Subject: [PATCH] Tweaked detection range --- Script/The Universal Mission/WingmenContacts.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Script/The Universal Mission/WingmenContacts.lua b/Script/The Universal Mission/WingmenContacts.lua index 0d2963c..e54effe 100644 --- a/Script/The Universal Mission/WingmenContacts.lua +++ b/Script/The Universal Mission/WingmenContacts.lua @@ -29,9 +29,9 @@ do local detectionRange = DCSEx.converter.nmToMeters(15 * detectionRangeMultiplier) if gCateg == Group.Category.AIRPLANE then - detectionRange = DCSEx.converter.nmToMeters(40 * detectionRangeMultiplier) + detectionRange = DCSEx.converter.nmToMeters(35 * detectionRangeMultiplier) elseif gCateg == Group.Category.SHIP then - detectionRange = DCSEx.converter.nmToMeters(22 * detectionRangeMultiplier) + detectionRange = DCSEx.converter.nmToMeters(25 * detectionRangeMultiplier) local allSpeedboats = true for _,u in ipairs(grp:getUnits()) do if not u:getTypeName() == "speedboat" then allSpeedboats = false end @@ -88,7 +88,7 @@ do type = "contact" } - -- Return exact type when contact is close enough + -- Return exact type when aircraft contact is close enough if gCateg == Group.Category.AIRPLANE or gCateg == Group.Category.HELICOPTER then if distanceToGroup < detectionRange / 2 then groupInfo.type = Library.objectNames.get(g:getUnit(1))