Fixes #5054 by removing chinook's turn before landing and increasing ascend/descend speed

Allows for any helicopter to enable or disable the turn before landing
but sets it to default off for the chinook.  (may be desireable for
single player missions visual effect like Allies01?)  Also gives the
chinook a faster ascend/descend speed.  Fixes #5054
This commit is contained in:
Squiggles211
2014-07-06 00:52:43 -05:00
parent ee2dc60eb3
commit ebc6515d73
3 changed files with 15 additions and 2 deletions

View File

@@ -19,8 +19,15 @@ namespace OpenRA.Mods.RA.Air
class HelicopterInfo : AircraftInfo, IMoveInfo
{
public readonly WRange IdealSeparation = new WRange(1706);
[Desc("Allow the helicopter land after it has no more commands.")]
public readonly bool LandWhenIdle = true;
[Desc("Allow the helicopter turn before landing.")]
public readonly bool TurnToLand = false;
public readonly WRange LandAltitude = WRange.Zero;
[Desc("How fast the helicopter ascends or descends.")]
public readonly WRange AltitudeVelocity = new WRange(43);
public override object Create(ActorInitializer init) { return new Helicopter(init, this); }
@@ -59,7 +66,9 @@ namespace OpenRA.Mods.RA.Air
if (Info.LandWhenIdle)
{
if (Info.TurnToLand)
self.QueueActivity(new Turn(Info.InitialFacing));
self.QueueActivity(new HeliLand(true));
}
}
@@ -103,7 +112,9 @@ namespace OpenRA.Mods.RA.Air
if (Info.LandWhenIdle)
{
if (Info.TurnToLand)
self.QueueActivity(new Turn(Info.InitialFacing));
self.QueueActivity(new HeliLand(true));
}
}

View File

@@ -17,6 +17,7 @@ TRAN:
Speed: 140
InitialFacing: 0
LandableTerrainTypes: Clear,Rough,Road,Ore,Beach,Tiberium,BlueTiberium
AltitudeVelocity: 0c100
Health:
HP: 90
Armor:

View File

@@ -206,6 +206,7 @@ TRAN:
ROT: 5
Speed: 112
LandableTerrainTypes: Clear,Rough,Road,Ore,Beach
AltitudeVelocity: 0c100
RenderUnit:
WithRotor@PRIMARY:
Offset: -597,0,341