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.

@FileEX FileEX added the bugfix Solution to a bug of any kind label Aug 31, 2025
@FileEX FileEX moved this to Done in Framerate Fixes Aug 31, 2025
@FileEX FileEX removed this from Framerate Fixes Aug 31, 2025
@Dutchman101 Dutchman101 self-requested a review October 7, 2025 19:12
@Dutchman101 Dutchman101 merged commit b8b63de into multitheftauto:master Oct 7, 2025
8 checks passed
MTABot pushed a commit that referenced this pull request Oct 7, 2025
b8b63de Fix "Climbing over certain objects kills you" (#4395)
@FileEX FileEX deleted the bugfix/climbing_kill branch October 8, 2025 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants