Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
GokuKamehamehaSlotFix
Fixes Kamehameha not charging when placed in any skill slot other than Special on Kingpinush's Goku character mod.
| Last updated | 17 hours ago |
| Total downloads | 6 |
| Total rating | 0 |
| Categories | Mods Tweaks |
| Dependency string | FishPuppetTeam-GokuKamehamehaSlotFix-1.0.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
kinggrinyov-Goku
I am the warrior you've heard of in legends, pure of heart and awakened by fury. That's what I am. I AM THE SUPER SAIYAN, SON GOKU!
Preferred version: 2.12.3bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2100README
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 (skill1–skill4) 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
KamehamehaSkillclass 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]