mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Fixed bug with convoys sometimes stuck in trees an buildings
This commit is contained in:
parent
28927248b2
commit
693a280555
@ -385,6 +385,12 @@ do
|
|||||||
y = vec2.y + unitOffset.y
|
y = vec2.y + unitOffset.y
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if options.onRoad then
|
||||||
|
local posOnRoads = DCSEx.world.getClosestPointOnRoadsVec2(unitTable)
|
||||||
|
unitTable.x = posOnRoads.x
|
||||||
|
unitTable.y = posOnRoads.y
|
||||||
|
end
|
||||||
|
|
||||||
if isAirUnit and aircraftDB then
|
if isAirUnit and aircraftDB then
|
||||||
unitTable.hardpoint_racks = true
|
unitTable.hardpoint_racks = true
|
||||||
unitTable.psi = 1.7703702498393
|
unitTable.psi = 1.7703702498393
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user