Project Zomboid

Project Zomboid

68 个评价
Infection Cancellation
2
3
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
31.931 KB
2023 年 5 月 27 日 下午 5:00
2023 年 5 月 27 日 下午 6:54
4 项改动说明 ( 查看 )

订阅以下载
Infection Cancellation

描述
In Project Zomboid, once you're infected, you're done for.

Whenever my friend and I see the "queasy" moodle shortly after taking damage or whenever we're bitten, we just drink a whole bottle of bleach to get done with it fast.
That makes for a very anticlimactic end to our save files.

This mod aims to counteract that.

Basically what this mod does is that, towards the end of your infection cycle, you get a (2%) ^ (infected wounds) chance to survive and for the infection to calm down.
No more suicide, no more easy escape. Now you must fight with despair as your health degrades over time, and hope for the best.
Maybe you'll live to see another day ? Probably not... But you can at least go out with a bang.

Tested in 41.78, works in Singleplayer and Multiplayer (hosted games for sure, unsure about dedicated servers)
/!\ The dice roll may not trigger if sandbox option "Infection Mortality" is set to under 0-12h /!\
May be incompatible with other mods that changes infection behavior.
This mod doesn't trigger an infection, it can only cancel one. If it breaks it should never get you killed.

Feel free to modify and patch the mod as you wish.

Thanks to everyone that helped me in the official Project Zomboid Discord.

Workshop ID: 2981556095
Mod ID: infectionCancellation
热门讨论 查看全部(1)
1
2023 年 6 月 16 日 上午 6:43
I made a Version with Sandbox Options
Pandaa
26 条留言
Neocron 2024 年 12 月 30 日 上午 4:26 
Thanks for the quick reply. Looking forward to stable then!
WeirdBill  [作者] 2024 年 12 月 30 日 上午 4:21 
Not until full release
Neocron 2024 年 12 月 29 日 下午 11:23 
Any intention to update it for B42?
WeirdBill  [作者] 2024 年 6 月 2 日 上午 6:33 
@keerifox don't hesitate to fix the mod and reupload if you feel like it :]
This mod really was made with 0 prior knowledge about modding games, so what I wrote is probably the worst minimum functionnal script lmao.
I'm not a modder, I just made this in 2 - 3 days because I couldn't find anything like it, then uploaded because other people might have been in my place.

But hey, it works most of the time except in a few edge cases so I think it does a fairly good job :steamthumbsup:
keerifox 2024 年 6 月 2 日 上午 6:18 
Dice roll doesn't seem to trigger if activating this mod when already infected, since the default value for "canHeal" is set to false, and the character needs to spend at least 1 minute without a zombie infection with this mod enabled before "canHeal" is set to true.

Appreciate the mod otherwise :special:
WeirdBill  [作者] 2024 年 2 月 6 日 下午 10:46 
2% everytime
Everyoneplays 2024 年 2 月 6 日 下午 2:57 
Does the mod allow for increased resistance or is it every time 2%?
Everyoneplays 2023 年 12 月 18 日 下午 1:35 
Didn't get lucky on the dice roll
WeirdBill  [作者] 2023 年 11 月 30 日 上午 7:14 
iirc, there's no way to get infected by the zombie virus without getting wounded in the first place.
imagine that your hand gets scratched, and contracts the virus : even when the wound heals, the hand still keeps a tag that says that it carries zombie infection.

If i'm not mistaken, when the dice roll occurs i just loop over every body part and each has a 2% chance of getting infection removed (hence the 2%^x chance). if at the end no body part is infected, you are cured.

that indeed could lead to unwanted behavior if you play mods that can cause infection without wounding a body part first, leading to you always getting cured

or i could be wrong idk it's been ages since i worked on this
sorry if this is confusing
SnakePower 2023 年 11 月 29 日 下午 4:12 
Just out of curiosity, what happens if you're infected with 0 infected wounds? If I'm reading the math right, that's 2%^0, which would be 1