Wiki Navigation

cfgGameplay.json Configuration

The cfgGameplay.json file allows you to customize various gameplay mechanics and settings in your DayZ server.

Overview

The cfgGameplay.json file is used to customize various gameplay mechanics and settings in your DayZ server. This file allows you to control:

  • Player health, stamina, and movement mechanics
  • Disease and injury systems
  • Zombie behavior and spawning
  • Vehicle mechanics and damage
  • Base building and construction

File Structure

The cfgGameplay.json file uses JSON format with various sections for different gameplay aspects:

{
    "PlayerData": {
        "StaminaData": {
            "sprintStaminaModifierErc": 1.0,
            "sprintStaminaModifierCro": 1.0,
            "staminaWeightLimitThreshold": 6000.0,
            "staminaMax": 100.0,
            "staminaKgToStaminaPercentPenalty": 1.75,
            "staminaMinCap": 5.0
        },
        "ShockHandlingData": {
            "shockRefillSpeedConscious": 5.0,
            "shockRefillSpeedUnconscious": 1.0,
            "allowRefillSpeedModifier": true
        },
        "MovementData": {
            "timeToStrafeJog": 0.1,
            "rotationSpeedJog": 0.3,
            "timeToSprint": 0.45,
            "timeToStrafeSprint": 0.3,
            "rotationSpeedSprint": 0.15
        }
    },
    "WorldsData": {
        "lightingConfig": 1,
        "objectSpawnersArr": [
            "territory",
            "zombie"
        ],
        "environmentMinTemps": [
            -3.0,
            -2.0,
            0.0,
            4.0,
            9.0,
            14.0,
            18.0,
            17.0,
            14.0,
            9.0,
            4.0,
            0.0
        ],
        "environmentMaxTemps": [
            3.0,
            5.0,
            7.0,
            14.0,
            19.0,
            24.0,
            26.0,
            25.0,
            21.0,
            16.0,
            10.0,
            5.0
        ]
    },
    "BaseBuildingData": {
        "HologramData": {
            "disableIsCollidingBBoxCheck": 0,
            "disableIsCollidingPlayerCheck": 0,
            "disableIsClippingRoofCheck": 0,
            "disableIsBaseViableCheck": 0,
            "disableIsCollidingGPlotCheck": 0,
            "disableIsCollidingAngleCheck": 0,
            "disableIsPlacementPermittedCheck": 0,
            "disableHeightPlacementCheck": 0,
            "disableIsUnderwaterCheck": 0,
            "disableIsInTerrainCheck": 0
        },
        "ConstructionData": {
            "disablePerformRoofCheck": 0,
            "disableIsCollidingCheck": 0,
            "disableDistanceCheck": 0
        }
    }
}

PlayerData Section

StaminaData object

Controls player stamina mechanics, including maximum stamina, regeneration rates, and weight penalties.

ShockHandlingData object

Controls how players recover from shock (unconsciousness).

MovementData object

Controls player movement mechanics, including rotation speeds and transition times between movement states.

WorldsData Section

lightingConfig integer

Controls the lighting configuration for the world.

objectSpawnersArr array

Defines which object spawners are active in the world.

environmentMinTemps/MaxTemps array

Defines minimum and maximum temperatures for each month of the year.

Base Building Configuration

The BaseBuildingData section controls how players can build bases and structures:

  • HologramData: Controls placement checks when players are placing building elements
  • ConstructionData: Controls checks during the actual construction process

Setting any of these values to 1 will disable the corresponding check, making base building easier but potentially allowing exploits. Use with caution.

Common Customizations

Here are some common customizations server owners make to the cfgGameplay.json file:

  • Unlimited Stamina: Set staminaMax to a very high value (e.g., 10000) and staminaKgToStaminaPercentPenalty to 0
  • Faster Recovery: Increase shockRefillSpeedUnconscious for faster recovery from unconsciousness
  • Easier Base Building: Set various HologramData checks to 1 to disable placement restrictions
  • Warmer Climate: Adjust environmentMinTemps and environmentMaxTemps arrays for a warmer or colder environment

Best Practices

When configuring your cfgGameplay.json file, consider the following best practices:

  • Make incremental changes and test thoroughly after each change
  • Back up your configuration files before making changes
  • Consider the gameplay impact of your changes - balance is key
  • Be cautious when disabling building checks as it may lead to exploits

Need Help?

For more information about gameplay configuration, check the serverDZ.cfg documentation or join our Discord community for assistance.