FadingFlashlights
Dims flashlights as the battery gets lower.
模組介紹 作者原文
"light get darker as energy used." - Me, just now
Fading Flashlights
Lethal Company's flashlights are fun, but they are mostly static. Let's fix that.
With this mod, over time your flashlight will dim in brightness. By default, either type of flashlight starts to fade at 50% battery,
starting slowly, but dimming faster and faster over time, finally reaching no light at no battery.
This works for the regular and pro flashlights, but might not work with flashlights from other mods.
Config
Fade Start
A number between 0 and 1, representing the percentage of the flashlight used before it starts to fade. For example, a value of 0.5
means that it will start fading at 50%.
Default: 0.5
Fade Final Brightness
A number between 0 and 1, representing the percentage of brightness the flashlight will run out with. For example, a value of 0.5
means that the flashlight will end with a brightness that is 50% of the original.
Default: 0.5
Fade Function Exponent
Any number is acceptable.
I am a math nerd
The above two config options create a linear line, that goes through points (0, FadeFinalBrightness), and ending at (FadeStart, 1).
Then, we put the output of that line at the specified charge value for x^(2^FadeFunctionExponent).
This means that if you put in -1, you take the square root. If you put in -2, you are doing the fourth root. If you put in 1, your
square, and if you put in 2, you put it to the power of four. If you put in 0, the brightness will linearly decrease over time.
I am normal
This affects how quickly your flashlight runs out of battery.
If you put in a negative number, it will start staying brighter for longer, but the brightness will decrease faster and faster over time.
If you put in a positive number, it will start decreasing quickly, but the rate will slow down over time.
If you put in zero, the brightness will decrease at the same rate over time.
Default: -1 (square root)
Credits
I wrote all of the code myself, and drew the logo, but that doesn't mean I got no help.
Mommyplier - Help with Programming, Math, and the Logo
Braydon3DS - Emotional Support and distracting me with Ratchet and Clank
TheRealMutt - Not believing that I could create a mod
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: