This commit is contained in:
Anuken 2021-02-17 17:12:32 -05:00
parent 76dbdb59ce
commit d0dc1ea132
2 changed files with 3 additions and 3 deletions

View File

@ -49,10 +49,10 @@ public class FlyingAI extends AIController{
float ang = unit.angleTo(target);
float diff = Angles.angleDist(ang, unit.rotation());
if(diff > 100f && vec.len() < circleLength){
if(diff > 70f && vec.len() < circleLength){
vec.setAngle(unit.vel().angle());
}else{
vec.setAngle(Mathf.slerpDelta(unit.vel().angle(), vec.angle(), 0.6f));
vec.setAngle(Angles.moveToward(unit.vel().angle(), vec.angle(), 6f));
}
vec.setLength(unit.speed());

View File

@ -167,7 +167,7 @@ public class AIController implements UnitController{
}
protected boolean retarget(){
return timer.get(timerTarget, 40);
return timer.get(timerTarget, target == null ? 40 : 90);
}
protected Teamc findTarget(float x, float y, float range, boolean air, boolean ground){