KeyboardInventory
Tweaks keybinds so that the number keys will change the current item held by the player
About this mod Author’s original text
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.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: