Skip to content

Commit fe1e6d4

Browse files
committed
gameplay: explosive headshot does bullet damage instance
Historically, explosive headshot was a damage over time applied as bleed damage, but was then changed to deal a single damage instance. Bleed ignores resistances, including not counting as ranged damage for Fists of Steel heavies, which some people say makes this mechanic problematic. However, this does change damage values and effectiveness of Sniper in MvM so this may be ignored if not desired. ref: ValveSoftware/Source-1-Games#4619
1 parent 5ff88bc commit fe1e6d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/game/shared/tf/tf_weapon_sniperrifle.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,8 +1161,10 @@ void CTFSniperRifle::ExplosiveHeadShot( CTFPlayer *pAttacker, CTFPlayer *pVictim
11611161
flStunAmt = pTFPlayer->IsMiniBoss() ? 0.5f : RemapValClamped( iExplosiveShot, 1, 3, 0.5f, 0.8f );
11621162
pTFPlayer->m_Shared.StunPlayer( flStunDuration, flStunAmt, TF_STUN_MOVEMENT, pAttacker );
11631163

1164-
// DoT
1165-
pTFPlayer->m_Shared.MakeBleed( pAttacker, this, 0.1f, flDmg );
1164+
// Radial damage
1165+
CTakeDamageInfo info( this, pAttacker, NULL, flDmg, DMG_BULLET );
1166+
info.SetDamageCustom( TF_DMG_CUSTOM_NONE );
1167+
pTFPlayer->TakeDamage( info );
11661168

11671169
// Shoot a beam at them
11681170
CPVSFilter filter( pTFPlayer->WorldSpaceCenter() );

0 commit comments

Comments
 (0)