Configure animal territories, zombie spawn zones, and ambient wildlife behavior across your DayZ server map.
The cfgenvironment.xml file defines territories for wildlife and infected spawns. It controls animal herd territories (wolves, bears, deer, cattle), ambient wildlife (chickens, rabbits, birds), and zombie spawn zones. The file references external territory definition files that contain the actual spawn coordinates and zone boundaries.
The file contains <file> references and <territory> definitions with spawn agents.
<env>
<territories>
<file path="env/wolf_territories.xml" />
<file path="env/bear_territories.xml" />
<file path="env/zombie_territories.xml" />
<territory type="Herd" name="Wolf" behavior="DZWolfGroupBeh">
<file usable="wolf_territories" />
</territory>
<territory type="Ambient" name="AmbientHen" behavior="DZAmbientLifeGroupBeh">
<file usable="hen_territories" />
<agent type="Male" chance="1">
<spawn configName="Animal_GallusGallusDomesticus" chance="1" />
</agent>
<item name="globalCountMax" val="50" />
<item name="zoneCountMin" val="1" />
<item name="zoneCountMax" val="3" />
</territory>
</territories>
</env>
External files that define spawn zone coordinates and boundaries. Located in the env/ folder.
Cow spawn zones (farms, fields)
Sheep and goat spawn zones
Deer spawn zones (forests)
Wolf pack spawn zones
Bear spawn zones (wilderness)
Infected spawn zones
Territory type identifier. Use "Herd" for pack animals like wolves and bears that travel in groups with coordinated AI behavior.
Unique identifier for this territory definition. Used to reference the territory in other configurations and for debugging purposes.
AI behavior class that controls how animals act. Examples: "DZWolfGroupBeh" for wolves, "BlissBearGroupBeh" for bears, "DZAmbientLifeGroupBeh" for passive wildlife.
Maximum number of this animal type that can exist across the entire server at once. Higher values increase wildlife density but impact performance.
Minimum number of animals to spawn in each active zone. Ensures zones always have some wildlife when players are nearby.
Maximum number of animals per zone. The actual count is randomized between min and max values for natural variation.
Wildlife spawns are tied to player proximity - animals only spawn when players enter their territory zones. For hunting-focused servers, increase deer and boar populations while keeping predator counts low. For hardcore survival, boost wolf and bear numbers in wilderness areas. Monitor server performance when adjusting globalCountMax values, as too many AI entities can cause lag spikes during combat encounters.