[TF2] Fixed restoring drained health removing overheal while not actively being healed#1805
Open
paypur wants to merge 1 commit intoValveSoftware:masterfrom
Open
[TF2] Fixed restoring drained health removing overheal while not actively being healed#1805paypur wants to merge 1 commit intoValveSoftware:masterfrom
paypur wants to merge 1 commit intoValveSoftware:masterfrom
Conversation
|
Can you check if you can do the infinite health heavy exploit? |
Author
|
It does not work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
While using health draining items such as the Eviction Notice or the Gloves of Running Urgently, TF2 removes your overheal while restoring max health. Since overheal is so powerful as heavy, this is a significant gameplay issue when trying to use these weapons.
This behavior is caused by the function trying to cap how much health can be restored to
Max( nHealthMaxOverheal, nHealthMaxAttribute ).nHealthMaxOverhealisnOriginalMaxHealth * m_Shared.GetMaxOverhealMultiplier()where the multiplier is1when not actively being healed. So the player's health is just capped to their max health.My solution is to just remember the last
m_Shared.GetMaxOverhealMultiplier()while the player is actively being healed and to use that as the multiplier instead.Before:
before.mp4
Fixed:
fixed.mp4