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.
BatterySquat
蹲起时为您拿在手中的物品充电-Charging the items you’re holding in your hands when you squat.
By Aartyns
| Last updated | 6 hours ago |
| Total downloads | 137 |
| Total rating | 0 |
| Categories | Tools Misc Items Weapons Client-side AI Generated Quality Of Life |
| Dependency string | Aartyns-BatterySquat-1.1.1 |
| 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
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 |
209 |
本模组占用的网络事件编号,由此起连续占用 4 个,联机双方需保持一致 |
| Advanced | Verbose Log |
false |
输出调试信息,排查触发或充能失败时打开 |