Renamed ROT to TurnSpeed on Mobile, Aircraft, Turreted and ThrowsParticle
This commit is contained in:
@@ -43,7 +43,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
var move = plane.FlyStep(plane.Facing);
|
||||
var altitude = plane.CenterPosition.Z;
|
||||
|
||||
plane.Facing = Util.TickFacing(plane.Facing, desiredFacing, plane.ROT);
|
||||
plane.Facing = Util.TickFacing(plane.Facing, desiredFacing, plane.TurnSpeed);
|
||||
|
||||
if (altitude != desiredAltitude.Length)
|
||||
{
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
// Can rotate facing while ascending
|
||||
var desiredFacing = dist.HorizontalLengthSquared != 0 ? dist.Yaw.Facing : helicopter.Facing;
|
||||
helicopter.Facing = Util.TickFacing(helicopter.Facing, desiredFacing, helicopter.ROT);
|
||||
helicopter.Facing = Util.TickFacing(helicopter.Facing, desiredFacing, helicopter.TurnSpeed);
|
||||
|
||||
if (HeliFly.AdjustAltitude(self, helicopter, helicopter.Info.CruiseAltitude))
|
||||
return this;
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
// Rotate towards the target
|
||||
var dist = pos - self.CenterPosition;
|
||||
var desiredFacing = dist.HorizontalLengthSquared != 0 ? dist.Yaw.Facing : helicopter.Facing;
|
||||
helicopter.Facing = Util.TickFacing(helicopter.Facing, desiredFacing, helicopter.ROT);
|
||||
helicopter.Facing = Util.TickFacing(helicopter.Facing, desiredFacing, helicopter.TurnSpeed);
|
||||
var move = helicopter.FlyStep(desiredFacing);
|
||||
|
||||
// Inside the minimum range, so reverse
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
helicopter.SetPosition(self, helicopter.CenterPosition + move);
|
||||
|
||||
var desiredFacing = helicopter.Facing + 64;
|
||||
helicopter.Facing = Util.TickFacing(helicopter.Facing, desiredFacing, helicopter.ROT / 3);
|
||||
helicopter.Facing = Util.TickFacing(helicopter.Facing, desiredFacing, helicopter.TurnSpeed / 3);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
int CalculateTurnRadius(int speed)
|
||||
{
|
||||
return (int)(141 * speed / planeInfo.ROT / (float)Math.PI);
|
||||
return (int)(141 * speed / planeInfo.TurnSpeed / (float)Math.PI);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
if (desiredFacing == facing.Facing)
|
||||
return NextActivity;
|
||||
facing.Facing = Util.TickFacing(facing.Facing, desiredFacing, facing.ROT);
|
||||
facing.Facing = Util.TickFacing(facing.Facing, desiredFacing, facing.TurnSpeed);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user