Disable idle scanning on RA planes.
This commit is contained in:
@@ -40,6 +40,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[Desc("It will try to pivot to face the enemy if stance is not HoldFire.")]
|
[Desc("It will try to pivot to face the enemy if stance is not HoldFire.")]
|
||||||
public readonly bool AllowTurning = true;
|
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.")]
|
[Desc("Set to a value >1 to override weapons maximum range for this.")]
|
||||||
public readonly int ScanRadius = -1;
|
public readonly int ScanRadius = -1;
|
||||||
|
|
||||||
@@ -269,7 +272,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
void INotifyIdle.TickIdle(Actor self)
|
void INotifyIdle.TickIdle(Actor self)
|
||||||
{
|
{
|
||||||
if (IsTraitDisabled || Stance < UnitStance.Defend)
|
if (IsTraitDisabled || !Info.ScanOnIdle || Stance < UnitStance.Defend)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var allowMove = allowMovement && Stance > UnitStance.Defend;
|
var allowMove = allowMovement && Stance > UnitStance.Defend;
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ MIG:
|
|||||||
RepulsionSpeed: 40
|
RepulsionSpeed: 40
|
||||||
MaximumPitch: 56
|
MaximumPitch: 56
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
|
ScanOnIdle: false
|
||||||
InitialStance: HoldFire
|
InitialStance: HoldFire
|
||||||
InitialStanceAI: HoldFire
|
InitialStanceAI: HoldFire
|
||||||
AmmoPool:
|
AmmoPool:
|
||||||
@@ -190,6 +191,7 @@ YAK:
|
|||||||
RepulsionSpeed: 40
|
RepulsionSpeed: 40
|
||||||
MaximumPitch: 56
|
MaximumPitch: 56
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
|
ScanOnIdle: false
|
||||||
InitialStance: HoldFire
|
InitialStance: HoldFire
|
||||||
InitialStanceAI: HoldFire
|
InitialStanceAI: HoldFire
|
||||||
AmmoPool:
|
AmmoPool:
|
||||||
|
|||||||
Reference in New Issue
Block a user