DedicatedWeaponKeys
Makes Weapon 1 and Weapon 2 keybinds dedicated instead of cycling between weapons.
模組介紹 作者原文
Dedicated Weapon Keys
A small quality-of-life BepInEx mod for Mycopunk that makes the Weapon 1 and Weapon 2 keybinds dedicated instead of
cycling.
Features
- Dedicated Weapon 1 — Always equips weapon slot 1 (no cycle).
- Dedicated Weapon 2 — Always equips weapon slot 2 (no cycle).
- Pressing the key for the already-equipped weapon does nothing (no accidental swap).
- Scroll-wheel weapon switching is left unchanged.
- Config toggle — Disable dedicated keys and restore vanilla cycling via BepInEx config.
Configuration
Edit BepInEx/config/sparroh.dedicatedweaponkeys.cfg (created on first launch):
| Setting | Default | Description |
|-------------------|---------|-------------------------------------------------------------------|
| General.Enabled | true | When enabled, Weapon 1/2 keys equip that slot instead of cycling. |
The config file is watched and reloads automatically after you save changes.
Dependencies
- Mycopunk (base game)
- BepInEx Pack for Mycopunk 5.4.2403 or compatible
Installation (recommended)
- Install with a mod manager (e.g. r2modman or the App).
- The mod is placed in the correct directory automatically.
Manual installation
- Install BepInEx for Mycopunk if you have not already.
- Copy DedicatedWeaponKeys.dll into /BepInEx/plugins.
The mod loads automatically with BepInEx. Check the BepInEx log for a load confirmation message.
Building
- Clone this repository.
- Open the solution in Visual Studio, Rider, or another C# IDE, or build from the command line:
dotnet build --configuration Release
- The output assembly is bin/Release/netstandard2.1/DedicatedWeaponKeys.dll.
Build requirements:.NET SDK (targeting netstandard2.1), game assemblies referenced by the project, and
BepInEx/Harmony references.
Help
- Mod not loading? Confirm BepInEx is installed correctly and check the BepInEx log for errors.
- Keys still cycle? Ensure this mod is enabled and no other mod is also patching weapon slot keys.
Authors
- Sparroh
License
This project is licensed under the MIT License — see the LICENSE file for details.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: