162 ratings
No Friendly Fire
Mod, 1.0
File Size
0.425 MB
Dec 4, 2018 @ 6:43pm
Sep 6 @ 9:15am
8 Change Notes ( view )

Subscribe to download
No Friendly Fire

Removes friendly fire.

  • Safe to add to or remove from games in progress.
  • Works for colonists, turrets, visitors, enemies, modded weapons, but not explosions. Missing can still cause damage to buildings.
  • You can still target friendly pawns manually.
  • Optional: Protect animals but not pawns from friendly fire.
  • Optional: Protect buildings from friendly fire.
  • Optional: Shooting skill affects friendly fire chance. Customizable percent per skill level.
  • Optional: Remove friendly fire from the player only, and allies.
  • Optional: Stop stone and unmined resources from being damaged by being shot.

Know Incompatibles
  • Combat Extended. Use Avoid Friendly Fire instead.
  • Cybernetic Warfare and Special Weapons, Looks like it uses its own hit detection code and not the base games. I'm looking into a patch for it but no guarantees.

Technical Info
It works by patching the Projectile.CanHit method. First it checks that what's about to be hit is a Pawn, so you can still damage buildings and walls that belong to you when your pawns miss. Then it checks that what's about to be hit isn't the target you choose, so you can still kill your own colonists and animals if you want to. Finally it checks to see if the Pawn about to be hit is friendly and if it is, then stop it from happening.

Feel free to take this mod and do whatever you want with it.
< >
Mistletoe The Bard Nov 5 @ 7:11pm 
@Alex Thanks for the reply. It just came to my mind whether there is a mod like that all in a sudden.
Alex  [author] Nov 5 @ 9:36am 
You shouldn't, let me know if you do.
Mistletoe The Bard Nov 4 @ 8:18pm 
I never thought of this, but do you still get hit from your own turrets with this mod?
Alex  [author] Sep 13 @ 5:38am 
@Malarthyn No problem, I'm glad it works.
Malarthyn Sep 13 @ 3:13am 
@Alex Thanks a lot for the fix with the stone! You saved my play through. My turrets turned all mountains to dust and now only the zombies! :D
sylexis Sep 9 @ 9:42pm 
@Alex ah ok. Noted. Thanks for responding.
Alex  [author] Sep 9 @ 12:20am 
@sylexis Cybernetic Warfare looks to be incompatible. I'll see if I can patch it, but the code they wrote is a bit hard for me to read, so I can't promise anything.
sylexis Sep 8 @ 12:28pm 
@Alex I don't use CE. I got Sparkling World, Cybernetic Warfare, Turret Collection, and Project Itzal.
Alex  [author] Sep 8 @ 7:31am 
@sylexis Just checking but are you using Combat Extended? If not can you tell me what weapon mods you are using so I can check them out? (At least the ones that aren't working.)
sylexis Sep 7 @ 1:43pm 
Oh sorry i have it active but my pawns are still getting hit by other pawns. Is this mod just for vanilla weapons? Cus i have a lot of weapon mods.