Would it at all be possible to have a per-turret customization option that allows setting a min and max range, as well as what angles the turret is allowed to turn? I understand this may be complex technically (or not, I haven't got a clue about modding!), but it would be a very nice QoL feature to prevent the turret destroying your own walls/other turrets.
Happens often if biters get close enough to the wall, or, worse, breach a section of the wall which will be torn down in seconds by the friendly fire of your rocket turret :) I understand this probably also has to do with my poor placement but I feel sometimes it's just not possible to avoid it.