Split fixed-wing attack and strafe attack types.

This commit is contained in:
Paul Chote
2020-01-02 16:17:10 +00:00
committed by reaperrr
parent 85bc843554
commit adb3c8e39c
5 changed files with 100 additions and 5 deletions

View File

@@ -17,13 +17,18 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
// TODO: Add CurleyShuffle (TD, TS), Circle (Generals Gunship-style)
public enum AirAttackType { Hover, Strafe }
public enum AirAttackType { Default, Hover, Strafe }
public class AttackAircraftInfo : AttackFollowInfo, Requires<AircraftInfo>
{
[Desc("Attack behavior. Currently supported types are Strafe (default) and Hover.")]
public readonly AirAttackType AttackType = AirAttackType.Strafe;
[Desc("Attack behavior. Currently supported types are:",
"Default: Attack while following the default movement rules.",
"Hover: Hover, even if the Aircraft can't hover while idle.",
"Strafe: Perform a fixed-length attack run on the target.")]
public readonly AirAttackType AttackType = AirAttackType.Default;
[Desc("Distance the strafing aircraft makes to a target before turning for another pass. When set to WDist.Zero this defaults to the maximum armament range.")]
public readonly WDist StrafeRunLength = WDist.Zero;
[Desc("Does this actor cancel its attack activity when it needs to resupply? Setting this to 'false' will make the actor resume attack after reloading.")]
public readonly bool AbortOnResupply = true;