You are viewing a potentially older version of this package. View all versions.
ElectricSteve-Kill_Button-1.1.0 icon

Kill Button

Adds a button to kill yourself.

Date uploaded 6 months ago
Version 1.1.0
Download link ElectricSteve-Kill_Button-1.1.0.zip
Downloads 36295
Dependency string ElectricSteve-Kill_Button-1.1.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Hamunii-AutoHookGenPatcher-1.0.4 icon
Hamunii-AutoHookGenPatcher

Automatically generates MonoMod.RuntimeDetour.HookGen's MMHOOK files during the BepInEx preloader phase.

Preferred version: 1.0.4

README

Kill Button

Adds a button to kill yourself.

Settings

Under controls in the in-game settings there is a new keybind named Kill Key (default K)

Issues/Questions

If you found a bug or have an issue, report it on the GitHub: https://github.com/electricsteve/CWKillButtonMod/issues
If you have a question, shoot me a dm on Discord: @electricsteve (I'm in the modding & normal discord servers)

CHANGELOG

V1.1.0

2 Fixes

Template patch

I had generated the mod with a template, and it included a template hook that made the price of your shopping cart increase a by a random amount, but I didn't remove it. So now I removed it.

Not returning to surface

I don't know if this was actually a bug, but I think it was, so I fixed it. Basically if you killed yourself while underground you wouldn't be sent back to the surface.

Detailed explanation:
There is a method that checks if there are still players alive, and if not, it returns you to the surface. But this breaks if you die on the surface, so I hooked into it and cancelled the return to the surface if I just killed the player with the keybinding (Bc you respawn on the surface). Problem is, I didn't check if the player was on the surface when cancelling, so you would be soft locked underground if you killed yourself there.