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
This commit is contained in:
mastercoms
2025-02-18 19:17:28 -05:00
committed by EricS-Valve
parent 5cdfa5c5a0
commit 7965665490
+2 -1
View File
@@ -7412,7 +7412,8 @@ float CTFGameRules::ApplyOnDamageAliveModifyRules( const CTakeDamageInfo &info,
}
}
if ( pAttacker == pVictimBaseEntity && (info.GetDamageType() & DMG_BLAST) &&
if ( pAttacker == pVictimBaseEntity &&
(info.GetDamageType() & DMG_BLAST || info.GetDamageCustom() == TF_DMG_CUSTOM_FLARE_EXPLOSION) &&
info.GetDamagedOtherPlayers() == 0 && (info.GetDamageCustom() != TF_DMG_CUSTOM_TAUNTATK_GRENADE) )
{
// If we attacked ourselves, hurt no other players, and it is a blast,