SoftCadaverRework
[v81] Early Release! Make it so only DAMAGED players can be infected by Cadaver Growths, and buff the air filter! Fully configurable!Soft Cadaver Rework
I got inspired to make this after seeing Alter Ego's Cadaver Growth/Bloom AI analysis video and wanting to make them more interesting and more tied to your HP!
With default settings, full HP players are immune to being infected, but players who are damaged get infected way faster, and players that are both damaged and infected will become Cadaver Blooms much faster!
Features
- Config for making full HP players immune to getting infected (Players ALREADY infected that manage to heal back to full aren't immune!)
- Config for making both the initial infection chance AND the progression of the infection increase massively based on how damaged you are, making infections rapid if you're hurt and enter Cadaver Growths!!
- Config to remove the vanilla 1.2x initial infection multiplier when you're at 60 HP or less
- Config to remove the vanilla 0.85x infection speed multiplier at 100 HP, and the 1.15x multiplier at 40 HP or less
- Config for buffing the air filter duration, giving you more of a grace period before you can be infected, regardless of your health
- All fully configurable, configs are synced, and all clients + host must have the mod for it to work!
Limitations
- The infection chance increase when you're on critical health and inside Cadaver Blooms will still apply and STACK with this mod's multiplier, making infections almost guaranteed if you're that low and enter them.
- Could be incompat with any mods that also change how Cadaver infections work
- Should be compatible with mods that change player health, but all my calculations just check your raw health value, not your Max HP. E.g. if you use a mod to surpass 100 HP, "being hurt" still means being below 100 HP, not whatever that mod's max HP is. Likewise, if you use a mod to lower your max HP, my mod will assume you are always damaged when doing the calculations.
To Do
- Maybe find a way to get rid of the 1.5x multiplier for infection chances if you're on critical health
- Better compat for mods that increase your max HP
- Option for the Air filter strength to be consistent between Singleplayer and Multiplayer
- Maybe fix the unused coughing mechanic?
