• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-1897
Back
1

Headgear never protects against the sun unless it is the only clothing worn

Bug
1

State

Assigned
Issue key
DZG-1897
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
zoro
Created
Oct 23, 2026
Views
12
Platform
PC Steam
What happened?

File: 4_World/Classes/Environment/Environment.c:2042-2064 HeadGearProtectionAgainstSun)

The loop returns HC_EXPOSED_HEAD_TO_SUN on the first clothing attachment that is not in the HEADGEAR slot:

```c

if (attachmentSlot == InventorySlots.HEADGEAR)

isolation = MiscGameplayFunctions.GetCurrentItemHeatIsolation(item);

else

return HC_EXPOSED_HEAD_TO_SUN;

```

Reproduction steps

Expected: a hat or helmet reduces sun heating.

Actual: any player wearing a shirt or trousers gets the "exposed head" multiplier, so headgear has no effect.

Fix: continue instead of return, or FindAttachment(InventorySlots.HEADGEAR).

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

Activity

    about 2 hours ago
  • zoro
    created issueabout 2 hours ago
  • l909
    changed state to
    ASSIGNED
    40 minutes ago

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

State

Assigned
Issue key
DZG-1897
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
zoro
Created
Oct 23, 2026
Views
12