mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-01-25 08:42:36 +01:00
Fixed on-hit attributes not triggering on friendly disguises
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user