Skip to content

Crash defenders

cjcarw edited this page Feb 27, 2026 · 1 revision

Crash Defenders

The CrashDefenders block lets you spawn NPCs (vanilla DayZ zombies or Expansion AI bots) to guard the crash site. Defenders spawn when the wreck is created and are cleaned up based on configurable conditions.


Full Reference

"CrashDefenders": {
    "EnableDefenders": 1,
    "DespawnRadius": 800.0,
    "DespawnCheckInterval": 60.0,
    "DespawnWithWreck": 1,
    "Defenders": [
        {
            "ClassName": "ZmbM_SoldierNormal",
            "Count": 6,
            "AdditionalNight": 2,
            "SpawnRadius": 25.0,
            "IsExpansionBot": 0,
            "ExpansionFaction": "",
            "ExpansionLoadout": "",
            "ExpansionUnlimitedAmmo": 0,
            "ExpansionCanBeLooted": 1
        },
        {
            "ClassName": "ZmbM_usSoldier_Heavy_Woodland",
            "Count": 3,
            "AdditionalNight": 1,
            "SpawnRadius": 20.0,
            "IsExpansionBot": 0,
            "ExpansionFaction": "",
            "ExpansionLoadout": "",
            "ExpansionUnlimitedAmmo": 0,
            "ExpansionCanBeLooted": 1
        }
    ]
}

Global Settings

Option Type Default Description
EnableDefenders Boolean 0 Master toggle for the defender system. Set to 1 to enable.
DespawnRadius Float (meters) 800.0 If no players are within this radius of the crash site, all remaining defenders are despawned. Set to 0 to disable distance-based cleanup.
DespawnCheckInterval Float (seconds) 60.0 How often (in seconds) the mod checks if players are within the despawn radius.
DespawnWithWreck Boolean 1 When enabled, all defenders are force-deleted when the wreck despawns (either by auto-despawn timer or server deletion).

Complete Examples

Example 1: Zombie Horde (Vanilla Only)

"CrashDefenders": {
    "EnableDefenders": 1,
    "DespawnRadius": 600.0,
    "DespawnCheckInterval": 30.0,
    "DespawnWithWreck": 1,
    "Defenders": [
        {
            "ClassName": "ZmbM_SoldierNormal",
            "Count": 10,
            "AdditionalNight": 4,
            "SpawnRadius": 35.0,
            "IsExpansionBot": 0
        },
        {
            "ClassName": "ZmbM_usSoldier_Heavy_Woodland",
            "Count": 4,
            "AdditionalNight": 2,
            "SpawnRadius": 15.0,
            "IsExpansionBot": 0
        }
    ]
}

Daytime: 14 zombies (10 + 4). Nighttime: 20 zombies (14 + 6).

Example 2: Mixed Zombies + Expansion AI

"CrashDefenders": {
    "EnableDefenders": 1,
    "DespawnRadius": 800.0,
    "DespawnCheckInterval": 60.0,
    "DespawnWithWreck": 1,
    "Defenders": [
        {
            "ClassName": "ZmbM_SoldierNormal",
            "Count": 6,
            "AdditionalNight": 2,
            "SpawnRadius": 30.0,
            "IsExpansionBot": 0
        },
        {
            "ClassName": "eAI_SurvivorM_Mirek",
            "Count": 2,
            "AdditionalNight": 1,
            "SpawnRadius": 15.0,
            "IsExpansionBot": 1,
            "ExpansionFaction": "East",
            "ExpansionLoadout": "MilitaryLoadout",
            "ExpansionUnlimitedAmmo": 1,
            "ExpansionCanBeLooted": 1
        }
    ]
}

6 zombies as outer perimeter + 2 armed AI bots close to the wreck as the real threat.

Example 3: Pure AI Soldiers (Expansion Only)

"CrashDefenders": {
    "EnableDefenders": 1,
    "DespawnRadius": 1000.0,
    "DespawnCheckInterval": 45.0,
    "DespawnWithWreck": 1,
    "Defenders": [
        {
            "ClassName": "eAI_SurvivorM_Mirek",
            "Count": 4,
            "AdditionalNight": 2,
            "SpawnRadius": 25.0,
            "IsExpansionBot": 1,
            "ExpansionFaction": "West",
            "ExpansionLoadout": "EliteSquad",
            "ExpansionUnlimitedAmmo": 1,
            "ExpansionCanBeLooted": 0
        }
    ]
}

4 elite AI soldiers with unlimited ammo and non-lootable bodies (to prevent "farming" bots for gear).

Clone this wiki locally