Page MenuHomeFeedback Tracker

DayZAnimalInputController method GetMovementSpeed() crash server
Closed, ResolvedPublic

Description

When using new GetMovementSpeed() it will crash server with animal

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce

example code

override bool ModCommandHandlerAfter(float pDt, int pCurrentCommandID, bool pCurrentCommandFinished)
	{
		if (super.ModCommandHandlerAfter(pDt, pCurrentCommandID, pCurrentCommandFinished))
		{
			return true;
		}
		if (GetGame().IsClient() || !GetGame().IsMultiplayer())
		{
			return true;
		}
		DayZAnimalInputController inputController = GetInputController();
		if (inputController.IsDead())
		{
			return true;
		}
		if ( pCurrentCommandID == DayZAnimalConstants.COMMANDID_MOVE && inputController && inputController.GetMovementSpeed()>2)
		{
			//do code
		}
		
	}
Additional Information

tried also GetTurnSpeed() which works fine and not leads to crash

Event Timeline

Hunterz created this task.Apr 7 2023, 9:13 PM
Geez changed the task status from New to Assigned.Apr 12 2023, 12:50 PM
Geez changed the task status from Assigned to Need More Info.Apr 12 2023, 1:23 PM
Geez added a subscriber: Geez.

Hello Hunterz.
Can you please send us .mdmp with the crash + RPT file from the server?

Geez changed the task status from Need More Info to Acknowledged.Apr 13 2023, 10:25 AM
Geez closed this task as Resolved.Apr 13 2023, 4:52 PM
Geez claimed this task.

Thank you. This will be patched in the first experimental of 1.21.