backendiain-KeyboardInventory icon

KeyboardInventory

Tweaks keybinds so that the number keys will change the current item held by the player

Last updated 11 months ago
Total downloads 8224
Total rating 0 
Categories Mods BepInEx Client-side
Dependency string backendiain-KeyboardInventory-0.0.1
Dependants 7 other packages depend on this package

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

README

Lethal Company KeyboardInventory

A simple mod that rebinds the top number keys 1-4 to change the currently held item to one of the inventory slots (1-4).

The emotes are currently bound to - and =.

Hiting * on your numpad will bring up a mod menu to enable/disable the mod (todo).

Overview

I really only made this as a quick way to tinker in LC and Unity. There are no doubt better ways to do even what little I've done here.

If you find it useful then great.

To-Do

  • Figure out a way to disable the mod by toggle, as the GUI toggle control doesn't seem to update base mod class enabled prop val
  • Add a key bindings menu for the mod where you can reset the key bindings to whatever works for you.

Acknowledgements

I just flat out missed some of the private methods in dotPeek of PlayerControllerB I could call to achieve the item switches.

The ItemQuickSwitchMod by vasanex enlightened me on how best to achieve this so special thanks to him.

The LethalCompanyGameMaster repo lawrencea13 was also beneficial.

Check out the Lethal Company topic and wiki for more examples.