mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-08-03 20:24:36 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user