Infection Threshold Mod [Build 41.78]
NOTICE: Mod now requires EasyConfig as a separate dependency.
Tired of getting screwed over from getting infected on the very first zombie attack?
Looking for a solution that doesn’t involve disabling zombie transmission altogether?
This mod aims at making the zombification mechanic a little more balanced without eliminating or changing it too drastically, allowing for it to be based more on cautious decision-making over pure dice rolls.
How it works:
-The first few "attacks" will never result in zombie infections by default.
-After sustaining X number of injuries (injuries that have not fully healed yet), the next zombie-related injury and beyond will be particularly vulnerable to infection.
-Attacks that have a small chance of infecting you can be increased, so scratches and lacerations will be more punishing after reaching the threshold.
Default mod settings:
-Injury Threshold is 2
(This means that any zombie attack after 2 sustained injuries can result in zombification)
-Only zombie-related attacks are counted towards the threshold (Scratches, lacerations, etc.)
-To compensate for the added "protection", the risk of infection after reaching this threshold is doubled
-Think "arcade-style 3 lives only" or the "3 strikes you’re out" rule.
Custom settings include:
-Injury threshold for zombification (Number of injuries you can sustain before you’re at risk of getting the virus)
-Option to choose which specific injuries/ailments/conditions are able to contribute towards the injury threshold
-Percentage infection chances for specific zombification-causing attacks before/after the threshold is met
-Debug mode
Extra notes:
-Custom settings can be found in the main options with a tab labeled "Infection Threshold"
-This mod overrides sandbox transmission settings, so you will have to adjust infection rates manually within the mod.
-This mod can also be used to modify vanilla zombification rates, simply set injury threshold to 0 and only change the "infection chance after threshold" settings.
-UPDATE 5/22/22 – Decided to play around with my mod again to see if it still works and it does (41.71), but I discovered a small bug where getting attacked by more than one zombie may ignore an infection check because of the way the code loops. Not much I can do about it since devs got rid of a useful piece of Lua code to call attack events.
-UPDATE 1/23/23 – Mod still works (41.78). However, there seems to be a small bug involving EasyConfig where settings aren’t immedately updated when loading into a game. Just to be safe, you may want to reapply settings while in-game for any setting changes to take into effect.
Credit goes to:
*Chuckleberry Finn for the EasyConfig Mod. steamcommunity.com/workshop/filedetails/?id=2529746725
*derLoko for the Sandbox+ Mod which helped me write a good chunk of this mod. steamcommunity.com/sharedfiles/filedetails/?id=2115210472
*The Indie Stone for making a damn good game
Workshop ID: 2717677231
Mod ID: InfectionThreshold