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
Via Thunderstore (recommended)
- Install with a Thunderstore mod manager (e.g. r2modman or the Thunderstore App).
- The mod is placed in the correct directory automatically.
Manual installation
- Install BepInEx for Mycopunk if you have not already.
- Copy
DedicatedWeaponKeys.dllinto<Mycopunk Directory>/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.
