@@ -380,7 +380,7 @@ void CNEOHud_DeathNotice::SetDeathNoticeItemDimensions(DeathNoticeItem* deathNot
380380 }
381381 else
382382 { // Player killed message
383- if (deathNoticeItem->Killer .iEntIndex != 0 )
383+ if (deathNoticeItem->Killer .iEntIndex != 0 && !deathNoticeItem-> bSuicide )
384384 {
385385 surface ()->GetTextSize (g_hFontKillfeed, deathNoticeItem->Killer .szName , width, height);
386386 totalWidth += width;
@@ -392,7 +392,7 @@ void CNEOHud_DeathNotice::SetDeathNoticeItemDimensions(DeathNoticeItem* deathNot
392392 surface ()->GetTextSize (g_hFontKillfeed, ASSIST_SEPARATOR, width, height);
393393 totalWidth += width;
394394 }
395- if (deathNoticeItem->Victim .iEntIndex != 0 && !deathNoticeItem-> bSuicide )
395+ if (deathNoticeItem->Victim .iEntIndex != 0 )
396396 {
397397 surface ()->GetTextSize (g_hFontKillfeed, deathNoticeItem->Victim .szName , width, height);
398398 totalWidth += width + spaceLength;
@@ -453,12 +453,13 @@ void CNEOHud_DeathNotice::DrawPlayerDeath(int i)
453453
454454 surface ()->DrawSetTextFont (g_hFontKillfeed);
455455 // Killer
456- if (m_DeathNotices[i].Killer .iEntIndex != 0 )
456+ if (m_DeathNotices[i].Killer .iEntIndex != 0 && !m_DeathNotices[i]. bSuicide )
457457 {
458458 SetColorForNoticePlayer (m_DeathNotices[i].Killer .iTeam );
459459 surface ()->DrawSetTextFont (g_hFontKillfeed);
460460 surface ()->DrawPrintText (m_DeathNotices[i].Killer .szName , m_DeathNotices[i].Killer .iNameLength );
461461 }
462+
462463 // Assister
463464 if (m_DeathNotices[i].Assist .iEntIndex != 0 )
464465 {
@@ -471,16 +472,7 @@ void CNEOHud_DeathNotice::DrawPlayerDeath(int i)
471472 }
472473
473474 // Icons
474- if (m_DeathNotices[i].bSuicide )
475- {
476- surface ()->DrawSetTextFont (g_hFontKillfeed);
477- surface ()->DrawPrintText (L" " , 1 );
478- surface ()->DrawSetTextFont (g_hFontKillfeedIcons);
479- surface ()->DrawSetTextColor (COLOR_NEO_ORANGE);
480- wchar_t icon = NEO_HUD_DEATHNOTICEICON_SHORTBUS;
481- surface ()->DrawPrintText (&icon, 1 );
482- }
483- else
475+ if (!m_DeathNotices[i].bSuicide )
484476 {
485477 surface ()->DrawSetTextFont (g_hFontKillfeed);
486478 surface ()->DrawPrintText (L" " , 1 );
@@ -506,7 +498,7 @@ void CNEOHud_DeathNotice::DrawPlayerDeath(int i)
506498 }
507499
508500 // Victim
509- if (m_DeathNotices[i].Victim .iEntIndex != 0 && !m_DeathNotices[i]. bSuicide )
501+ if (m_DeathNotices[i].Victim .iEntIndex != 0 )
510502 {
511503 surface ()->DrawSetTextFont (g_hFontKillfeed);
512504 surface ()->DrawPrintText (L" " , 1 );
@@ -524,6 +516,17 @@ void CNEOHud_DeathNotice::DrawPlayerDeath(int i)
524516 wchar_t icon = NEO_HUD_DEATHNOTICEICON_GHOST;
525517 surface ()->DrawPrintText (&icon, 1 );
526518 }
519+
520+ // Suicide Icon
521+ if (m_DeathNotices[i].bSuicide )
522+ {
523+ surface ()->DrawSetTextFont (g_hFontKillfeed);
524+ surface ()->DrawPrintText (L" " , 1 );
525+ surface ()->DrawSetTextFont (g_hFontKillfeedIcons);
526+ surface ()->DrawSetTextColor (COLOR_NEO_ORANGE);
527+ wchar_t icon = NEO_HUD_DEATHNOTICEICON_SHORTBUS;
528+ surface ()->DrawPrintText (&icon, 1 );
529+ }
527530}
528531
529532void CNEOHud_DeathNotice::DrawPlayerRankChange (int i)
0 commit comments