Thread:Shay gman/@comment-91.246.115.124-20150907154146/@comment-91.246.115.124-20150907181657

Crab, i'm sorry, not special pressed space in wrong time that is finished variant:

zones have straight value according to (size of zone //for start), should be customizable for (photo %). zones keeping variables of all sides which forces are inside the zone, zones without forces (excluding civ) keeping variable free, free zones getting yellow priority. zones with forces straight lower then 20% of zone straight getting + 1 priority. aggressive behavior squads getting orders to refill zones which contains they side's variable which forces straight lover than straight of zone and free zones (!not more than zone straight!), they orders to move to zone keeping zone's priority value, for zones with enemys side's variables and free zones sended forces strength are counting and max forces can be send with strength not more then zone strength, each time any zone changing priority value or side's variable all orders are updating, giving orders: forces in whole map -> do not refill zones (but make CAS, AS)! forces in zone green -> move to all zones with higher priority, if zone will not have forces strength lower than 20% of zone strength. forces in zone yellow -> move to all zones with higher priority if slow speed and will have transport with the order. if medium speed and the zone is < then 4 km from target zone. If fast speed. , if zone will not have forces strength lower than 20% of zone strength 'forces in zone red -> move to all zones with higher priority //can be only red zone with forces strength lower than 20% of zone strength; if slow speed and will have transport with the order (if ground transport: the zone is < then 2 km from target zone). if medium speed and the zone is < then 2 km from target zone. If fast speed and the zone is < then 5 km from target zone. , if zone will not have forces strength lower than 20% of zone strength'//maybe;.

occupation function filling zones according their straight //maybe make it as an option.

execute for every squad if (squad's (all) cargo seats > or == another squad's mens) than { if (squad speed == medium) then { if (range another squad to waypoint > or == 1500) than { if (squad have waypoint) then { if (another squad's order priority > squad order priority) then { if (range squad to another squad < range another squad to waypoint) then {squad do transport another squad}; }   else { if (another squad's order priority == squad order priority) then { if (range squad to another squad < 1.5 * range another squad to waypoint) then {squad do transport another squad}; };  }   else {squad do transport another squad}; else { if range another squad to waypoint > or == 1000) than {   if (range squad to another squad < 2 / range another squad to waypoint) then {     if (another squad's order priority > squad order priority)      then {squad do transport another squad};    };   };  }; } else {  if (squad speed == fast) then {   if (range another squad to waypoint > or == 2000) than {    if (squad have waypoint) then {     if (another squad's order priority > or == squad order priority) then {      if (range squad to another squad < 2 * range another squad to waypoint)       then {squad do helicoptertransport another squad};     };    }    else {squad do helicoptertransport another squad};   };  }; }; }; (Here is still need to make they understand who is closer to do a transport, I could do it, but by writing it tired a bit ) )

And make landed helicopters makight their home where they staying after adding to GAIA, And planes acting with airfields like helicopters with they landing positions. And "Whole map" in list of zones same as zone.

If you'll want to contact me: Skype: Ilias48rus. or Email: ILIAS.BORT@yandex.ru