[TF2] Fix jump start animation not working when the player has increased jump height #1435
+18
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Under normal circumstances, when a player jumps from the ground, they will play a short hopping animation (ACT_MP_JUMP_START). However, if the player has enough of a jump height boost from any source, such as attributes or the Mannpower agility rune, the jump start animation will not play, and instead it will play the airwalking animation (ACT_MP_AIRWALK). This is because the airwalk animation begins playing when the player's Z velocity goes above 300. Jump height boosts increase the player's jump height by multiplying the Z velocity boost from jumping, which is what causes the airwalk animation to play instead of the jump start animation. I've fixed this issue by making sure that the Z velocity check of 300 for the airwalk animation takes jump height boosts into account.
Before Fix
Video_2025-07-18_12-43-40.mp4
After Fix
Video_2025-07-18_13-12-55.mp4