Risk of Rain 2
This package has been deprecated and may no longer be maintained. We recommend looking for an alternative.
Install

Details

Last Updated
First Uploaded
Downloads
4
Likes
0
Size
7.6KB
Dependency string
FishPuppetTeam-GokuKamehamehaSlotFix-1.0.1
Dependants

Categories

Deprecated

Goku Kamehameha Slot Fix

A small Harmony patch mod for GokuMod (by Kingpinush) that fixes a bug where Kamehameha will not charge/fire unless it's placed in the Special skill slot.

The bug

NS_Goku.KamehamehaSkill.ChildCanFireBeam() in the compiled GokuMod DLL is hardcoded to check InputBankTest.skill4 — the Special slot's input button — regardless of which slot the skill is actually assigned to. If you move Kamehameha into Secondary (or any other slot) via a loadout override, holding that slot's button does nothing, because the game is still only listening for the Special button.

The fix

This mod patches ChildCanFireBeam() at runtime with Harmony so it checks BaseSkillState.activatorSkillSlot — the slot that actually triggered the skill — and reads the matching input button (skill1skill4) instead of always reading skill4.

No files inside GokuMod itself are modified. This is a separate, additive mod.

Requirements

  • BepInEx 5.4.21+
  • GokuMod by Kingpinush (this patches its KamehamehaSkill class directly, so it must be installed)

Installation

Drop GokuKamehamehaSlotFix.dll into your BepInEx/plugins/ folder, alongside GokuMod and KingModUtilities. Load order relative to those two doesn't matter — Harmony patches apply once GokuMod's assembly is loaded, and the BepInDependency on GokuMod's GUID makes sure this plugin initializes after it.

Important: everyone in the lobby needs this

ChildCanFireBeam() runs client-side for input/prediction as well as server-side, so every player who might play Goku with Kamehameha outside the Special slot needs this mod installed, not just the host.

Building from source

See the included .csproj. You'll need to point RoR2Path at your local Risk of Rain 2 install (either edit the default in the .csproj, or create a GokuKamehamehaSlotFix.csproj.user file — see the comment block at the top of the .csproj for the exact snippet). BepInEx and Harmony are pulled in via NuGet automatically on build; only the RoR2 game assemblies need a local path, since those can't be redistributed.

dotnet build -c Release

Credits

  • Original GokuMod & KingModUtilities: Kingpinush
  • This patch: [your name here]
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.