Merge pull request #5834 from Squiggles211/heli-turn
Increase Chinook landing speed and removed turn before landing.
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user