(c14dcd3d6) Support for multi-target monster missions

This commit is contained in:
Joonas Rikkonen
2019-04-18 12:03:07 +03:00
parent 786c37811f
commit fdacc4534b
5 changed files with 55 additions and 25 deletions
@@ -76,7 +76,7 @@ namespace Barotrauma
else if (Vector2.DistanceSquared(center, ai.SimPosition) > maxDistFromCenter * maxDistFromCenter)
{
float distFromCenter = Vector2.Distance(center, ai.SimPosition);
ai.SteeringManager.SteeringSeek(center, distFromCenter - maxDistFromCenter);
ai.SteeringManager.SteeringSeek(center, (distFromCenter - maxDistFromCenter) / 10.0f);
}
//keep the characters moving in roughly the same direction