• Tracker

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

Players take damage after exiting a car when speed is lower than "CAR_JUMPOUT_THRESHOLD".

VehiclesMultiplayerBugServer
1

State

Assigned
Issue key
DZG-2566
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
dimathecat
Created
Nov 5, 2026
Views
26
Platform
PC Steam
What happened?

Sometimes in ActionGetOutTransport happens undefined behavior. Bug spotted only on cars.

GetSpeedometerAbsolute() might return nan. When speed is nan - "got_action_data.m_WasJumpingOut" is True, so player takes damage on exit without jumping out anim.

void ProcessGetOutTransportActionData(Transport veh, GetOutTransportActionData got_action_data)
	{
		
		float speed;
		if (Car.Cast(veh))
		{
			got_action_data.m_JumpingOutThreshold = CAR_JUMPOUT_THRESHOLD;
			speed = Car.Cast(veh).GetSpeedometerAbsolute();
		}
		else if (Boat.Cast(veh))
		{
			got_action_data.m_JumpingOutThreshold = BOAT_JUMPOUT_THRESHOLD;
			vector playerPosition = got_action_data.m_Player.PhysicsGetPositionWS();
			vector velocity = dBodyGetVelocityAt(veh, playerPosition);
			velocity[1] = 0; // sliding check doesn't use vertical velocity
			speed = velocity.Normalize();
		}
		else if (Motorbike.Cast(veh))
		{
			got_action_data.m_JumpingOutThreshold = MOTO_JUMPOUT_THRESHOLD;
			speed = Motorbike.Cast(veh).GetSpeedometerAbsolute();
		}

		got_action_data.m_Speed = speed;
		got_action_data.m_Vehicle = veh;

		got_action_data.m_WasJumpingOut = got_action_data.m_Speed > got_action_data.m_JumpingOutThreshold;
		if (got_action_data.m_Player.IsOwner())
			got_action_data.m_WasJumpingOutAnim = got_action_data.m_WasJumpingOut;
	}
Reproduction steps

Bug is floating, so this may take some time to catch it. To reproduce i created this mod

#ifdef SERVER
modded class ActionGetOutTransport{
    override void ProcessGetOutTransportActionData(Transport veh, GetOutTransportActionData got_action_data){
		super.ProcessGetOutTransportActionData(veh, got_action_data);
		
        Print("DTC_ ProcessGetOutTransportActionData. JumpedOutAnim: " + got_action_data.m_WasJumpingOutAnim + " JumpedOut: " + got_action_data.m_WasJumpingOut + " Speed: " + got_action_data.m_Speed + " threshold: " + got_action_data.m_JumpingOutThreshold);
	}
}
#endif

and putted it on server with this issue. So when the player gets out of car bug may happen and i get "Speed: nan" in server script.log.

Maybe car.GetSpeedometerAbsolute() in cycle on car with active simulation is enough. I'm testing it now

Exact build version (optional)
all iterations of 1.30
Where did it happen?
Community
Is it modded?
Unknown
Expected result
—
Reactions

Activity

    about 13 hours ago
  • dimathecat
    created issueabout 13 hours ago
  • dimathecat
    changedabout 12 hours ago
  • l909
    changed state to
    ASSIGNED
    about 12 hours ago
  • dimathecat
    changedabout 12 hours ago
  • dimathecat
    changedabout 12 hours ago
  • dimathecat
    changedabout 7 hours ago

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

State

Assigned
Issue key
DZG-2566
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
dimathecat
Created
Nov 5, 2026
Views
26