Split fixed-wing attack and strafe attack types.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user