Config Settings JSON Format

cfggameplay.json

Configures advanced gameplay mechanics including player health and stamina, disease and injury systems, vehicle damage, and AI behavior.

Overview

The cfggameplay.json file controls advanced gameplay mechanics that go beyond the standard server configuration. It allows fine-tuning of player health, stamina, diseases, base building, vehicles, and UI elements.

This file must be enabled in serverDZ.cfg by setting enableCfgGameplayFile = 1;. The file is located in the mission folder and is read at server startup.

JSON Structure

The file is a single JSON object with top-level sections for each gameplay area.

{
    "version": 124,
    "GeneralData": {
        "disableBaseDamage": 0,
        "disableContainerDamage": 0,
        "disableRespawnDialog": 0
    },
    "PlayerData": {
        "disablePersonalLight": 0,
        "StaminaData": {
            "staminaMax": 100,
            "staminaKgToStaminaPercentPenalty": 1.75,
            "staminaMinCap": 5,
            "sprintStaminaModifierErc": 1.0,
            "sprintStaminaModifierCro": 1.0
        },
        "ShockHandlingData": {
            "shockRefillSpeedConscious": 5.0,
            "shockRefillSpeedUnconscious": 1.0,
            "allowRefillSpeedModifier": 1
        }
    },
    "WorldData": {
        "environmentMinTemps": [-3, -2, 0, 4, 9, 14, 18, 17, 12, 7, 4, 0],
        "environmentMaxTemps": [3, 5, 7, 14, 19, 24, 26, 25, 21, 16, 10, 5],
        "wetnessWeightModifiers": [1.0, 1.0, 1.33, 1.66, 2.0]
    },
    "BaseBuildingData": {
        "HologramData": {
            "disableIsCollidingBBoxCheck": 0,
            "disableIsCollidingPlayerCheck": 0,
            "disableIsClippingRoofCheck": 0,
            "disableIsBaseViableCheck": 0
        }
    },
    "UIData": {
        "use3DMap": 0,
        "HitIndicationData": {
            "hitDirectionOverrideEnabled": 0,
            "hitDirectionBehaviour": 1,
            "hitDirectionStyle": 0,
            "hitDirectionIndicatorColorStr": "0xffbb0a1e",
            "hitDirectionMaxDuration": 2.0,
            "hitDirectionBreakPointRelative": 0.2,
            "hitDirectionScatter": 10.0
        }
    },
    "MapData": {
        "ignoreMapOwnership": 0,
        "ignoreNavItemsOwnership": 0,
        "displayPlayerPosition": 0,
        "displayNavInfo": 1
    }
}

Major Sections

GeneralData

Global toggles for base damage, container damage, and respawn dialog. These are server-wide on/off switches.

PlayerData

Controls player-specific mechanics including stamina, shock handling, and the personal light (flashlight at spawn). Contains nested StaminaData and ShockHandlingData objects.

WorldData

Environment temperature ranges by month (12-element arrays for min/max) and wetness weight modifiers that affect player movement when clothing is wet.

BaseBuildingData

Hologram placement checks for base building. Disabling checks allows more flexible placement but can lead to exploits.

UIData

Controls the in-game map behavior and hit direction indicators. The use3DMap toggle switches between 2D and 3D map rendering.

MapData

Map ownership and display settings. Controls whether players need a physical map item, whether their position is shown, and navigation info visibility.

Stamina, Health & Disease Settings

Setting Default Description
staminaMax 100 Maximum stamina pool. Higher values allow longer sprinting.
staminaKgToStaminaPercentPenalty 1.75 Stamina penalty per kg of carried weight. Lower values reduce weight impact.
staminaMinCap 5 Minimum stamina that is always available regardless of weight.
sprintStaminaModifierErc 1.0 Stamina drain multiplier when sprinting upright. Lower = less drain.
sprintStaminaModifierCro 1.0 Stamina drain multiplier when sprinting crouched.
shockRefillSpeedConscious 5.0 Rate at which shock value recovers while conscious.
shockRefillSpeedUnconscious 1.0 Rate at which shock value recovers while unconscious.

Vehicle Damage

Vehicle damage settings are controlled through the GeneralData section. The disableBaseDamage flag also affects vehicles stored within bases. For vehicle-specific tuning, modded solutions are typically required.

{
    "GeneralData": {
        "disableBaseDamage": 0,
        "disableContainerDamage": 0,
        "disableRespawnDialog": 0
    }
}
  • disableBaseDamage: 1 — Prevents damage to base structures and fences.
  • disableContainerDamage: 1 — Prevents damage to storage containers (tents, barrels, crates).

Example Configurations

PvP-Focused Server

High stamina, map with player position, relaxed base building checks.

{
    "version": 124,
    "GeneralData": {
        "disableBaseDamage": 0,
        "disableContainerDamage": 0,
        "disableRespawnDialog": 0
    },
    "PlayerData": {
        "disablePersonalLight": 1,
        "StaminaData": {
            "staminaMax": 150,
            "staminaKgToStaminaPercentPenalty": 1.0,
            "staminaMinCap": 10,
            "sprintStaminaModifierErc": 0.5,
            "sprintStaminaModifierCro": 0.5
        }
    },
    "BaseBuildingData": {
        "HologramData": {
            "disableIsCollidingBBoxCheck": 1,
            "disableIsCollidingPlayerCheck": 1,
            "disableIsClippingRoofCheck": 1,
            "disableIsBaseViableCheck": 1
        }
    },
    "MapData": {
        "ignoreMapOwnership": 1,
        "ignoreNavItemsOwnership": 1,
        "displayPlayerPosition": 1,
        "displayNavInfo": 1
    }
}

Hardcore Survival Server

Reduced stamina, no map assistance, strict building placement.

{
    "version": 124,
    "GeneralData": {
        "disableBaseDamage": 0,
        "disableContainerDamage": 0,
        "disableRespawnDialog": 1
    },
    "PlayerData": {
        "disablePersonalLight": 1,
        "StaminaData": {
            "staminaMax": 75,
            "staminaKgToStaminaPercentPenalty": 2.5,
            "staminaMinCap": 3,
            "sprintStaminaModifierErc": 1.5,
            "sprintStaminaModifierCro": 1.5
        },
        "ShockHandlingData": {
            "shockRefillSpeedConscious": 3.0,
            "shockRefillSpeedUnconscious": 0.5,
            "allowRefillSpeedModifier": 1
        }
    },
    "MapData": {
        "ignoreMapOwnership": 0,
        "ignoreNavItemsOwnership": 0,
        "displayPlayerPosition": 0,
        "displayNavInfo": 0
    }
}