[url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2Fbasicsmods%2FCE_FFTweak]https://github.com/basicsmods/CE_FFTweak[/url]
Combat Extended changes the way friendly-fire works. Part of the way they handle it is that if a friendly pawn is in the way of your target, you don't even try to shoot. However, they fail to take leaning pawns into account and this can result in frustrating brain injuries.
This mod makes it so that pawns notice friends who are leaning into their line of fire. When they notice this, they choose not to shoot (since there is a high likelihood of friendly-fire). Pawns will still shoot around their leaning friends if it's safe to do so.