Scathe turret homing

This commit is contained in:
Anuken
2022-07-01 10:58:17 -04:00
parent 2dee4a380f
commit 2e98ecf09a
3 changed files with 53 additions and 2 deletions

View File

@@ -393,6 +393,11 @@ public class Turret extends ReloadTurret{
if(Float.isNaN(rotation)) rotation = 0;
}
if(!isControlled()){
unit.aimX(targetPos.x);
unit.aimY(targetPos.y);
}
float targetRot = angleTo(targetPos);
if(shouldTurn()){