Skip to content

[TF2] Fix disguise_on_backstab not functioning for stab targets that become ghosts #1279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FlaminSarge
Copy link
Contributor

Description

Fixes ValveSoftware/Source-1-Games#4477

Players with cond TF_COND_HALLOWEEN_IN_HELL do not change m_lifeState when they are killed, instead gaining TF_COND_HALLOWEEN_GHOST_MODE; the IsAlive() check used in successful backstab checks solely looks at lifestate, so backstabs on these players are never considered successful despite causing their 'death'. This fixes the check to account for GHOST_MODE.

Tested that the player properly obtains GHOST_MODE in time for the check when stabbed with IN_HELL.

…D_HALLOWEEN_IN_HELL or TF_COND_HALLOWEEN_GHOST_MODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant