
KeepItDown
Simple volume tuning mod.Details
Keep It Down
Simple volume tuning mod for Lethal Company. The settings can be edited either through the ingame UI, or through BepInEx config.
Installation
Go to the thunderstore page to get the latest version. If you choose to do download manually, simply add KeepItDown.dll
to your /BepInEx/plugins
folder under the game directory. Note that LethalSettings
is required as a dependency.
For Developers
You can add your own configs for custom mods extremely easily.
- Reference the
KeepItDown
assembly and add the plugin as a dependency.
[BepInDependency(KeepItDown.PluginInfo.PLUGIN_GUID)]
public class MyPlugin : BaseUnityPlugin {
...
}
- For each config, call
KeepItDownPlugin.AddConfig
with a unique key.
public class MyPlugin : BaseUnityPlugin {
void Awake() {
KeepItDownPlugin.AddConfig("CowMoo");
}
}
- Finally, bind AudioSources with
KeepItDownPlugin.BindAudioSource
, to have their volumes synced with the config. Config values are relative (from 0-200% of the base volume), so you can tweak the AudioSource's volume freely.
public class CowEnemy : EnemyAI {
[SerializeField] AudioSource _mooAudioSource;
void Awake() {
KeepItDownPlugin.BindAudioSource("CowMoo", _mooAudioSource);
}
}