How pitr-dev/ukbutt-mod works
UKButt is a BepInEx ULTRAKILL mod that translates game events and style rank into haptic commands for devices managed by an Intiface/Buttplug server. The main path is plugin startup and Harmony event capture, through input-mode and vibration logic, to the client’s connected devices; players can configure preferences or invoke console and cheat controls. The README also documents varied, continuous-rank, and controller-rumble passthrough modes. The available excerpts show the manager’s internal responsibilities, but do not expose all device-loop and preference reads, so those links are limited to documented or indexed evidence.
Main entry points: ButtplugManager.cs Haptic manager · HarmonyPatches.cs Gameplay event patches · UKButt.cs Console command · UKButtCycleMode.cs Mode cycling cheat
Components 12
Game integration
- Gameplay event patches
HarmonyPatches.cs - Rank tracking
HarmonyPatches.cs
Haptic runtime
- Haptic manager
ButtplugManager.cs - Connected devices
ButtplugManager.cs - Plugin identity
PluginInfo.cs
Player controls
- Preference keys
UKButtProperties.cs - Console command
ULTRAKILL/UKButt.cs - Mode cycling cheat
ULTRAKILL/UKButtCycleMode.cs - Emergency stop cheat
ULTRAKILL/UKButtStopCheat.cs
Other components
- Player
- ULTRAKILL
- Intiface server
Connections 18
- Haptic manager → Gameplay event patches: installs patches
ButtplugManager.cs - Gameplay event patches → Haptic manager: forwards events
HarmonyPatches.cs - Gameplay event patches → Rank tracking: updates rank
HarmonyPatches.cs - Haptic manager → Rank tracking: reads rank
HarmonyPatches.cs - Haptic manager → Intiface server: connects and scans
ButtplugManager.cs - Haptic manager → Connected devices: sends haptics
ButtplugManager.cs - Intiface server → Connected devices: reports devices
ButtplugManager.cs - Player → Console command: configures mod
README.md - Console command → Haptic manager: restarts client
ULTRAKILL/UKButt.cs - Haptic manager → Console command: registers command
ButtplugManager.cs - Player → Mode cycling cheat: cycles mode
README.md - Mode cycling cheat → Preference keys: sets mode
ULTRAKILL/UKButtCycleMode.cs - Player → Emergency stop cheat: toggles stop
- Emergency stop cheat → Haptic manager: sets emergency stop
ULTRAKILL/UKButtStopCheat.cs - Haptic manager → Preference keys: reads settings
ButtplugManager.cs - Plugin identity → Haptic manager: identifies plugin
ButtplugManager.cs - ULTRAKILL → Gameplay event patches: emits patched events
HarmonyPatches.cs - ULTRAKILL → Haptic manager: provides rumble input