Set the overall caps
In globals.xml, ZombieMaxCount caps infected across the whole map and AnimalMaxCount caps animals. The defaults are 1000 and 200. Lower them to ease load, raise them for a busier world.
These are ceilings, not targets. If the events below don't ask for that many, you won't reach the cap. If they ask for more, the cap wins.
Tune individual hordes
In events.xml, infected events (names starting Infected) and animal events have their own nominal, min and max. Raise military infected for a harder north, or lower town infected for a gentler coast.
Infected events follow the places they belong to, such as InfectedCity, InfectedVillage, InfectedMilitary, InfectedPolice and InfectedIndustrial. Animal events include deer, boar, cows, goats, sheep, wolves and bears, each with its own event, such as AnimalWolf and AnimalBear.
Where they spawn
The areas infected and animals roam come from the territory files in your mission's env folder, such as zombie_territories.xml and the wolf and bear files. You rarely need to touch these. Changing the numbers in events.xml and globals.xml is enough for almost every server.
Pick numbers that fit your server
Some starting points owners use:
- PvE and new-player servers: lower town and village infected so fresh spawns can find food
- Hardcore servers: raise military infected and wolves, and keep the coast as it is
- Hunting-focused servers: raise deer, boar and cows so food comes from the wild rather than tins
- Low-population servers: lower everything a little, as there are fewer players to share the load
Clean-up timers
Bodies take time to disappear, and that adds to the load too. globals.xml has CleanupLifetimeDeadInfected and CleanupLifetimeDeadAnimal, in seconds. Shorter times clear corpses sooner, at the cost of less time to skin an animal or loot an infected.
Restart and watch
Upload both files, check them with the XML validator first, and restart. Check how the server performs with a full player count before raising numbers further.
Rubber-banding, slow doors and infected teleporting are signs the server is working too hard. If you see them after a change, step the numbers back down.