DynamicBarrierDecay
Makes barrier decay exponentialy instead of linearly. Configurable.
Last updated | 3 months ago |
Total downloads | 58059 |
Total rating | 14 |
Categories | Mods Tweaks Server-side |
Dependency string | zombieseatflesh7-DynamicBarrierDecay-2.0.2 |
Dependants | 25 other packages depend on this package |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2117README
Description
This mod changes how barrier works so that it decays exponentially; it decays faster with more barrier. Max health no longer has any affect on barrier decay rate. Includes configuration for for the barrier decay rate, and an option to remove the barrier cap.
The goal of this mod is to make barrier less of an "all or nothing" type of thing, as well as making it scale better with max health. For example, In vanilla, if you have aegis + bungus on a turret, picking up a couple of shield gens will increase your barrier decay and can mean the difference between max barrier and zero barrier.
Math
Vanilla
Barrier decays at a rate equal to 3.33% of your combined max health and shields per second.
The formula for barrier decay per second is (maxHealth + maxShields) / 30
Dynamic
Barrier decays exponentially with a half-life of 7.5 seconds, or at a rate of approximately 9.24% of your current barrier per second, with a minimum rate of 3 per second. These values are configurable.
The formula for barrier decay per second is max(minimumDecayRate, (barrier * ln(2) / halfLife) )
Graph
The following graphs show how barrier will decay over time with default settings, assuming you have max barrier at 240.
- Orange - Vanilla
- Cyan - Dynamic
Contact
- Issues can be posted on my github
- Discord: @zombieseatflesh7
- Art by SearchGoopsy
Changelog
2.0.2
- Updated for SOTS DLC
2.0.0
- Changed the formula and made barrier decay significantly faster
- Added configuration for barrier half-life and minimum decay speed
- Added a config to remove the barrier cap
- New mod icon
1.0.0
- Release