Merge pull request #5834 from Squiggles211/heli-turn

Increase Chinook landing speed and removed turn before landing.
This commit is contained in:
Matthias Mailänder
2014-07-06 08:19:44 +02:00
3 changed files with 15 additions and 2 deletions

View File

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

View File

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

View File

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