Step-by-step guide · 6 steps

How to change infected and animal numbers in DayZ

Too few infected and DayZ feels empty. Too many and the server struggles. Two files control it: globals.xml sets the overall caps, and events.xml sets the individual hordes and herds.

  • 3 min read
  • Updated
  • PlayStation, Xbox and PC
db/globals.xmlExample
<var name="ZombieMaxCount" type="0" value="1000"/><var name="AnimalMaxCount" type="0" value="200"/>
Step 1

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.

Step 2

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.

Step 3

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.

Step 4

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
Step 5

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.

Step 6

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.

Tools for this

Common questions

How do I reduce zombies on my DayZ server?

Lower ZombieMaxCount in globals.xml and the nominal of infected events in events.xml, then restart.

How do I get more zombies?

Raise the nominal and max of the infected events you want more of, and make sure ZombieMaxCount is high enough to allow them.

Will more infected cause lag?

It can. Infected are AI the server has to run. Raise them gradually and watch performance with players online.

Can I turn wolves off?

Yes. Set the wolf event's active value to 0 in events.xml, or lower its nominal.

Why does a town feel empty even with high numbers?

Infected spawn in the areas set for them as players get near, so a town depends on its own event as well as the map-wide cap. If the cap is already used up elsewhere on the map, a busy town can still feel quiet.

Do animals count towards the infected cap?

No. ZombieMaxCount covers infected and AnimalMaxCount covers animals, so each has its own ceiling and changing one doesn't affect the other.

Does this work on console?

Yes. globals.xml and events.xml are part of the base game, so the same changes work on PS5, Xbox and PC servers.

Run your DayZ server from one place

Free editors for every config file, plus a live dashboard and Discord feeds when you're ready.