Prevent turrets from firing until they are aligned with the target.
This commit is contained in:
@@ -186,6 +186,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (ammoPool != null && !ammoPool.HasAmmo())
|
||||
return null;
|
||||
|
||||
if (turret != null && !turret.HasAchievedDesiredFacing)
|
||||
return null;
|
||||
|
||||
if (!target.IsInRange(self.CenterPosition, MaxRange()))
|
||||
return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user