Project Zomboid

Project Zomboid

Zombie Cure Medical Cocktail [b41.65+]
 This topic has been pinned, so it's probably important
AD 23 Apr, 2022 @ 11:03pm
Tutorial: Edit the anti-viral droprate by yourself in 3 steps
Hello everyone who uses this cocktail cure mod, I figured out the anti viral drop rate is way too low for me. So I want to edit it a little bit to enhance my gaming experience. This mod is great so pls support the author !!

Here's how I do the trick:

find the .lua related to drop rate, most likely in "whatever\Steam\steamapps\workshop\content\108600\926315905\mods\ZombieCure\media\lua\server\SVGCure.lua

And we re going to edit this .lua in notebook or whatever text editor.

1. Find line: local function ZombDropextra(zombie)
and thats the function controls the dropping event.

2.You can see some ZombRand(y) <= x in the if condition everywhere in the function. Thats the rate.

3.Do only edit the line: if (ZombRand(1000) <= 5) to ZombRand(y) <= x, meaning x/y chance to drop an anti viral. So its 5/1000 = 0.5% by default.

P.S Don't mess with other part of code if you don't understand at all, if you mess up just delete the whole 926315905 folder and redownload the mod.

Enjoy!!
< >
Showing 1-3 of 3 comments
AD 23 Apr, 2022 @ 11:17pm 
Regardless, a little improvement advice to the code to author: the function inside your code use a lot of else if and keep calling subroutines. I suggest reduce frequency to call the subroutines if possible like save the output of ZombRand() as variable, otherwise when large number of zombie die together will cause huge amount of computation to afford.
JP 12 Feb, 2023 @ 7:17pm 
Not working anymore
Tempo 29 Apr, 2024 @ 8:48am 
I think that's possible only if you're playing on single player, if you do that on a dedicated server, it will not work because the file on your server and on your pc should be identical.
< >
Showing 1-3 of 3 comments
Per page: 1530 50