Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/game/shared/tf/tf_player_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8162,6 +8162,13 @@ void CTFPlayerShared::Disguise( int nTeam, int nClass, CTFPlayer* pDesiredTarget
// not allowed to disguise while taunting
return;
}

// If disguising due to 'Your Eternal Reward' backstab, ensure that disguise team is the opposing team
// Fixes issue with backstabbing an enemy that then gets autobalanced, disguising the spy as his own team
if (nRealTeam == nTeam && bOnKill)
{
nTeam = (nRealTeam == TF_TEAM_RED) ? TF_TEAM_BLUE : TF_TEAM_RED;
}

// we're not disguising as anything but ourselves (so reset everything)
if ( nRealTeam == nTeam && nRealClass == nClass )
Expand Down