Easy way to cap zombie health?
-
I dont know how to code, and i just want to use zm_weapons as my only mod (that you have to manually load on menu) And i cant find a way to get a zombie health cap mod working. I dont want to use cold war mod or the reimagined mod. Im trying to grab the zombie section out of their code and put it into jug upgrade but it doesnt seem to do anything. Please can someone help me? I dont want to host a dedicated and learn how to do that just for the configuration tool mod for dedicated servers. All i need is zombie health capped at like 10000 or something.
-
This is what im throwing onto the bottom of my jugupgrade mod, as said tho it doesnt seem to do anything, I pulled this from the cold war zombies mod. and i changed the value from 10000 to 1 to test if its working easier.
zombies()
{
level endon("end_game");
self endon("disconnect");
for(;;)
{
level waittill("start_of_round");
if(level.zombie_health > 1)
{
level.zombie_health = 1;
}
wait 0.05;
}
} -
If someone could just make a simple zombie health cap mod that would be incredible.
-
Not sure if it will work havnt tested it myself
zombies() { while (true) { level waittill("start_of_round"); foreach(zombie in getaiarray("axis")) { zombie.health = 1; } } }