From 73347291303ca70b59bbff27ff87dcd6ba2083cb Mon Sep 17 00:00:00 2001 From: Jori Kos <43441605+JoriKos@users.noreply.github.com> Date: Sun, 21 Sep 2025 20:45:45 +0200 Subject: [PATCH] Fixed on-hit attributes not triggering on friendly disguises --- src/game/shared/tf/tf_weaponbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/shared/tf/tf_weaponbase.cpp b/src/game/shared/tf/tf_weaponbase.cpp index e4ae80c64..91741d7ad 100644 --- a/src/game/shared/tf/tf_weaponbase.cpp +++ b/src/game/shared/tf/tf_weaponbase.cpp @@ -5031,7 +5031,7 @@ void CTFWeaponBase::ApplyOnHitAttributes( CBaseEntity *pVictimBaseEntity, CTFPla } // On hit attributes don't work when you shoot disguised spies - if ( pVictim->m_Shared.InCond( TF_COND_DISGUISED ) ) + if ( pVictim->m_Shared.InCond( TF_COND_DISGUISED ) && pVictim->m_Shared.GetDisguiseTeam() != pVictim->GetTeamNumber() ) return; }