OK idea, but it would have to run a lot of distance checks and probably cause lag.
I'd recommend a thing that just shoots a crapload of high-damage, long-range projectiles, but it can't shoot lower than a 45 degree angle, which should eliminate anti-tank possibilities.
See attached drawing and think that the turret is the bottom right corner of the screen.