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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
if (Info.TurnToLand)
|
||||||
self.QueueActivity(new Turn(Info.InitialFacing));
|
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)
|
||||||
{
|
{
|
||||||
|
if (Info.TurnToLand)
|
||||||
self.QueueActivity(new Turn(Info.InitialFacing));
|
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