CE_FFTweak

If you liked this item, please rate it up on Steam Workshop page.

Author: basics :)

Last revision: 27 Dec, 2023 at 13:03 UTC

File size: 3.16 MB

On Steam Workshop

Description:

https://github.com/basicsmods/CE_FFTweak

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.

Ideally, the shooter would notice the leaning pawn in their way and not even try to take the shot. I’m not quite sure how you’d accomplish that in the code so as an easier "fix", I made it so that the pawn is still allowed to shoot, but friendly-fire is guaranteed to not occur.

The specific scenario that becomes guaranteed to not result in friendly-fire is when both the shooter and the friend have the same X or Y coordinates. Under normal (non-leaning) circumstances, CE’s default behaviour should stop your pawn from even trying to shoot. So I think the only time that this mod will have any affect is when the pawns are leaning and shooting passed each other.

This does affect the balance of CE since it allows you to safely use some defensive designs that would normally result in friendly-fire.