KaukausInsurgency / ki-dcs

Kaukasus Insurgency
5 stars 2 forks source link

AICOM Convoy Ambush #184

Open Igneous01 opened 6 years ago

Igneous01 commented 6 years ago

Currently, when an AI Convoy is sent out to resupply a depot, it's not possible in lua to figure out what route it would take to get to it's destination.

We can do some basic math to find the mid point between 2 points, but that's not indicative of the roads / path travelled, so there is a large margin for error with this solution.

Another option, is to just spawn ground units 2km ahead of the convoy (using the convoys current heading + offset distance) which may produce reasonable results. The problem I have with this is that unless a player is escorting a convoy their entire route through, the convoy will almost certainly die. The solution needs to be something that players can patrol/scan the entire route quickly and pick off targets, rather than needing to orbit the convoy for 40+ minutes to get it to it's destination safely.

Igneous01 commented 6 years ago

Possible to get route of convoy:

http://wiki.hoggit.us/view/DCS_func_findPathOnRoads

Igneous01 commented 6 years ago

Available in DCS 2.5