Yeah the only problem I have with doing this is what if a scout rushes you and doesn't stop moving when he's close to you, the bot wouldn't fire a single shot even though the guy is a direct threat.
You can make it to shoot at moving target only if the target is closer than 100 meters or so, actually the same is with the tanks they can not hit a moving target at more than 100-200 meters depends on the speed of course but you can put there some limitation too