BatterySquat
蹲起时为您拿在手中的物品充电-Charging the items you’re holding in your hands when you squat.Contact / 联系我
If you have any questions, feel free to contact me ↓ Email: [email protected] QQ: 670155978
如有任何问题,请与我联系 ↓ 邮箱:[email protected] QQ:670155978
BatterySquat
Charges the battery in your hands by squatting.
Features
- One charge per squat. Each time you get up from a crouch one charge is applied; holding crouch does not keep draining stamina.
- Cost and gain. 10 stamina per squat against a 100 pool, and one battery bar gained; both values are configurable.
- No false triggers. A full battery, empty hands, or an item without a battery does nothing and spends no stamina.
- Stamina rule. By default a squat without enough stamina does nothing; a switch lets it spend what is left and charge anyway.
- Multiplayer safe. On a client without a host running the mod nothing happens: no stamina spent and no request sent.
How to Use
- Install BepInEx 5.4.x.
- Put
BatterySquat.dllintoBepInEx/plugins/. - Hold a battery item and crouch once per charge.
Notes
- Client side mod.
- Stamina cost and charge amount are set in the config file.
- Host and clients should run the same settings in multiplayer.
BatterySquat(中文)
蹲一下就给手里的电池充一格电。
功能介绍
- 一次蹲一下:每次从蹲姿起身充一格,按住蹲不会一直掉体力。
- 代价与收益:每次扣 10 点体力(上限 100),涨 1 格电,两个数值都可调。
- 不该动的时候不动:电池已满、空手,或手里物件没有电池,一律不触发也不扣体力。
- 体力规则:体力不足时默认不充;打开对应开关后会抽干剩余体力照样充上。
- 联机安全:主机没装本模组时,客机完全惰性,不扣体力也不发送请求。
使用方法
- 安装 BepInEx 5.4.x。
- 把
BatterySquat.dll放进BepInEx/plugins/。 - 手持带电池的物件,蹲一次充一格。
P.S.
- 纯客户端模组。
- 体力消耗与充电量在配置文件里设置。
- 联机时主机与客机建议使用同一套参数。
配置文件 / Configuration
BepInEx/config/com.Aartyns.batterysquat.cfg,首次运行后生成。
| Section | Key | 默认值 | 说明 |
|---|---|---|---|
| General | Enabled |
true |
总开关 |
| General | Stamina Cost |
10 |
每次下蹲消耗的体力点数(原版体力上限 EnergyStart 为 100) |
| General | Bars Per Squat |
1 |
每次下蹲为手持物品补充的电池格数(1 格 = 100 / batteryBars,默认物品 6 格) |
| General | Require Enough Stamina |
true |
true = 体力不足时不触发(不充能也不扣体力);false = 有多少扣多少,照样充能 |
| Multiplayer | Allow Client Charge |
true |
true = 客机下蹲时请求主机加电;false = 只在主机或单人下蹲时生效 |
| Multiplayer | Require Host Installed |
true |
true = 主机也安装本模组时才生效;false = 客机无条件生效 |
| Multiplayer | Event Code |
140 |
本模组占用的网络事件编号,由此起连续占用 4 个(取值 1~196,需避开 REPO 自身的 123/124),联机双方需保持一致 |
| Advanced | Verbose Log |
false |
输出调试信息,排查触发或充能失败时打开 |
