Skip to content

[TF2] Allow MvM gate captures to stun bots under the effects of Bonk! and Quick-Fix ubers#1855

Open
mtxfellen wants to merge 1 commit intoValveSoftware:masterfrom
mtxfellen:fix-radiowave-stun
Open

[TF2] Allow MvM gate captures to stun bots under the effects of Bonk! and Quick-Fix ubers#1855
mtxfellen wants to merge 1 commit intoValveSoftware:masterfrom
mtxfellen:fix-radiowave-stun

Conversation

@mtxfellen
Copy link
Copy Markdown

@mtxfellen mtxfellen commented Mar 25, 2026

CTFPlayerShared::StunPlayer() has a check for TF_COND_MVM_BOT_STUN_RADIOWAVE (gate capture stun) that allows stuns to be applied even while under TF_COND_INVULNERABLE_HIDE_UNLESS_DAMAGED (spawn uber).

However, this check is not extended to other stun-immune conditions like TF_COND_PHASE (Bonk!) and TF_COND_MEGAHEAL (Quick-Fix uber), which causes bots like T_TFBot_Scout_Bonk (small Bonk! Bat Scouts) to not be properly stunned, even though they still show the stun particle.

This PR moves the check to occur before all of the stun immune conditions, rather than only for TF_COND_INVULNERABLE_HIDE_UNLESS_DAMAGED.

Before -> After:

bonk_scouts.mp4

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.

1 participant