From b4c6aba7c13d110a0851867fbd00d1d118765436 Mon Sep 17 00:00:00 2001 From: Sergey Syrtsev Date: Sat, 28 Mar 2026 15:15:40 +0300 Subject: [PATCH 1/2] Fixed crits being ignored with australium weapons on killfeed --- src/game/client/tf/hud_basedeathnotice.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/game/client/tf/hud_basedeathnotice.cpp b/src/game/client/tf/hud_basedeathnotice.cpp index cb3bd83b1f8..44a31204db0 100644 --- a/src/game/client/tf/hud_basedeathnotice.cpp +++ b/src/game/client/tf/hud_basedeathnotice.cpp @@ -287,8 +287,8 @@ void CHudBaseDeathNotice::Paint() x += iconPostkillerWide + xSpacing; } - // Draw glow behind weapon icon to show it was a crit death - if ( msg.bCrit && msg.iconCritDeath ) + // Draw glow behind weapon icon to show it was a crit or australium death + if ( msg.iconCritDeath ) { msg.iconCritDeath->DrawSelf( x, yIcon, iconActualWide, iconTall, m_clrIcon ); } @@ -489,15 +489,15 @@ void CHudBaseDeathNotice::FireGameEvent( IGameEvent *event ) bLocalPlayerInvolved = true; } - if ( event->GetInt( "death_flags" ) & TF_DEATH_AUSTRALIUM ) + if (event->GetInt("damagebits") & DMG_CRITICAL) { - m_DeathNotices[iMsg].bCrit= true; - m_DeathNotices[iMsg].iconCritDeath = GetIcon( "d_australium", bLocalPlayerInvolved ? kDeathNoticeIcon_Inverted : kDeathNoticeIcon_Standard ); + m_DeathNotices[iMsg].bCrit = true; + m_DeathNotices[iMsg].iconCritDeath = GetIcon("d_crit", bLocalPlayerInvolved ? kDeathNoticeIcon_Inverted : kDeathNoticeIcon_Standard); } - else if ( event->GetInt( "damagebits" ) & DMG_CRITICAL ) + else if ( event->GetInt( "death_flags" ) & TF_DEATH_AUSTRALIUM ) { - m_DeathNotices[iMsg].bCrit= true; - m_DeathNotices[iMsg].iconCritDeath = GetIcon( "d_crit", bLocalPlayerInvolved ? kDeathNoticeIcon_Inverted : kDeathNoticeIcon_Standard ); + m_DeathNotices[iMsg].bCrit= false; + m_DeathNotices[iMsg].iconCritDeath = GetIcon( "d_australium", bLocalPlayerInvolved ? kDeathNoticeIcon_Inverted : kDeathNoticeIcon_Standard ); } else { From efa6643af9be58bd8660a14aaf97b038806b5ce1 Mon Sep 17 00:00:00 2001 From: Sergey Syrtsev Date: Sat, 28 Mar 2026 15:38:24 +0300 Subject: [PATCH 2/2] Minor consistency changes --- src/game/client/tf/hud_basedeathnotice.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/client/tf/hud_basedeathnotice.cpp b/src/game/client/tf/hud_basedeathnotice.cpp index 44a31204db0..efbf83ffaeb 100644 --- a/src/game/client/tf/hud_basedeathnotice.cpp +++ b/src/game/client/tf/hud_basedeathnotice.cpp @@ -489,19 +489,19 @@ void CHudBaseDeathNotice::FireGameEvent( IGameEvent *event ) bLocalPlayerInvolved = true; } - if (event->GetInt("damagebits") & DMG_CRITICAL) + if ( event->GetInt( "damagebits" ) & DMG_CRITICAL ) { m_DeathNotices[iMsg].bCrit = true; - m_DeathNotices[iMsg].iconCritDeath = GetIcon("d_crit", bLocalPlayerInvolved ? kDeathNoticeIcon_Inverted : kDeathNoticeIcon_Standard); + m_DeathNotices[iMsg].iconCritDeath = GetIcon( "d_crit", bLocalPlayerInvolved ? kDeathNoticeIcon_Inverted : kDeathNoticeIcon_Standard ); } else if ( event->GetInt( "death_flags" ) & TF_DEATH_AUSTRALIUM ) { - m_DeathNotices[iMsg].bCrit= false; + m_DeathNotices[iMsg].bCrit = false; m_DeathNotices[iMsg].iconCritDeath = GetIcon( "d_australium", bLocalPlayerInvolved ? kDeathNoticeIcon_Inverted : kDeathNoticeIcon_Standard ); } else { - m_DeathNotices[iMsg].bCrit= false; + m_DeathNotices[iMsg].bCrit = false; m_DeathNotices[iMsg].iconCritDeath = NULL; }