Skip to content

Commit 995e67a

Browse files
committed
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 ValveSoftware/Source-1-Games#4842
1 parent 88c1ce9 commit 995e67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/shared/tf/tf_gamerules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7055,7 +7055,7 @@ float CTFGameRules::ApplyOnDamageAliveModifyRules( const CTakeDamageInfo &info,
70557055
return -1;
70567056
}
70577057

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

0 commit comments

Comments
 (0)