You are viewing a potentially older version of this package. View all versions.
Lega-BetterFlashlight-1.0.1 icon

BetterFlashlight

Use a torch to blind your enemies.

Date uploaded 6 months ago
Version 1.0.1
Download link Lega-BetterFlashlight-1.0.1.zip
Downloads 967
Dependency string Lega-BetterFlashlight-1.0.1

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

Better Flashlight

Better Flashlight is a mod that adds a functionality to flashlights allowing them to blind your enemies.

Description

The operation is simple: Aim the flashlight at the enemy and keep it on them for 2 seconds (configurable) Once this delay has passed, the enemy is stunned for 3 seconds (configurable), giving you a chance to create distance

Visual effects can be observed when the player aims correctly and when the blinding effect takes place, pay close attention to the light beam.

You can also use the flashlight to rescue your teammates, yes, just like in DBD... use the flashlight when a player is caught by a masked enemy to free them. Try to do the same for the giant, but don't linger!

Example

More informations

For any feedback/suggestions or questions, you can reach me on the 'Lethal Company Modding' Discord server (https://discord.gg/EgQFAq3z) under the same name (username lega2039) or the BetterFlashlight thread. DMs are welcome.

CHANGELOG

CHANGELOG

Version 1.0.6

  • Fixed a flashlight beam size error
  • Fixed an issue with decimal number conversion for the 'Values' field in the 'Enemy values' section
  • Adjusted the calculation to determine if the flashlight angle is correct, it's now impossible to blind enemies through obstacles
  • Adjusted some values in the configuration
  • Added a new field in the configuration to manage the player's head angle (when the player is looking up or down)

Version 1.0.5

  • Potentially fixed a flashlight beam size error
  • Fixed the masked cannot be blinded

Version 1.0.4

  • Some optimizations
  • Fixed a possible NullReference
  • Fixed the immunity applied to all monsters of the same name

Version 1.0.3

  • Added a cooldown configuration for enemy immunity, preventing the enemy from being blinded again immediately
    • To ensure the 'Enemy values' configuration continues to work, the field must be updated with the immunity time for each enemy
  • Added a configuration for battery consumption when blinding enemies and players. The battery depletes by the specified percentage of remaining battery each time a stun is applied
    • To ensure the 'Enemy values' configuration continues to work, the field must be updated with the battery consumption percentage for each enemy
  • Fixed an exploit that allowed the player to blind an enemy with the flashlight turned off if they started the process with the flashlight on

Version 1.0.2 Many changes have been made to the configurations. It is recommended to delete the file to let it recreate itself.

  • Added a configuration for the distance between the enemy and the flashlight.
  • Added a configuration to specify different values for each enemy.
  • Added an exclusion list to prevent some enemies from being affected by the flashlight.
  • Added the ability to blind a player (without stunning).
  • Added configurations for blinding a player.

Version 1.0.1

  • Fixed the explanation of the configurations.

Version 1.0.0

  • Initial release