# QuickMagFill **Repository Path**: miosas/QuickMagFill ## Basic Information - **Project Name**: QuickMagFill - **Description**: 按快捷键自动压满背包里没满的弹夹的 ZED ZONE 模组(面板跟随游戏语言)/ ZED ZONE mod: fill unfilled magazines with the vanilla reload action (UI follows game language). - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-11-16 - **Last Updated**: 2026-11-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 快速压弹 / Quick Magazine Fill ZED ZONE 的 BepInEx 代码模组:按快捷键弹出面板,按子弹口径列出背包里没满的弹夹,选择后走游戏原版压弹动作依次压满。 A BepInEx code mod for ZED ZONE: press the hotkey to list unfilled magazines by ammo caliber, then fill them with the game's own reload action. - 游戏 / Game:ZED ZONE(Steam AppID 1211600) - 版本 / Version:1.0.1 - 前置 / Requirement:[ZED ZONE 代码模组加载器](https://steamcommunity.com/sharedfiles/filedetails/?id=3834614258)(BepInEx 6 IL2CPP + Harmony) - 许可证 / License:MIT ## 功能 / Features - 默认按 `P` 打开「选择要压的子弹」面板,再按 `P` 关闭;面板语言跟随游戏语言(简体中文 / English)。 Press `P` (configurable) to open the ammo panel, press it again to close. The panel language follows the game language (Simplified Chinese / English). - 面板按子弹口径分组,**固定按口径从小到大排序**,每行带弹药图标,并显示该口径的弹夹数量与可用子弹数。 Ammo is grouped by caliber and **always sorted from small to large**; each row shows the ammo icon, magazine count and available round count. - 弹夹与子弹默认都会递归遍历套包、弹药盒等嵌套容器,支持「穿透」识别;弹夹的穿透识别可用 `DeepMagazineScan` 关闭。 Magazines and ammo are collected recursively through nested containers such as bags and ammo boxes; magazine scanning can be disabled with `DeepMagazineScan`. - 点击某项后,逐个调用游戏原版 `CharacterActionManager.ReloadMagazineAction` 压弹;当前来源子弹不足时自动换下一个含该口径子弹的容器继续。 Clicking an entry reloads each magazine through the vanilla `CharacterActionManager.ReloadMagazineAction`; when one ammo source runs out it continues with the next container holding that caliber. - 压弹过程中按 `F`(可配置)可立即终止整批。 Press `F` (configurable) during a batch to abort it immediately. - 压弹期间若玩家正在做其他动作、或动作被取消,会停止整批。 The batch stops if the player starts another action or the reload action is cancelled. ## 构建 / Build 需要 .NET SDK 6.0 或更高,以及已安装前置(用于提供 BepInEx / interop 程序集)。 Requires .NET SDK 6.0 or newer, plus the loader installed (it provides the BepInEx / interop assemblies). 1. 修改 [Directory.Build.props](Directory.Build.props) 里的 `GameRoot`,指向本机游戏目录(该目录下需存在 `BepInEx\core\` 与 `BepInEx\interop\`)。 Point `GameRoot` in [Directory.Build.props](Directory.Build.props) to your game folder (it must contain `BepInEx\core\` and `BepInEx\interop\`). 2. 编译 / Build: ```powershell dotnet build QuickMagFill.csproj -c Release ``` 产物为 `bin\QuickMagFill.dll`。The output is `bin\QuickMagFill.dll`. ## 安装 / Install 手动安装:把 `QuickMagFill.dll` 与 `mod.json` 放到 `Mods\QuickMagFill\`(游戏目录下)即可被加载器识别。 Manual install: put `QuickMagFill.dll` and `mod.json` into `Mods\QuickMagFill\` under the game folder. ## 配置 / Config 首次运行后生成 `BepInEx\config\zedzone.quickmagfill.cfg`: ```ini [General] Hotkey = P CancelHotkey = F DeepMagazineScan = true ``` `Hotkey` 可改成任意 `KeyCode` 名称(如 `F7`、`K`),填 `None` 可禁用。 `Hotkey` accepts any `KeyCode` name (for example `F7`, `K`); set `None` to disable. `CancelHotkey` 用于在压弹过程中立即终止整批,默认 `F`,填 `None` 可禁用。 `CancelHotkey` aborts the reloading batch at any time; default `F`, set `None` to disable. `DeepMagazineScan` 控制是否穿透识别弹夹:`true` 会进入背包、弹药盒等嵌套容器找没满的弹夹,`false` 只识别随身物品栏里直接放着的弹夹;子弹的穿透识别不受此项影响。 `DeepMagazineScan` controls nested-container magazine scanning; ammo scanning is unaffected. ## 已知限制 / Known Limitations - 压弹使用游戏原版动作,单个弹夹需要等待原版装填时间。 Reloading uses the vanilla action, so each magazine takes the vanilla reload time. - 口径排序从弹药显示名中的数字解析(如 `5.56`、`7.62`、`.45`、`12`),名字里没有数字的会排在最后。 Caliber order is parsed from the number in the displayed ammo name (`5.56`, `7.62`, `.45`, `12`); names without a number sort last. ## 许可证 / License [MIT](LICENSE)