Skip to content

Commit 7965665

Browse files
mastercomsEricS-Valve
authored andcommitted
gameplay: detonator jumps aren't considered self dmg jumps
only blast damge is considered for bSelfBlastDmg modifier. this affects a few things, being applying the rocket_jump_dmg_reduction attribute, blocking self bleed, but most importantly, it allows to bypass the no knockback attribute on quickfix ubers
1 parent 5cdfa5c commit 7965665

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/game/shared/tf/tf_gamerules.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7412,7 +7412,8 @@ float CTFGameRules::ApplyOnDamageAliveModifyRules( const CTakeDamageInfo &info,
74127412
}
74137413
}
74147414

7415-
if ( pAttacker == pVictimBaseEntity && (info.GetDamageType() & DMG_BLAST) &&
7415+
if ( pAttacker == pVictimBaseEntity &&
7416+
(info.GetDamageType() & DMG_BLAST || info.GetDamageCustom() == TF_DMG_CUSTOM_FLARE_EXPLOSION) &&
74167417
info.GetDamagedOtherPlayers() == 0 && (info.GetDamageCustom() != TF_DMG_CUSTOM_TAUNTATK_GRENADE) )
74177418
{
74187419
// If we attacked ourselves, hurt no other players, and it is a blast,

0 commit comments

Comments
 (0)