I suggest introducing a configurable ship system which prevents weapons fire on allies. It's entirely credible that such a system would exist in a high-tech environment. The system could kick in when a kamikaze police fighter ducks in front of the sights during a dog fight, for example, preventing needles fines. For pilots who would consider it to be too much hand holding, the system could be turned off in the ship preferences.
Various extensions of such a system could prevent fire on un-targeted neutrals/ enemies, too, if desired.
Various extensions of such a system could prevent fire on un-targeted neutrals/ enemies, too, if desired.