Skip to content

[TF2] Fix player not being able to deploy parachute after landing and becoming airborne without jump button#735

Merged
EricS-Valve merged 4 commits intoValveSoftware:masterfrom
FlaminSarge:parachute-deploy
May 12, 2025
Merged

[TF2] Fix player not being able to deploy parachute after landing and becoming airborne without jump button#735
EricS-Valve merged 4 commits intoValveSoftware:masterfrom
FlaminSarge:parachute-deploy

Conversation

@FlaminSarge
Copy link
Contributor

@FlaminSarge FlaminSarge commented Feb 22, 2025

Fixes ValveSoftware/Source-1-Games#2455

As described in above bug, TF_COND_PARACHUTE_DEPLOYED is not removed upon landing, but only upon using the jump button while grounded. This can lead to a case where the player has used the parachute, landed, and then becomes airborne without the jump button again, resulting in them being unable to deploy the parachute despite being fully grounded.

This patch moves the removal of the condition to the same case as TF_COND_PARACHUTE_ACTIVE's removal when grounded. It also prevents using the jump button to add the parachute conditions while grounded, in order to prevent the client from receiving the parachute condition for a frame every time they jump.

@FlaminSarge FlaminSarge changed the title Fix player not being able to deploy parachute after landing and becoming airborne without jump button [TF2] Fix player not being able to deploy parachute after landing and becoming airborne without jump button Feb 22, 2025
@FlaminSarge FlaminSarge marked this pull request as draft February 22, 2025 08:55
@FlaminSarge FlaminSarge marked this pull request as ready for review February 22, 2025 09:10
@FlaminSarge
Copy link
Contributor Author

Alternative to "Don't allow activating parachute on ground": prevent ToggleParachute entirely when on the ground. However, this has the opportunity to introduce complications with parachute cond removal for halloween karts/etc., so limiting the behavior to preventing just activation is safer.

Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Feb 22, 2025
@FlaminSarge
Copy link
Contributor Author

FlaminSarge commented Feb 26, 2025

As a heads up, I'm planning on a separate PR (very much WIP) that attempts to allow values of parachute_attribute greater than 1 to increase the number of times the parachute can be redeployed, for community projects to use/etc. Kinda like #772.

@EricS-Valve EricS-Valve merged commit 92ee92f into ValveSoftware:master May 12, 2025
@FlaminSarge FlaminSarge deleted the parachute-deploy branch May 13, 2025 10:38
Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Jun 11, 2025
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.

[TF2] B.A.S.E. Jumper mechanics bug

3 participants