Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/game/client/tf/hud_basedeathnotice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down Expand Up @@ -489,19 +489,19 @@ 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
{
m_DeathNotices[iMsg].bCrit= false;
m_DeathNotices[iMsg].bCrit = false;
m_DeathNotices[iMsg].iconCritDeath = NULL;
}

Expand Down