Tuesday, 1 May 2012

Minimalism

I might make it a regular thing, it might just be a single burst of content. I don't know what I'm actually planning to do with this blog in future, but one way or the other, it was and still is supposed to be sort of a knowledge base for those striving to get better or back on the right path. This one ain't gonna be one of those senseless essays I've shared here a few times already, rather something I picked up today. It may only seem attractive to those of you who are crazy about minimalistic HUDs, but it's still worth a try for everyone.

There's a common understanding among scouts that whatever you do, you want to walk around buffed. 125HP is not a lot, it's two half-meatshots or a meatshot and a small amount of splash damage. Simply put, nothing. I know we are nimble and agile and like to spam A and D a lot, but the representatives of other classes are aware how stupidly overpowered our meat cannon is. They are getting used to us doing some spastic dances in front of their noob tubes and much better at denying us a chance to make them lose their nerves. Not to mention that scout duels are, in fact, in a huge part random and you want to get all the advantages you can before you enter one. So, we spam the whichever button we have bound voicemenu 0 0 to. We should do that a lot, a lot more than voicemenu 1 4.

Let's be honest, we might be like those super cool jet fighters, pew pewing left and right, but we are also made of glass. Not of the toughened type to say the least. That being said, the actual numbers don't really bother us, right? We want to get the buffs, then we're ready to go. Well, how about removing the numbers and leaving only a simple indicator of the status of our health? Or, going even further, setting it to only show two colours - red when not buffed and green when buffed? It can be a transparent cross in the bottom left corner of the screen, a narrow frame on the edges, some sort of crosshair's background or even the crosshair itself - whatever you want. How on Earth could something like this be useful, you might ask. It will certainly increase your health awareness, you won't push into a previously unscouted area before healing up, you won't break your focus to check if it's the time to get the fuck out. Simply, put your low health indicator's threshold on around 100HP and you will know when you can get meatshotted to death. Same thing can be done with the ammo indicator - I don't know about you, but I rarely get caught surprised by the number of remaining shots I have in the clip reaching zero right when I'm approaching the target. The only information (which doesn't appear too often) I would make use of is the one stating I am low on overall ammo, which can be provided to me the same way the health status can.

I'm not sure how viable that thing would be in the long run, but I'm more than willing to give it a try. It will surely discourage me from pushing the front/the side without appropriate preparations.

For those of you who have no clue what to do:
  • To change your low health indicator's threshold, you have to look at this paragraph in the HudPlayerHealth.res.

    "HudPlayerHealth"
    {
        "ControlName" "EditablePanel"
        "fieldName" "HudPlayerHealth"
        "xpos" "c-340"
        "ypos" "r89"
        "zpos" "2"
        "wide" "300"
        "tall" "120"
        "visible" "1"
        "enabled" "1"
        "HealthBonusPosAdj" "35"
        "HealthDeathWarning" "0.64" // <-- This number, in percentage, indicates at what health the number turns red; 0.64 is 80HP, while 0.84 should be 105HP.
        "HealthDeathWarningColor" "HUDDeathWarning"
    }
  • To disable the health value indicator, you need to change the "visible" property of PlayerStatusHealthValue, PlayerStatusHealthValueBG, PlayerStatusHealthValueShadow and others, even remotely resembling the idea of cluttering your screen with unimportant information, to "0".
  • If you want to add the additional health status indicator, unless you actually have an idea what the resource files look and work like, you might just want to copy a paragraph defining your new crosshair from hudayout.res file in the scripts folder. Now this is where the hard part begins. The colour of it will change according to your health only if you define appropriate HUD events that are triggered whenever your health drops or jumps into a certain range (hurt, normal, buffed). To do that, you have to edit the HudAnimations_tf.txt file from the same folder. The sections you will be interested in are named HudHealthBonusPulse (the event being triggered upon being buffed), HudHealthBonusPulseStop (the event being triggered upon losing the buff), HudHealthDyingPulse and HudHealthDyingPulseStop (the respective events related to being hurt). In all of them, you'll want to add the following line:

    Animate the_FieldName_of_your_crosshair FgColor "r g b a" Linear 0.0 0.0001

    the_fieldName_of_your_crosshair is, as the name indicates, the value of the property FieldName in your crosshair's section in HudPlayerHealth.res. r, g, b and a set the values of red, green, blue and alpha levels respectively. Hint: in both of the Stop events, the line should have the colour set to the usual colour of your crosshair.

I don't expect those explanations to be ideal for everyone, but I think they'll do. In case of questions, leave a comment on the post and I should get back to you soon.

Also, the most important part - use your head and backup your files.

No comments:

Post a Comment