Disable idle scanning on RA planes.

This commit is contained in:
Paul Chote
2020-03-01 20:08:16 +00:00
committed by abcdefg30
parent 16e0ea611e
commit 4a6fefa434
2 changed files with 6 additions and 1 deletions

View File

@@ -40,6 +40,9 @@ namespace OpenRA.Mods.Common.Traits
[Desc("It will try to pivot to face the enemy if stance is not HoldFire.")]
public readonly bool AllowTurning = true;
[Desc("Scan for new targets when idle.")]
public readonly bool ScanOnIdle = true;
[Desc("Set to a value >1 to override weapons maximum range for this.")]
public readonly int ScanRadius = -1;
@@ -269,7 +272,7 @@ namespace OpenRA.Mods.Common.Traits
void INotifyIdle.TickIdle(Actor self)
{
if (IsTraitDisabled || Stance < UnitStance.Defend)
if (IsTraitDisabled || !Info.ScanOnIdle || Stance < UnitStance.Defend)
return;
var allowMove = allowMovement && Stance > UnitStance.Defend;

View File

@@ -120,6 +120,7 @@ MIG:
RepulsionSpeed: 40
MaximumPitch: 56
AutoTarget:
ScanOnIdle: false
InitialStance: HoldFire
InitialStanceAI: HoldFire
AmmoPool:
@@ -190,6 +191,7 @@ YAK:
RepulsionSpeed: 40
MaximumPitch: 56
AutoTarget:
ScanOnIdle: false
InitialStance: HoldFire
InitialStanceAI: HoldFire
AmmoPool: