YetAnotherLethalLibrary

v0.0.1·Updated 2024-02-15

Another library for Lethal Company for my own personal selfish use.

Screenshots 1 screenshots

About this mod Author’s original text

WHY??

I couldn't find an API for every single thing I needed, either cause I'm blind or stupid or both, so I made my own mostly for a stupid fart mod.

Feel free to use it but it'll likely break.

Features

GameManager

Subscribe to some of the game events. Ones that I chose because I wanted to, like:

  • OnClientPlayerConnected
  • OnClientPlayerDisconnected
  • OnPlayerSpawned
  • OnPlayerLateUpdate
  • OnRoundStart - but it's actually when the timer usually shows up after you exit the ship
  • OnRoundEnd

AudioManager

Use the Audio class I made because no one made sounds on players easy??

Creates an audio source on every player that you can use to play audio with support to being audible to enemies. Save the fact that it uses a custom rolloff curve that I made arbitrarily.

You can also use it to load an Audio Clip from a specific path or all clips from a folder. LCSoundTool didn't have that:(

Utility

Some stupid 'Utility' class that I made just for chance math. I don't know how to explain it, refer to the fart mod.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. 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.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. 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.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPack

File & checksum

Filename
YetAnotherLethalLibrary-0.0.1.zip
File size
14.3 KiB