WIP, need to make a new class next week, AI_ESCORT_REQUEST. Need to solve the issue with the formation flying uof multiple escort classes working together. Planes may not crash into each other.

This commit is contained in:
FlightControl
2019-04-25 08:59:07 +03:00
parent 315d6bf82a
commit b4d6f78e42
5 changed files with 78 additions and 249 deletions

View File

@@ -1087,11 +1087,11 @@ function AI_FORMATION:onenterFollowing( FollowGroupSet ) --R2.1
local Speed = - ( Distance + FollowFormation.x ) / Time
if Distance > -4000 then
Speed = - ( Distance + FollowFormation.x ) / 90
if Distance > -10000 then
Speed = - ( Distance + FollowFormation.x ) / 60
end
if Distance > -1500 then
if Distance > -2500 then
Speed = - ( Distance + FollowFormation.x ) / 20
end