Barotrauma 潜渊症

Barotrauma 潜渊症

166 个评价
友军子弹可穿透队友
2
4
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
9.695 KB
5 月 11 日 上午 3:10
7 月 5 日 上午 12:58
5 项改动说明 ( 查看 )

订阅以下载
友军子弹可穿透队友

在 HDC 的 1 个合集中
HDC‘s沉浸式组合包(高难度)
102 件物品
描述
!!如果觉得有用,请点个赞!!
您的支持就是前进的最大动力


哦吼吼吼吼我要射爆!!!
无需再担心误伤队友!这个模组让子弹自动穿透友军!(告别智障渊深2D战斗)
需要安装lua,使用Harmony实现子弹无视友军碰撞。


主要功能
  • 避免友军误伤: 玩家或AI的子弹将直接穿过队友,不再造成伤害或停止。
  • 兼容AI战斗: 修改AI攻击逻辑,不再因友军存在而回避开火。
  • 不影响正常战斗体验: 子弹仍会命中敌人和环境,只对队友进行穿透。


使用方式
  • 订阅并启用后重启游戏即可生效。
  • 最开始的想法来源于单人游戏,想要禁止智障ai友军伤害,但是后来想到联机的禁止友军伤害也不是很满意,所以做了这个Mod wwww
  • 多人模式中,所有玩家都需安装此Mod以保证同步。(但多人游戏同步性待测,可能有bug)


兼容性


实现原理
  • 通过修改 Projectile.ShouldIgnoreCharacterCollision 方法,实现子弹检测时自动无视友军。
  • 通过修改 AIObjectiveCombat.Attack 方法,让AI无视队友存在开火。


Bug
  • 当前bug:注射器无法命中队友。有待修复。
  • 如果有bug,欢迎在评论区提供反馈和建议。
Fork
以下其他modder是以本mod为基础,扩展延伸的优质mod
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3543916066 -------子弹可穿透怪物尸体
79 条留言
HDC  [作者] 10 小时以前 
@4sunnyh,@Hugo the Dwarf :感谢!,我会试着尝试一下的:Tokyoheart:
Hugo the Dwarf 12 小时以前 
For allowing Syringe guns to sill give allies meds, but not poisons add this to the end of the FF sections IF

&& !__instance.item.tags.Contains("medical")

if (!character.IsDead && __instance.User.TeamID == character.TeamID && !__instance.item.tags.Contains("medical"))
4sunnyh 10 月 30 日 下午 6:45 
可以加一个dummy物品来强制客户端启用
只在服务端启用应该会导致一些不同步的现象
HDC  [作者] 10 月 29 日 上午 4:43 
@土豆烧牛肉:可以
土豆烧牛肉 10 月 29 日 上午 3:32 
单人模式能不能用啊,下海踩个矿,身上全是枪伤:dswilsonscared:
HDC  [作者] 10 月 21 日 下午 7:39 
@donald:是否按照mod说明正确配置并启用?
donald 10 月 19 日 下午 2:29 
或者说现版本无法进行穿透无论mod还是原版枪械
donald 10 月 18 日 下午 10:12 
使用EK枪械依然无法穿透队友ai
天启洪流apocalyptic 10 月 11 日 上午 6:06 
还得关掉友军伤害才不会打中队友吧
Scoober 10 月 10 日 上午 12:56 
@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..