You are viewing a potentially older version of this package. View all versions.
Sparroh-HotswapFix-1.0.0 icon

HotswapFix

Fixes the Hotswap upgrade on the Scout Laser Rifle so Laser remains the default mode after opening menus or entering missions.

Date uploaded 3 months ago
Version 1.0.0
Download link Sparroh-HotswapFix-1.0.0.zip
Downloads 85
Dependency string Sparroh-HotswapFix-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack_Mycopunk-5.4.2403 icon
BepInEx-BepInExPack_Mycopunk

BepInEx pack for Mycopunk. Preconfigured and ready to use.

Preferred version: 5.4.2403

README

HotswapFix

A BepInEx mod for Mycopunk that fixes the Hotswap upgrade on the Scout Laser Rifle (DMLR).

The Bug

With Hotswap equipped, the weapon correctly defaults to Laser mode — until you open a menu or enter a mission. At that point the game reapplies upgrades and the weapon flips back to DMR as the default, which is annoying in play.

The Fix

Hotswap (DMLRUpgradeFlags.SwapModes) forces Laser mode when upgrades are applied. On reapply, the game temporarily disables upgrades, remembers that Laser was active, then re-enables upgrades (setting Laser again) and toggles mode once more — ending on DMR.

This mod prevents that final toggle when Hotswap is equipped, so Laser stays the default after menus and mission entry.

Dependencies

  • Mycopunk (base game)
  • BepInEx - Version 5.4.2403 or compatible
  • .NET Framework 4.8
  • HarmonyLib (included via NuGet / BepInEx)

Building

dotnet build --configuration Release

Installing

Via Thunderstore (Recommended):

  1. Download and install via Thunderstore Mod Manager

Manual Installation:

  1. Place HotswapFix.dll in <Mycopunk Directory>/BepInEx/plugins/

Authors

  • Sparroh

License

This project is licensed under the MIT License - see the LICENSE file for details

CHANGELOG

Changelog

1.0.1

  • Refactor

1.0.0

Added

  • Initial release
  • Fixes the Hotswap upgrade on the Scout Laser Rifle so Laser remains the default mode after opening menus or entering missions