Tuesday, August 23, 2011

Is there a way to increase the number of items displayed in the kill feed?

Question

So I'm getting a little tired of seeing my reflect multi-kills being quickly pushed away by other players' kills and even revenges/dominations I attain, like this revenge kill:

(Yes, that's the notorious team color HUD bug. I hate it too.)

The kill feed by default only displays 4 items; although my deaths and kills stay a little longer on the feed they get pushed away pretty quickly by too many things.

Is there an add-on I can use or a CVAR I can adjust to increase how many items the kill feed displays? I have a fairly spacious display anyway, so adding a couple more won't hurt.

Answer

As noted by Lysarion in the comments, the file to modify is hudlayout.res, which is found in the /tf/scripts folder in the team fortress 2 content.gcf archive.

Extracting and searching the file, I find the following field:

HudDeathNotice
{
    "fieldName" "HudDeathNotice"
    // ...    "MaxDeathNotices" "4"
    "IconScale"   "0.35"
    "LineHeight"      "16"
    "LineSpacing"     "4"
    "CornerRadius"    "3"
    "RightJustify"    "1"   // If 1, draw notices from the right    // ...
}

The HudDeathNotice field defines the appearance of the kill feed. You'll see at a glance the variable that tells the game how many items to display:

    "MaxDeathNotices" "4"

So all I do is change its value to "6", save the modified hudlayout.res in the /tf/scripts folder in my steamapps user folder, and I'll see a maximum of 6 items in the kill feed.

No comments:

Post a Comment