log projectile dest as it is affected by inaccuracy calc
want to debug if this is the source of problems
This commit is contained in:
@@ -59,6 +59,7 @@ namespace OpenRA.Mods.RA.Effects
|
||||
{
|
||||
var factor = ((Args.dest - Args.src).Length / Game.CellSize) / (float)args.weapon.Range;
|
||||
Args.dest += (PVecInt) (info.Inaccuracy * factor * args.firedBy.World.SharedRandom.Gauss2D(2)).ToInt2();
|
||||
Log.Write("debug", "Bullet with Inaccuracy; factor: #{0}; Projectile dest: {1}", factor, Args.dest);
|
||||
}
|
||||
|
||||
if (Info.Image != null)
|
||||
|
||||
Reference in New Issue
Block a user