Just thought of a quick fix for turret rotation limit issues: Make it so that Bobby periodically makes a hitscan check against its current target. If the scan hits the mothership that Bobby is docked to, then Bobby immediately untargets that enemy and ignores that enemy during all further targeting decisions for 5secs.
It's not perfect, but it should stop the majority of cases where AI turrets are trying to aim at something outside their rotation limits (since the object blocking rotation will also be blocking LoS).
It's not perfect, but it should stop the majority of cases where AI turrets are trying to aim at something outside their rotation limits (since the object blocking rotation will also be blocking LoS).