added auto distance

used stuff from wheeled shooter even tho its untested