mastercomfig / tf2-patches

Team Fortress 2, but with a lot of fixes, QoL improvements and performance optimizations!
Other
220 stars 27 forks source link

Feign/Charge removes Plague Rune bleed but not condition #404

Open 0cyn opened 4 years ago

0cyn commented 4 years ago

Description

In Mannpower, triggering a deadringer or shield charge while under the effects of TF_COND_PLAGUE stops the bleed damage without removing the condition.

This allows players to, after triggering this bug, have indefinite immunity to Plague until they touch health or resupply.

Relevant functions will be in a reply to this comment.

Checklist

Reproduction

  1. Select Spy, equip deadringer (shield charge also works)
  2. sv_cheats 1
  3. addcond 112
  4. Right click

Setup Details

Client Settings

0cyn commented 4 years ago

All relavent code I find will be added/edited into this comment.

OnRemovePlague()

triggers Removal on health kit

OnConditionAdded(eCond)

OnConditionRemoved(eCond)