I know it's not really an answer to the problem, but I feel like it might help advance the discussion of how viable something like this would be and how the UI for it might work to point out that someone's making
a mod for this. Excerpt from the mod description: "Ever got into an argument with your gunnery officer, because they insisted that they could hit a Broadsword with a Hellbore Cannon?"
Also, I think that (in addition to the missed opportunities arising from shooting at fighters when there are more important targets
right there) I personally have lost more ships to this sort of behavior than to enemy fighters. I know I won't forget the first time I saw a Paragon unload a plasma cannon directly into the unshielded aft of a friendly Wolf to "help" with the fighters attacking it. This sort of thing is also how I learned that there's a reputation penalty for friendly fire incidents.