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)
|
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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user