glomie wrote:Too many zombies cause too hard to escape, and after some time too many lags.
It still spawn forever but never die.
I don't find the zombies mod anywhere (maybe my googling skills are going bad XD) so i assume you made it.
In this case, i have some ideas to improve it for minor lagging.
I assume the zombies are spawned by a random position, or one based on a radius of the player position (i.e., spawn a zombie if playerDistance = 10).
My idea is to introduce a spawn node, that spawns a random maximum number of zombies in a radius around itself, every x minutes (all definable in the mod conf file) with an initial timeout. The node is made by chance (e.g. 1%) when dirt_with_grass is made by the mapgen, and if there aren't other zombie spawn nodes (ZSN) near a given radius.
To stop zombies invasion, players must destroy this node, maybe with higher range tools (diamond/mese...), but they must find it, because it could have the upper and the not-near-dirt_with_grass nodes side textures like the dirt_with_grass node.
A way to reduce server load could be to start timeout to spawn zombies only if player came into a given radius.
Why an initial timeout? Because the players could locate the node if they see zombies spawned at the moment.
What do you think?