[TF2] Fix Thermal Thruster passives not being removed if it's unequipped during use (or player is a Medic) #1490
+5
−0
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.
Fixes ValveSoftware/Source-1-Games#4731
The
TF_COND_ROCKETPACK
cond (stomp, lower fall damage, etc) from the Thermal Thruster is supposed to be removed as soon as the player touches the ground, but the code responsible does not do this if the player does not have a Thermal Thruster equipped.As a result, players can stop the cond from being removed and keep it until they die by unequipping the Thermal Thruster after using it but before touching the ground (such as by flying into a resupply cabinet after changing their loadout). Additionally, Medics with the Quick Fix will always keep the cond until they die if they heal a Pyro as he uses the Thermal Thruster, because they inherit the cond from the Pyro but don't have the weapon themselves, so the cond is never removed from them.
Fixed by removing
TF_COND_ROCKETPACK
if a player touches the ground without the Thermal Thruster equipped.