• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Experimental Feedback
  • /DZEXP-264
Back
5

All vehicles share one drown point, so cars take engine damage when only their wheels are in water

Error
5

State

Awaiting internal testing
Issue key
DZEXP-264
Access
Public
Space
DayZ
Project
Experimental Feedback
Creator
yuki
Created
Oct 7, 2026
Views
45
Platform
PC Steam
What happened?

m_DrownEnginePos is declared static, but it is assigned per instance from each model's memory point. Every vehicle that spawns overwrites the shared value, so all vehicles use the drown point of the last vehicle created. If that model has no drown_engine point, ConvertMemPointToPosition() returns vector.Zero (the model origin, roughly at ground level). From then on, any car standing in shallow water starts losing engine health. The result depends on spawn order, so it looks random between restarts.

Affected code:

  • 4_World/Entities/Vehicles/CarScript.c: static vector m_DrownEnginePos;, assigned in InitializeParticles() (in 1.29, assigned in the constructor)

  • 4_World/Entities/Vehicles/MotorbikeScript.c (1.30): protected static vector m_DrownEnginePos;, assigned in InitializeParticles()

  • Consumers: GetEnginePosWS(), used by the drown check in OnUpdate() (350 HP/s to Engine after 0.5 s), by motorbike crew ejection, and by the destroyed-engine smoke effect condition

Reproduction steps
  1. Spawn a vehicle whose model has a correct drown_engine point.

  2. Spawn any vehicle without a drown_engine point (or with one placed low), e.g. a modded car.

  3. Drive the first vehicle into shallow water so that only the wheels are submerged.

Exact build version (optional)
1.29.163709 (stable), 1.30.164014 (experimental)
Where did it happen?
Official
Is it modded?
No
Expected result

Expected: No engine damage, because the engine point is above the water.
Actual: Engine health drains at 350 HP/s, because the drown point of the second vehicle (origin) is used.

Suggested fix: Remove static from m_DrownEnginePos in both classes.

Reactions

Activity

    4 days ago
  • yuki
    created issue4 days ago
  • l909
    changed state to
    AWAITING INTERNAL TESTING
    4 days ago

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

State

Awaiting internal testing
Issue key
DZEXP-264
Access
Public
Space
DayZ
Project
Experimental Feedback
Creator
yuki
Created
Oct 7, 2026
Views
45