It wasn't that wacky! It was just trigonometry to find perpendicular angles and the direction the bullet is going to miss on, plus a weighting function to move more in response to close bullets. (okay, the weighting function was a little wacky, but that's only because it could be anything as long as it was an inverse function.)