Skip to content

Conversation

FileEX
Copy link
Member

@FileEX FileEX commented Aug 27, 2025

Fixed #602

A ped is killed by excessive fall speed. CPed::ProcessEntityCollision applies damage when the ped’s Z-axis velocity is less than a defined value: -0.375. With high FPS (>74) or low game speed, this fall velocity becomes greater (the value becomes smaller) due to timeStep.

CTaskSimpleClimb sets the Z-axis velocity based on timeStep; specifically, it calculates a multiplier from 1 / timeStep, which produces high numbers for small values (e.g. 1 / 0.2 = 5). The solution is to set a fixed timeStep in this case.

I tested several locations on the map and did not observe the same issues as @lopezloo reported in his PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Climbing over certain objects kills you, when you have high FPS
2 participants