Wiki Navigation

cfgenvironment.xml Configuration

Configure animal and zombie territories in your DayZ server using cfgenvironment.xml.

Overview

The cfgenvironment.xml file defines territories for various animal and zombie spawns in your DayZ server environment. It controls:

  • Animal herd territories and behaviors
  • Zombie spawn locations and groups
  • Territory file references and mappings

Territory Files

The configuration references several territory files that define spawn areas:

cattle_territories.xml
sheep_goat_territories.xml
red_deer_territories.xml
wolf_territories.xml
bear_territories.xml
zombie_territories.xml

Example Configuration

<env>
    <territories>
        <file path="env/cattle_territories.xml" />
        <file path="env/sheep_goat_territories.xml" />
        <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="Herd" name="Bear" behavior="BlissBearGroupBeh">
            <file usable="bear_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>
            <agent type="Female" chance="3">
                <spawn configName="Animal_GallusGallusDomesticusF_Brown" chance="1" />
                <spawn configName="Animal_GallusGallusDomesticusF_White" chance="20" />
            </agent>
            <item name="globalCountMax" val="50" />
            <item name="zoneCountMin" val="1" />
            <item name="zoneCountMax" val="1" />
        </territory>
    </territories>
</env>

Territory Types

Herd Territories

type string

Territory type (e.g., "Herd")

behavior string

AI behavior class name

Ambient Territories

globalCountMax integer

Maximum number of entities globally

zoneCountMin/Max integer

Min/Max entities per spawn zone

Territory Configuration Tips

  • Balance animal populations for realistic ecosystem simulation
  • Consider map regions when placing territories
  • Test spawn rates to ensure proper distribution
  • Adjust zombie territories based on location type (cities vs rural)