• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-1481
Back
2

1.30 Xbox: disableBaseDamage=true not preventing damage — possible unconditional SetAllowDamage(true) override

BugBase Building
2

State

Open
Issue key
DZG-1481
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
saiyans
Created
Oct 19, 2026
Views
15
Platform
Xbox
What happened?

Base damage remains enabled despite setting the following in the active mission's cfggameplay.json:


"disableBaseDamage": true,


Possible cause found through inspection of the locally installed PC 1.30 scripts.pbo:

File:


4_World/Entities/ItemBase/BaseBuildingBase.c


The BaseBuildingBase constructor contains these consecutive lines:

ProcessInvulnerabilityCheck(GetInvulnerabilityTypeString());

SetAllowDamage(true);

GetInvulnerabilityTypeString() returns "disableBaseDamage".

In 3_Game/Entities/EntityAI.c, ProcessInvulnerabilityCheck reads CfgGameplayHandler.GetDisableBaseDamage() and calls SetAllowDamage(false) when protection is enabled.

The constructor then immediately calls SetAllowDamage(true), apparently overriding that protection.

This code was verified in the installed PC scripts.pbo. The Xbox server's scripts have not been directly inspected, so please confirm whether the same code is present in the affected Xbox build.

Proposed correction for investigation:

Remove the unconditional SetAllowDamage(true), or place the default damage-enabling call before ProcessInvulnerabilityCheck so the configured protection is applied last.

Please test the correction on new structures, persisted structures after restart, and after construction/repair actions, with disableBaseDamage both true and false.

Reproduction steps

"GeneralData": {

"disableBaseDamage": true,

"disableContainerDamage": true,

"disableRespawnDialog": false,

"disableRespawnInUnconsciousness": false

}

Reproduction:

1. Enable cfggameplay.json loading with enableCfgGameplayFile = 1.

2. Set GeneralData.disableBaseDamage to true.

3. Start the server and test damage against a player-built structure.

4. Compare newly constructed structures with existing structures after a server restart.

Exact build version (optional)
—
Where did it happen?
Community
Is it modded?
No
Expected result

Expected:

Player-built base structures should not receive damage when disableBaseDamage is true.

Actual:

Base damage is still occurring.

Reactions

Activity

    about 2 hours ago
  • saiyans
    created issueabout 2 hours ago
  • saiyans
    changedabout 2 hours ago

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
DZG-1481
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
saiyans
Created
Oct 19, 2026
Views
15