Project Zomboid

Project Zomboid

55 ratings
Infection Threshold Mod [Build 41.78]
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
33.211 KB
13 Jan, 2022 @ 12:15am
23 Jan, 2023 @ 12:44am
6 Change Notes ( view )

Subscribe to download
Infection Threshold Mod [Build 41.78]

Description
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. steamproxy.com/workshop/filedetails/?id=2529746725
*derLoko for the Sandbox+ Mod which helped me write a good chunk of this mod. steamproxy.com/sharedfiles/filedetails/?id=2115210472
*The Indie Stone for making a damn good game


Workshop ID: 2717677231
Mod ID: InfectionThreshold
Popular Discussions View All (1)
3
18 Jan @ 3:38pm
MP release
Liquidsonic
53 Comments
Rocky Jet 3 hours ago 
Ohh please please my friend!! Thank you!
SgtAvalanche  [author] 3 hours ago 
I’m gonna take a look, b42 is still pretty unstable at the moment but I’m hoping there’s more tools I can use to make this mod less buggy
Rocky Jet 18 Dec @ 2:52pm 
B42 is out my friend!!
Rocky Jet 6 Nov @ 5:23pm 
Been using this mod since it literally came out and i have never had any issues. Wouldnt play without this awesome mod.
Kiloku 16 Oct @ 3:27pm 
I'd like to add to the other reports of instant-death. I've had two characters insta-killed while this mod was active. Single torso hit from the front, no existing injuries, HP went from 100 to 0 in one frame (so it's not like a neck laceration that simply drained it fast)
Kerk 4 Oct @ 9:50pm 
Does this yet work in Multiplayer???
JarzHuntz 5 Feb @ 8:59am 
ive tried this and somehow it seems to lead to instant deaths in situations you woudnlt normally be, like a scratch from the front. your fine until your bubble number of hits goes off then you might just fall over dead =*(
Magicoco 2 Dec, 2023 @ 10:00pm 
is it still working?
Arrow3244 24 Jul, 2023 @ 8:50pm 
Bug Report: I am playing SP sandbox. I have my settings to where I have 3 injuries before I will become infected. I lasted 6 days with one laceration from a tree before being bit once in Louisville. I bandaged it, disinfected it, and it was uninfected and healing on day 8. I was cleaning up the neighborhood and a zombie walked straight through my axe swing and bit my hand through my gloves.

While it was already unfortunate that it walked through my attack, I was at very good health and *I instantly died.* After some research, it seems there can become an issue with zombification where if the infection is edited, it can believe you cheated zombification and a bite causes you to instantly turn. I believe this may be what has happened.

Is there anything that can be done to fix this? I'm playing in 41. I'm using my backup but I just lost 2 hours of progress which really sucks.
Klick404 5 May, 2023 @ 4:42am 
Does this mod work with multiplayer?