• Tracker

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

Heat stroke never drains water: the drain constants are `int`

Bug
1

State

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

HeatStroke.c:7-9:

```c

protected static const int WATER_DRAIN_FROM_FEVER_ST1 = 0.35; //! per tick

protected static const int WATER_DRAIN_FROM_FEVER_ST2 = 0.5; //! per tick

protected static const int WATER_DRAIN_FROM_FEVER_ST3 = 0.75; //! per tick

```

They're declared as int, so all three become 0. waterStat.Add(-WATER_DRAIN_FROM_FEVER_STx * deltaT) in phases 1–3

drains nothing.

Reproduction steps

Expected result: heat stroke dehydrates the player (0.35 / 0.5 / 0.75 per second by phase).

Actual result: no water loss from heat stroke in any phase.

Suggested fix: declare them as float.

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

Activity

    1 day ago
  • zoro
    created issue1 day ago
  • l909
    changed state to
    AWAITING INTERNAL TESTING
    about 24 hours ago
  • l909
    changed state to
    ASSIGNED
    about 24 hours ago

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

State

Assigned
Issue key
DZG-1708
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
zoro
Created
Oct 21, 2026
Views
27