Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
GojoInfinity
Gojo's Infinity: enemies within 2 m are frozen and cannot damage you. Press 4 to release or re-expand it. Client-side.
| Last updated | 10 minutes ago |
| Total downloads | 0 |
| Total rating | 0 |
| Categories | Misc BepInEx Client-side AI Generated |
| Dependency string | KSKBL_to_defy_a_superior-GojoInfinity-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Gojo Infinity / 五条悟·无下限
怪物靠近到 2 米内就会被无下限屏障冻结,无法移动、无法伤害你。按 4 收起无下限,再按一次重新展开。
A client-side Lethal Company mod that gives the local player Gojo's Infinity barrier. Enemies inside the radius are frozen and their damage is blocked. Press 4 to release the barrier; press it again to expand it.
中文说明
功能
- 默认开启无下限。
- 任何
EnemyAI怪物进入玩家 2 米范围后:- 停止移动、转向和 AI 行为;
- NavMeshAgent、Rigidbody、Animator 一并冻结;
- 无法通过碰撞、抓取或攻击对你造成伤害。
- 按 4 收起无下限;再按一次重新展开。
- 小键盘 4 默认也可以切换(避免和物品栏冲突)。
- 纯客户端模组:只影响你这一端,主机不需要安装。
安装
- 安装 BepInEx 5.4.21+(Lethal Company 常用整合包
BepInEx-BepInExPack-5.4.2100)。 - 把压缩包内的
BepInEx文件夹解压到游戏根目录(Lethal Company.exe所在目录)。 - 确认文件存在:
Lethal Company/BepInEx/plugins/GojoInfinity/GojoInfinity.dll - 启动游戏。首次启动后会生成配置文件:
Lethal Company/BepInEx/config/com.gojoinfinity.client.cfg
使用 r2modman / Thunderstore Mod Manager 时,可以直接导入本 zip。
使用
进游戏后无下限默认展开。怪物靠近到 2 米内会被定住;按 4 可以收起,再按 4 重新展开。
按键冲突提示:在原版游戏中
4也是物品栏第 4 格。按4切换无下限时,物品栏也会切到第 4 格。若不想切换物品栏,可以按小键盘 4,或者在配置里把ToggleKey改成F5等按键。
配置
配置文件:BepInEx/config/com.gojoinfinity.client.cfg
| 配置项 | 默认值 | 说明 |
|---|---|---|
General / Enabled |
true |
模组总开关 |
General / StartActive |
true |
进游戏时是否自动展开无下限 |
General / ToggleKey |
Digit4 |
切换按键(Input System 键名);默认 4,Numpad4 为小键盘 4 |
Barrier / Radius |
2 |
无下限半径(米),0.5–10 |
Barrier / FreezeEnemies |
true |
是否冻结进入范围的怪物 |
Barrier / BlockDamage |
true |
范围内有怪物时是否免疫伤害 |
Effects / ShowHudMessage |
true |
切换时是否显示 HUD 提示 |
Advanced / DebugLogging |
false |
输出冻结/解冻调试日志 |
注意
- 这是作弊模组,建议只在单人、自己开房或朋友同意的房间里使用;公开房间可能被踢。
- 纯客户端冻结只作用于你的画面。主机没装本模组时,其他玩家看到的怪物仍然会移动;你本地的伤害会被挡下,但其他玩家视角可能不同步。想要全房间同步冻结,需要主机也安装。
- 屏障只冻结怪物,不杀害它们;被冻住的怪物仍然可以被武器击中。
- 当范围内有怪物时,
BlockDamage会挡下所有伤害(包括摔落、炮塔等),这是“无下限”的实现方式;如果只想挡怪物伤害,可以关闭BlockDamage,只保留FreezeEnemies。 - 模组针对 Lethal Company v81(GameLibs
81.0.5)编译;游戏大版本更新后可能需要重新编译。
从源码构建
需要 .NET SDK 8 和 PowerShell:
./fetch-libs.ps1 # 下载 BepInEx / GameLibs / Unity 引用程序集到 lib/
./build.ps1 # 编译并打包到 dist/GojoInfinity-1.0.0.zip
如果 PowerShell 提示“禁止运行脚本”,改用:
powershell -NoProfile -ExecutionPolicy Bypass -File .\build.ps1
lib/ 中的游戏程序集仅用于编译,不要随源码或模组分发。
工作原理(给开发者)
- 每帧遍历
RoundManager.Instance.SpawnedEnemies,用碰撞体最近点计算怪物与玩家(胸口位置)的距离。 - 进入 2 米的怪物记录位置/旋转,停止 NavMeshAgent、Rigidbody、Animator,并把
EnemyAI.enabled设为false,之后每帧锁定 Transform。 - Harmony Prefix 拦截
PlayerControllerB.DamagePlayer、KillPlayer、DamagePlayerClientRpc、KillPlayerClientRpc;范围内有怪物时直接跳过原方法。 - 拦截
EnemyAICollisionDetect.OnTriggerStay,被冻结或进入范围的怪物不再处理碰撞/抓取。 - 按 4 时切换状态;离开范围的怪物会恢复 AI 和动画。
English
Features
- Infinity is active by default.
- Any
EnemyAImonster within 2 metres of the local player is frozen and cannot damage the player. - Press 4 to release Infinity; press it again to expand it. Numpad 4 also works by default.
- Client-side only: the host does not need the mod.
Install
- Install BepInEx 5.4.21+ (
BepInEx-BepInExPack-5.4.2100for Lethal Company). - Extract the
BepInExfolder into the game root. - Verify
Lethal Company/BepInEx/plugins/GojoInfinity/GojoInfinity.dll. - Config:
BepInEx/config/com.gojoinfinity.client.cfg.
Note
4 is also the fourth hotbar slot in vanilla. Pressing it toggles Infinity and switches the hotbar slot. Use Numpad 4 or change ToggleKey in the config if that bothers you.
This is a cheat mod. Use it only in private lobbies or with your friends' consent. Freezing is local to your client; if the host does not have the mod, other players will still see the monsters moving. Built for Lethal Company v81.