Skip to content

Commit 8e6bcc3

Browse files
committed
1 parent 2c6a25a commit 8e6bcc3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

game/quiver/info_changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ Added the following Source SDK Pull Requests:
9191
- #1533: MvM Tank support for Mappers/Vscripters
9292
- #1532: Fix team skins for tf_projectile_rocket
9393
- #1539: Allow weapons with penetrating bullets to penetrate Medigun shield
94+
- #1540: Fixed on-hit attributes not triggering on friendly disguises
95+
-
9496

9597
Details:
9698
- Fixed a bug where the mini-crit damage effect doesn't show up when your shield breaks.

src/game/shared/tf/tf_weaponbase.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5448,7 +5448,11 @@ void CTFWeaponBase::ApplyOnHitAttributes( CBaseEntity *pVictimBaseEntity, CTFPla
54485448
}
54495449

54505450
// On hit attributes don't work when you shoot disguised spies
5451+
#ifdef BDSBASE
5452+
if (pVictim->m_Shared.InCond(TF_COND_DISGUISED) && pVictim->m_Shared.GetDisguiseTeam() != pVictim->GetTeamNumber())
5453+
#else
54515454
if ( pVictim->m_Shared.InCond( TF_COND_DISGUISED ) )
5455+
#endif
54525456
return;
54535457
}
54545458

0 commit comments

Comments
 (0)