From 34d54e8f769962b2bd73dbca60f878bd8917169b Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Sun, 27 Jul 2025 19:47:21 +0200 Subject: [PATCH] Aircraft types now identified no matter the distance --- Script/The Universal Mission/WingmenContacts.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Script/The Universal Mission/WingmenContacts.lua b/Script/The Universal Mission/WingmenContacts.lua index 148cf83..cc4f1d4 100644 --- a/Script/The Universal Mission/WingmenContacts.lua +++ b/Script/The Universal Mission/WingmenContacts.lua @@ -86,13 +86,12 @@ do type = "contact" } - -- 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)) - else - groupInfo.type = Library.objectNames.getGenericGroup(g) - end + -- if distanceToGroup < detectionRange / 2 then + groupInfo.type = Library.objectNames.get(g:getUnit(1)) + -- else + -- groupInfo.type = Library.objectNames.getGenericGroup(g) + -- end else groupInfo.type = Library.objectNames.getGenericGroup(g) end