mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Target identification distance more realistic
This commit is contained in:
parent
1fa8269427
commit
607ca90469
@ -164,8 +164,13 @@ do
|
||||
groupInfo.type = Library.objectNames.getGenericGroup(g)
|
||||
end
|
||||
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)
|
||||
groupInfo.type = Library.objectNames.getGenericGroup(g)
|
||||
if distanceToGroup > 2 * detectionRange / 3 then
|
||||
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
|
||||
|
||||
table.insert(detectedTargets, groupInfo)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user