Lethal Company
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
3 years ago
Downloads
52.9K
Size
69KB

Keep It Down

Simple volume tuning mod for Lethal Company. The settings can be edited either through the ingame UI, or through BepInEx config.

Mod Settings Window

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.

  1. Reference the KeepItDown assembly and add the plugin as a dependency.
[BepInDependency(KeepItDown.PluginInfo.PLUGIN_GUID)]
public class MyPlugin : BaseUnityPlugin {
  ...
}
  1. For each config, call KeepItDownPlugin.AddConfig with a unique key.
public class MyPlugin : BaseUnityPlugin {
  void Awake() {
    KeepItDownPlugin.AddConfig("CowMoo");
  }
}
  1. 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);
  }
}
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.