BetterFlashlight Fixed
Flashlights can be used to blind enemies and other players. This is a version of BetterFlashlight with various issues fixed.
About this mod Author’s original text
BetterFlashlight Fixed
Flashlights can be used to blind enemies and other players.
This version fixes a number of issues with BetterFlashlight v1.0.6.
Fixes
- Fixed issues with inconsistent behavior when the flashlight wasn't in the active slot.
- Fixed issue of copy-pasted code causing battery consumption to be overwritten by an unrelated value.
- Fixed issue caused by enumerator being mutated during iteration.
- Fixed issue with values overwriting each other due to being assigned the same key.
Additional Fixes
The newest version of BetterFlashlight's source on GitHub was not up-to-date. These are the additional bugs I fixed to update the project.
- Fixed a flashlight beam size error.
- Fixed an issue with decimal number conversion for the 'Distance' field in the 'Enemy values' section.
- Adjusted the calculation to determine if the flashlight angle is correct, and made it impossible to blind enemies through obstacles.
- Adjusted values in the configuration to match config values in BetterFlashlight v1.0.6.
- Added a new field in the configuration to manage the player's head angle (when the player is looking up or down).
- Configurable.
- Developed for Lethal Company v64a.
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.
Dependencies
Install these first, or the mod will not work:
BepInEx-BepInExPack