mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Aircraft types now identified no matter the distance
This commit is contained in:
parent
11835d9c0b
commit
34d54e8f76
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user