Barotrauma

Barotrauma

165 ratings
No Friendly Fire SIG
2
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
9.695 KB
11 May @ 3:10am
5 Jul @ 12:58am
5 Change Notes ( view )

Subscribe to download
No Friendly Fire SIG

In 1 collection by HDC
HDC‘s沉浸式组合包(高难度)
102 items
Description
!!If you think this mod useful, please give it a like!!
Your support is the greatest motivation to move forward!


Ohohohoho I'm gonna SHOOT like CRAZY!!!!
No more worries about friendly fire! This mod makes bullets pass through teammates automatically! (Say goodbye to dumb 2D combat in Barotrauma)
Lua required — uses Harmony to make bullets ignore friendly collision.


Main Features
    []Avoid Friendly Fire: Bullets from players and AI will pass through teammates without causing damage or stopping.[]Compatible with AI Combat: Modifies AI attack logic so they don’t avoid shooting due to friendly presence.
  • No Impact on Normal Combat: Bullets still hit enemies and the environment — only teammates are ignored.


How to Use
  • Subscribe enable and restart the game for it to take effect.
  • This is a client-side mod. It was originally made for single-player to stop dumb AI teammates from causing friendly fire, but then I realized it could help in multiplayer too, where the usual team damage settings aren’t ideal — so I made this mod, www.
  • In multiplayer, all players must have this mod installed for it to sync properly. (Multiplayer synchronization is still being tested and may have bugs.)


Compatibility


Implementation Details
  • Overrides Projectile.ShouldIgnoreCharacterCollision to make bullets ignore teammates during collision checks.
  • Overrides AIObjectiveCombat.Attack to make AI shoot without considering friendly presence.


Bugs
  • Current bug: The syringe cannot hit teammates. To be fixed.
  • If you find any bugs, feel free to leave feedback and suggestions in the comments.
Fork
The following excellent mods by other modders are based on and extended from this mod
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3543916066 ------- Bullets can penetrate monster corpses
77 Comments
4sunnyh 3 hours ago 
可以加一个dummy物品来强制客户端启用
只在服务端启用应该会导致一些不同步的现象
HDC  [author] 29 Oct @ 4:43am 
@土豆烧牛肉:可以
土豆烧牛肉 29 Oct @ 3:32am 
单人模式能不能用啊,下海踩个矿,身上全是枪伤:dswilsonscared:
HDC  [author] 21 Oct @ 7:39pm 
@donald:是否按照mod说明正确配置并启用?
donald 19 Oct @ 2:29pm 
或者说现版本无法进行穿透无论mod还是原版枪械
donald 18 Oct @ 10:12pm 
使用EK枪械依然无法穿透队友ai
天启洪流apocalyptic 11 Oct @ 6:06am 
还得关掉友军伤害才不会打中队友吧
Scoober 10 Oct @ 12:56am 
@Diemoe
I've tried alot of things, but the most i've been able to get down is to make the shield somehow not harm my teammates when shoved. See, the tag of Ballisticshield just doesn't seem to want to work with me. It's placed exactly as spelled in items.

Yet, all i managed to do was to make it not stun teammates..
Diemoe  [author] 9 Oct @ 8:14pm 
@Scoober You can view the source code yourself. The code that controls whether to penetrate is in the Patch_ShouldIgnoreCharacterCollision class in the Bmsmod.cs file. If __result=true when hitting something, it will penetrate.
Scoober 9 Oct @ 3:57pm 
Question, is it possible to make a patch so that teammate's shields are also skipped?
If you can't make it, can you give a pointer or two on how i could develop it?
thanks in advance.