Target identification distance more realistic

This commit is contained in:
Ambroise Garel 2025-07-25 19:39:16 +02:00
parent 1fa8269427
commit 607ca90469

View File

@ -164,8 +164,13 @@ do
groupInfo.type = Library.objectNames.getGenericGroup(g) groupInfo.type = Library.objectNames.getGenericGroup(g)
end end
else else
--groupInfo.type = Library.objectNames.getGenericGroup(g, distanceToGroup > 2 * detectionRange / 3) -- If above 2/3 max detection distance, return imprecise name ("vehicle" instead of "AAA"/"tank"/etc) if distanceToGroup > 2 * detectionRange / 3 then
groupInfo.type = Library.objectNames.getGenericGroup(g) groupInfo.type = Library.objectNames.getGenericGroup(g, true)
elseif distanceToGroup > detectionRange / 3 then
groupInfo.type = Library.objectNames.getGenericGroup(g, false)
else
groupInfo.type = Library.objectNames.get(g:getUnit(1))
end
end end
table.insert(detectedTargets, groupInfo) table.insert(detectedTargets, groupInfo)