Simple volume tuning mod for Lethal Company. The settings can be edited either through the ingame UI, or through BepInEx config.
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.
You can add your own configs for custom mods extremely easily.
KeepItDown assembly and add the plugin as a dependency.[BepInDependency(KeepItDown.PluginInfo.PLUGIN_GUID)]
public class MyPlugin : BaseUnityPlugin {
...
}
KeepItDownPlugin.AddConfig with a unique key.public class MyPlugin : BaseUnityPlugin {
void Awake() {
KeepItDownPlugin.AddConfig("CowMoo");
}
}
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);
}
}