Skip to content

Comments

[TF2] Fixed restoring drained health removing overheal while not actively being healed#1805

Open
paypur wants to merge 1 commit intoValveSoftware:masterfrom
paypur:master
Open

[TF2] Fixed restoring drained health removing overheal while not actively being healed#1805
paypur wants to merge 1 commit intoValveSoftware:masterfrom
paypur:master

Conversation

@paypur
Copy link

@paypur paypur commented Feb 15, 2026

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 ). nHealthMaxOverheal is nOriginalMaxHealth * m_Shared.GetMaxOverhealMultiplier() where the multiplier is 1 when 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

@Ashetf2
Copy link

Ashetf2 commented Feb 15, 2026

Can you check if you can do the infinite health heavy exploit?

@paypur
Copy link
Author

paypur commented Feb 16, 2026

It does not work

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.

2 participants