Wiki Navigation

Configuration File
JSON Format

cfgEffectArea.json Configuration

Configure contaminated areas and special effect zones in your DayZ server. Define static and dynamic contamination zones that affect player health and gameplay.

Overview

The cfgEffectArea.json file defines contaminated areas and special effect zones. It supports static contamination zones with permanent gas effects, dynamic contamination zones with temporary effects that spawn and despawn, and custom environmental effects with configurable particle systems and damage types.

File Structure

The file uses JSON format with separate arrays for static and dynamic effect areas.

{
    "staticEffectArea": [
        {
            "type": "ContaminatedArea_Static",
            "position": [7650, 0, 13300],
            "radius": 100,
            "innerRingCount": 10,
            "innerRingDist": 10.0,
            "outerRingToggle": 1,
            "outerRingDist": 120.0,
            "color": [0.0, 1.0, 0.0, 1.0],
            "duration": -1,
            "damagePerSecond": 5
        }
    ],
    "dynamicEffectArea": [
        {
            "type": "ContaminatedArea_Dynamic",
            "position": [5600, 0, 8400],
            "radius": 80,
            "duration": 900,
            "spawnChance": 0.7,
            "respawnTime": 300
        }
    ]
}

Static Area Parameters

type string

The type of effect area. Use "ContaminatedArea_Static" for permanent contamination zones that persist indefinitely on the map.

position array

The [x, y, z] coordinates of the effect area center. Y is typically 0 for ground level. Use DayZ map tools to find accurate coordinates for your desired location.

radius integer

The radius of the effect area in meters. This defines the contaminated zone size where players will take damage and visual effects will be displayed.

duration integer

Duration of the effect in seconds. Use -1 for permanent static areas that never expire. Positive values create temporary zones.

Visual Parameters

innerRingCount integer

Number of inner rings in the effect visualization. Controls the visual density of the contamination effect. Higher values create more detailed particle rings.

innerRingDist float

Distance between inner rings in meters. Controls the spacing of visual effects. Smaller values create denser, more intense-looking contamination.

outerRingToggle boolean

Enable (1) or disable (0) outer ring visualization. Creates a warning zone around the contaminated area to alert approaching players.

color array

The [r, g, b, a] color values for the effect visualization (0.0 to 1.0 each). Alpha controls transparency. Example: [0.0, 1.0, 0.0, 1.0] for green gas.

Dynamic Area Parameters

Dynamic effect areas are temporary contamination zones that spawn and despawn based on configured parameters. They add unpredictability to gameplay.

type string

Use "ContaminatedArea_Dynamic" for temporary contamination zones that appear and disappear based on spawn chance and duration settings.

spawnChance float

Probability (0.0 to 1.0) of the dynamic area spawning when triggered. A value of 0.7 means 70% chance to spawn each cycle.

respawnTime integer

Time in seconds before the dynamic area can respawn after despawning. Controls how frequently the zone can reappear.

particleDensity float

Density of particle effects (0.0 to 1.0). Controls the visual intensity of the contamination. Higher values may impact performance.

damagePerSecond integer

Amount of damage dealt to players per second while in the contaminated area. Balance this with zone size and available protective gear.

damageType string

Type of damage dealt. Use "chemical" for contamination damage that requires specific medical treatment like PO-X antidote.

Color Configuration

Use different colors to indicate contamination types and severity. The color array uses RGBA format with values from 0.0 to 1.0.

Green Gas
[0.0, 1.0, 0.0, 1.0]

Standard contamination

Red Gas
[1.0, 0.0, 0.0, 0.8]

High-intensity danger

Yellow Gas
[1.0, 1.0, 0.0, 0.9]

Warning zone

Blue Gas
[0.0, 0.0, 1.0, 0.7]

Chemical contamination

Purple Gas
[1.0, 0.0, 1.0, 0.6]

Radiation-like effects

Orange Gas
[1.0, 0.5, 0.0, 0.8]

Toxic waste

Best Practices

Recommended

  • Place static zones in strategic locations like military bases or industrial areas
  • Balance risk vs. reward by placing valuable loot in contaminated areas
  • Use different colors to indicate contamination severity levels
  • Test zones thoroughly to ensure they don't block essential areas

Avoid

  • Too many dynamic areas which can cause server performance issues
  • High particle density values that impact client performance
  • Damage values that are overwhelming without protective gear
  • Coordinates outside map boundaries causing invisible zones

Common Configurations

Military Base Zone

Large permanent contamination for high-tier loot areas

{
    "type": "ContaminatedArea_Static",
    "position": [4523, 0, 10234],
    "radius": 150,
    "innerRingCount": 12,
    "innerRingDist": 12.0,
    "outerRingToggle": 1,
    "outerRingDist": 180.0,
    "color": [0.0, 1.0, 0.0, 1.0],
    "duration": -1,
    "damagePerSecond": 3
}

Dynamic Event Zone

Temporary high-danger zone with rare spawns

{
    "type": "ContaminatedArea_Dynamic",
    "position": [8200, 0, 5600],
    "radius": 60,
    "innerRingCount": 6,
    "innerRingDist": 8.0,
    "outerRingToggle": 1,
    "outerRingDist": 80.0,
    "color": [1.0, 0.0, 0.0, 0.9],
    "duration": 600,
    "spawnChance": 0.5,
    "respawnTime": 1800,
    "damagePerSecond": 8
}

Pro Tips

Use DayZ map tools like iZurvive or DayZ Central Economy tools to find accurate coordinates. Always validate your JSON syntax before deploying - a single missing comma can break the entire file. Consider the availability of NBC protective gear on your server when setting damage values, and test contamination zones on a staging server first.