Fix armaments/projectiles to aim at closest Target.Positions
Instead of CenterPosition. TargetablePositions were already used for targeting/attack decisions, but not armaments/projectiles.
This commit is contained in:
committed by
Oliver Brakmann
parent
73577e3a7e
commit
7acc6dacbc
@@ -229,7 +229,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
Source = muzzlePosition(),
|
||||
CurrentSource = muzzlePosition,
|
||||
SourceActor = self,
|
||||
PassiveTarget = target.CenterPosition,
|
||||
PassiveTarget = target.Positions.PositionClosestTo(muzzlePosition()),
|
||||
GuidedTarget = target
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user