RimWorld

RimWorld

141 ratings
Dont Hit Allies
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
776.335 KB
3 May, 2023 @ 9:18am
3 Jul @ 4:18am
6 Change Notes ( view )

Subscribe to download
Dont Hit Allies

Description
No more misfires, including between turrets and colonists, between colonists and colonists, and between turrets and buildings. No more problems with your own cannon destroying your own turrets or colonists' heads.

You can choose in the mod settings whether this feature works on enemies as well.



Update:

2023/5/10: Refining the settings, you can choose to temporarily turn off friendly wound protection when pawn is a slave or mentally unbalanced.



Q: Does it work on any unit?
A: Yes. It doesn't matter if it's an animal, a building or a pawn, as long as they have the same faction, there will never be a misfire again.

Q: Is it valid for any damage type?
A: No. To be precise, this mod adds patches to the class damageWorker_AddInjury, so only damage types that use this class will be affected by this mod, such as traditional bullet wounds, explosion wounds, and melee wounds. Some mods may have custom damageWorker in them, and their damage will skip this determination causing the mod to fail.

Q: Is it compatible with CE?
A: Haven't tried it, need more feedback.



Please give me feedback in the comments section if you have questions.

36 Comments
OganessonG 8 Jul @ 9:54pm 
能否让武器的 additional damage 也没有友伤?谢谢
洪世友-害兽退治者 3 Jul @ 10:38am 
能否增加取消爆炸友伤的选项?向队友扔手雷只炸伤敌人有点良心不安
Femol 3 Jul @ 7:06am 
@Feng Xinzi 感谢大佬速度
Feng Xinzi  [author] 3 Jul @ 4:19am 
@只会白给 修了。
Feng Xinzi  [author] 3 Jul @ 4:18am 
@Femol Fixed.
Femol 1 Jul @ 3:00am 
1.5的求救信号任务进图直接消失的bug。rimpy二分法试了一小时,确定和这个mod有关,只加harmony和这个mod的新档也会bug。
只会白给 22 Jun @ 1:28am 
倒地的小人 有火在身上会爆红字 大佬救救Exception ticking Fire404212 (at (56, 0, 107)): System.NullReferenceException: Object reference not set to an instance of an object
[Ref 9074DB3D]
at DamagePatch.Damage_Patch.Prefix (Verse.DamageInfo dinfo, Verse.Thing thing, Verse.DamageWorker+DamageResult& __result) [0x00118] in <267244a5f30648b2b7c2ff00ebc665e8>:0
at Verse.DamageWorker_AddInjury.Apply (Verse.DamageInfo dinfo, Verse.Thing thing) [0x00035] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- PREFIX SZ.Mech: Boolean DamageWorker_Bomb_Patch:Prefix(DamageWorker_AddInjury
只会白给 22 Jun @ 1:26am 
火焰伤害有bug
the rage doesn't stop like that, they hit each other for a long time :P it would be easier if one of them fell over so that the rage would subside
东方彩虹🌈 3 Jun @ 2:27am 
奴隶不i掉血,是你的BUG吗