Upvote Upvoted 14 Downvote Downvoted
1 2 3
Uber Tracking Hud Mod
posted in Customization
1
#1
0 Frags +

http://www.reddit.com/r/truetf2/comments/26fkuu/i_created_a_hud_based_meter_for_keeping_track_of/

As a medic I often find it hard keeping track of when the enemy medic is able to have full uber. Playing around with hud animations I found them to be quite precise. I have made a simple 40 second hud animation (with 32 second mark for kritz/quickfix) to show simply when you could have full ubercharge if you were building as effecient as possible. The great thing about hud animations is that they work regardless of sv_pure and if the wait command is enabled.

To do this I simply added a bar below the ubercharge bar (only visible when using a medigun / ubersaw). The top bar works just as you would expect. The animation can be started by triggering the "MenuClose" Event, this event is triggered when you close menu's such as the voice chat commands menu. In this case I have used the r key to use a "script" to trigger this animation to start.

alias +uber_counter "voice_menu_1"

alias -uber_counter "voice_menu_1"

bind r +uber_counter

After that the bottom bar will start to fill automatically as well. The bar can be reset at any time by pressing r again. When the dark grey area of the bar is filled enough time has passed (32s) to get 100% kritz/quickfix and when both the dark grey and light grey portions of the bar are filled enough time has passed (40s) to get 100% uber.

I made this by modififying yahud. I will not redistribute my complete modified yahud because there might be some legal issues with the fonts used however I can give you the just the files I modified: (Download).

Since it is only 2 files I modified I assume those who know a bit about tf2 huds would have little problem figuring out how I made the animation so I will not go into detail.

Customized HUDS

Yahud (only 2 files)
Broeselhud
MedHud
Rayshud
Hudas Iscariote

HUDS I might look into (no promises)

PVhud
EveHud
7Hud

omphud

If you want me to add the bar to another hud, just leave a comment below and I will see what I can do.
http://www.reddit.com/r/truetf2/comments/26fkuu/i_created_a_hud_based_meter_for_keeping_track_of/

[quote]As a medic I often find it hard keeping track of when the enemy medic is able to have full uber. Playing around with hud animations I found them to be quite precise. I have made a simple 40 second hud animation (with 32 second mark for kritz/quickfix) to show simply when you could have full ubercharge if you were building as effecient as possible. The great thing about hud animations is that they work regardless of sv_pure and if the wait command is enabled.

To do this I simply added a bar below the ubercharge bar (only visible when using a medigun / ubersaw). The top bar works just as you would expect. The animation can be started by triggering the "MenuClose" Event, this event is triggered when you close menu's such as the voice chat commands menu. In this case I have used the r key to use a "script" to trigger this animation to start.

alias +uber_counter "voice_menu_1"

alias -uber_counter "voice_menu_1"

bind r +uber_counter

After that the bottom bar will start to fill automatically as well. The bar can be reset at any time by pressing r again. When the dark grey area of the bar is filled enough time has passed (32s) to get 100% kritz/quickfix and when both the dark grey and light grey portions of the bar are filled enough time has passed (40s) to get 100% uber.

I made this by modififying yahud. I will not redistribute my complete modified yahud because there might be some legal issues with the fonts used however I can give you the just the files I modified: (Download).

Since it is only 2 files I modified I assume those who know a bit about tf2 huds would have little problem figuring out how I made the animation so I will not go into detail.

Customized HUDS

Yahud (only 2 files)
Broeselhud
MedHud
Rayshud
Hudas Iscariote

HUDS I might look into (no promises)

PVhud
EveHud
7Hud

omphud

If you want me to add the bar to another hud, just leave a comment below and I will see what I can do.
[/quote]
2
#2
25 Frags +

imagine if they did this for quake, community would riot

imagine if they did this for quake, community would riot
3
#3
8 Frags +

this is in v12 of medhud

Download now!

this is in v12 of medhud

[url=https://github.com/Intellectualbadass/medhud]Download now![/url]
4
#4
11 Frags +

I would consider putting the chargemeter in a file other than MedicCharge.res just so that it can stay visible regardless what weapon you have out, and so it keeps animating when you die and respawn as well.

I would consider putting the chargemeter in a file other than MedicCharge.res just so that it can stay visible regardless what weapon you have out, and so it keeps animating when you die and respawn as well.
5
#5
8 Frags +
grapeI would consider putting the chargemeter in a file other than MedicCharge.res just so that it can stay visible regardless what weapon you have out, and so it keeps animating when you die and respawn as well.

In medHUD it is in the hudlayout.res so maincallers that don't necessarily play medic can use it as well.

[quote=grape]I would consider putting the chargemeter in a file other than MedicCharge.res just so that it can stay visible regardless what weapon you have out, and so it keeps animating when you die and respawn as well.[/quote]
In medHUD it is in the hudlayout.res so maincallers that don't necessarily play medic can use it as well.
6
#6
-1 Frags +

I guess it'd be a good time to ask if any more notable people could ask Valve to make the command testhudanim not an sv_cheats 1 command.

I made this thing almost exactly the same a few months ago (along with other animations) but didn't really do anything with it because it tended to break a lot.

I guess it'd be a good time to ask if any more notable people could ask Valve to make the command testhudanim not an sv_cheats 1 command.

I made this thing almost exactly the same a few months ago (along with other animations) but didn't really do anything with it because it tended to break a lot.
7
#7
4 Frags +

If you die, the bar stops filling upon respawn.

If you die, the bar stops filling upon respawn.
8
#8
0 Frags +

If you don't want the bar to always be there (like me) then follow this.

Put the following under

RunEvent ClearUberBar 0.0

in the

event FillUberBar

part of hudanimations_tf.txt:

 Animate UberBoxBackDrop1 alpha "255" Linear 0.00 0.001
 Animate UberBoxBackDrop2 alpha "255" Linear 0.00 0.001

Then, in hudmediccharge.res (or somewhere else, like hudlayout.res if you want it to work when you are dead), change the "alpha" values for UberBoxBackDrop1 and UberBoxBackDrop2 to "0".

Finally, put

 Animate UberBoxBackDrop1 alpha "0" Linear 0.00 0.001
 Animate UberBoxBackDrop2 alpha "0" Linear 0.00 0.001

at the top of

event ClearUberBar

This isn't strictly necessary, but I like to be thorough.

Save and start TF2. You should now be able to press 'r' and have the bar show up and start filling. When you die, it will hide itself again.

If you don't want the bar to always be there (like me) then follow this.

Put the following under [code]RunEvent ClearUberBar 0.0[/code] in the [code]event FillUberBar[/code] part of hudanimations_tf.txt:

[code] Animate UberBoxBackDrop1 alpha "255" Linear 0.00 0.001
Animate UberBoxBackDrop2 alpha "255" Linear 0.00 0.001[/code]

Then, in hudmediccharge.res (or somewhere else, like hudlayout.res if you want it to work when you are dead), change the "alpha" values for UberBoxBackDrop1 and UberBoxBackDrop2 to "0".

Finally, put
[code] Animate UberBoxBackDrop1 alpha "0" Linear 0.00 0.001
Animate UberBoxBackDrop2 alpha "0" Linear 0.00 0.001[/code]
at the top of [code]event ClearUberBar[/code]
This isn't strictly necessary, but I like to be thorough.

Save and start TF2. You should now be able to press 'r' and have the bar show up and start filling. When you die, it will hide itself again.
9
#9
1 Frags +

To fix the problem of the bar stopping when you respawn I tried to find a second event that a player could force: If you press z twice, you use menuclose and menuopen, but if you press z and then press a key on the menu, 2 for example, you use menuclose, menuopen, and menupulse.

I placed "stopevent FillUberBar 0.0" in menuopen, "RunEvent FillUberBar 0.0" in menuclose, and "RunEvent ClearUberBar 0.01" in menupulse. I thought that if I pressed z twice, it'd pause after the first keypress and resume after the 2nd keypress and that I'd be able to resume the progress of the bar after respawning. However the bar just remains still after respawning, even after RunEvent FillUberBar 0.0 is run again.

I removed the StopEvent inside menuopen but that didnt stop the bar from not moving after the 2nd RunEvent. Since I dont understand events/animations, does anyone have any ideas on fixing this?

edit: I already have uberbox 1-99 and the uberboxbackdrops in hudlayout.res, the bar shows up for every class, but it also stops moving after you respawn (not when you die), and none of my attempted fixes worked.

edit2: Apparently the bar moves again after a delay (I think it's the amount of time it took to fill the boxes that were filled in before you died even though the boxes remained filled in)

To fix the problem of the bar stopping when you respawn I tried to find a second event that a player could force: If you press z twice, you use menuclose and menuopen, but if you press z and then press a key on the menu, 2 for example, you use menuclose, menuopen, and menupulse.

I placed "stopevent FillUberBar 0.0" in menuopen, "RunEvent FillUberBar 0.0" in menuclose, and "RunEvent ClearUberBar 0.01" in menupulse. I thought that if I pressed z twice, it'd pause after the first keypress and resume after the 2nd keypress and that I'd be able to resume the progress of the bar after respawning. However the bar just remains still after respawning, even after RunEvent FillUberBar 0.0 is run again.

I removed the StopEvent inside menuopen but that didnt stop the bar from not moving after the 2nd RunEvent. Since I dont understand events/animations, does anyone have any ideas on fixing this?

edit: I already have uberbox 1-99 and the uberboxbackdrops in hudlayout.res, the bar shows up for every class, but it also stops moving after you respawn (not when you die), and none of my attempted fixes worked.

edit2: Apparently the bar moves again after a delay (I think it's the amount of time it took to fill the boxes that were filled in before you died even though the boxes remained filled in)
10
#10
0 Frags +
UniverserulerTo fix the problem of the bar stopping when you respawn I tried to find a second event that a player could force: If you press z twice, you use menuclose and menuopen, but if you press z and then press a key on the menu, 2 for example, you use menuclose, menuopen, and menupulse.

I placed "stopevent FillUberBar 0.0" in menuopen, "RunEvent FillUberBar 0.0" in menuclose, and "RunEvent ClearUberBar 0.01" in menupulse. I thought that if I pressed z twice, it'd pause after the first keypress and resume after the 2nd keypress and that I'd be able to resume the progress of the bar after respawning. However the bar just remains still after respawning, even after RunEvent FillUberBar 0.0 is run again.

I removed the StopEvent inside menuopen but that didnt stop the bar from not moving after the 2nd RunEvent. Since I dont understand events/animations, does anyone have any ideas on fixing this?

While this does work, it's so much easier to put it hudlayout or something else that stays up. Then, just use a toggle (you can easily reuse that toggle code I posted and put it in menupulse) then use your method to toggle it on and off for non-medic classes.

[quote=Universeruler]To fix the problem of the bar stopping when you respawn I tried to find a second event that a player could force: If you press z twice, you use menuclose and menuopen, but if you press z and then press a key on the menu, 2 for example, you use menuclose, menuopen, and menupulse.

I placed "stopevent FillUberBar 0.0" in menuopen, "RunEvent FillUberBar 0.0" in menuclose, and "RunEvent ClearUberBar 0.01" in menupulse. I thought that if I pressed z twice, it'd pause after the first keypress and resume after the 2nd keypress and that I'd be able to resume the progress of the bar after respawning. However the bar just remains still after respawning, even after RunEvent FillUberBar 0.0 is run again.

I removed the StopEvent inside menuopen but that didnt stop the bar from not moving after the 2nd RunEvent. Since I dont understand events/animations, does anyone have any ideas on fixing this?[/quote]
While this does work, it's so much easier to put it hudlayout or something else that stays up. Then, just use a toggle (you can easily reuse that toggle code I posted and put it in menupulse) then use your method to toggle it on and off for non-medic classes.
11
#11
3 Frags +

it's legal? don't worry?

it's legal? don't worry?
12
#12
0 Frags +

So, what would be the best way to toggle this with the main menu? That way you could probably let people bring this up/hide it again, just by pressing a button and without making a config trip to autoexec the first time they use the hud.

Would the be a better way than

"Command"  "engine alias "+uber_counter" "voice_menu_1"; alias "-uber_counter" "voice_menu_1"; +uber_counter" 

?

So, what would be the best way to toggle this with the main menu? That way you could probably let people bring this up/hide it again, just by pressing a button and without making a config trip to autoexec the first time they use the hud.

Would the be a better way than

[code]"Command" "engine alias "+uber_counter" "voice_menu_1"; alias "-uber_counter" "voice_menu_1"; +uber_counter" [/code]?
13
#13
1 Frags +

Could you consider adding it to BladeHUD?
http://teamfortress.tv/thread/15804/bladehud

Could you consider adding it to BladeHUD?
http://teamfortress.tv/thread/15804/bladehud
14
#14
1 Frags +
La_maisonSo, what would be the best way to toggle this with the main menu? That way you could probably let people bring this up/hide it again, just by pressing a button and without making a config trip to autoexec the first time they use the hud.

Have a button's command be "engine exec ubertimerconfig"
You'd either need to work with execing log files or have a second button to undo it though.

[quote=La_maison]So, what would be the best way to toggle this with the main menu? That way you could probably let people bring this up/hide it again, just by pressing a button and without making a config trip to autoexec the first time they use the hud.[/quote]
Have a button's command be "engine exec ubertimerconfig"
You'd either need to work with execing log files or have a second button to undo it though.
15
#15
0 Frags +
JarateKingLa_maisonSo, what would be the best way to toggle this with the main menu? That way you could probably let people bring this up/hide it again, just by pressing a button and without making a config trip to autoexec the first time they use the hud.Have a button's command be "engine exec ubertimerconfig"
You'd either need to work with execing log files or have a second button to undo it though.

Thanks, that looks to be the best one.

[quote=JarateKing][quote=La_maison]So, what would be the best way to toggle this with the main menu? That way you could probably let people bring this up/hide it again, just by pressing a button and without making a config trip to autoexec the first time they use the hud.[/quote]
Have a button's command be "engine exec ubertimerconfig"
You'd either need to work with execing log files or have a second button to undo it though.[/quote]

Thanks, that looks to be the best one.
16
#16
2 Frags +
IntellectualgrapeI would consider putting the chargemeter in a file other than MedicCharge.res just so that it can stay visible regardless what weapon you have out, and so it keeps animating when you die and respawn as well.In medHUD it is in the hudlayout.res so maincallers that don't necessarily play medic can use it as well.

Do you think you could go a bit more into where stuff goes? Trying to integrate into my hud with the option for all classes as well.

[quote=Intellectual][quote=grape]I would consider putting the chargemeter in a file other than MedicCharge.res just so that it can stay visible regardless what weapon you have out, and so it keeps animating when you die and respawn as well.[/quote]
In medHUD it is in the hudlayout.res so maincallers that don't necessarily play medic can use it as well.[/quote]

Do you think you could go a bit more into where stuff goes? Trying to integrate into my hud with the option for all classes as well.
17
#17
3 Frags +

This is awesome. Thanks so much for making this.

This is awesome. Thanks so much for making this.
18
#18
0 Frags +
AndKennethDo you think you could go a bit more into where stuff goes? Trying to integrate into my hud with the option for all classes as well.

I could be wrong but it probably has something to do with this:

https://github.com/Intellectualbadass/medHUD/commit/bef8718456a7fe620ec111b07ca3a2c20d9f2cb6

[quote=AndKenneth]Do you think you could go a bit more into where stuff goes? Trying to integrate into my hud with the option for all classes as well.[/quote]

I could be wrong but it probably has something to do with this:

https://github.com/Intellectualbadass/medHUD/commit/bef8718456a7fe620ec111b07ca3a2c20d9f2cb6
19
#19
6 Frags +

I edited it so the bar is hidden until pressed then hides again after fully running through. Also edited the alpha of the background a bit.

Copy http://pastebin.com/ywuVKugX into hudmediccharge.res for just medic or hudlayout.res for all classes.

Copy http://pastebin.com/zP99fP1H into hudanimations_tf.txt

Edit hudanimations_tf.txt add under event MenuClose

RunEvent FillUberBar 0.0

Use the same script to show the bar and start the timer.

alias +uber_counter "voice_menu_1"
alias -uber_counter "voice_menu_1"
bind r +uber_counter
I edited it so the bar is hidden until pressed then hides again after fully running through. Also edited the alpha of the background a bit.

Copy http://pastebin.com/ywuVKugX into hudmediccharge.res for just medic or hudlayout.res for all classes.

Copy http://pastebin.com/zP99fP1H into hudanimations_tf.txt

Edit hudanimations_tf.txt add under event MenuClose [code]RunEvent FillUberBar 0.0[/code]

Use the same script to show the bar and start the timer.
[code]alias +uber_counter "voice_menu_1"
alias -uber_counter "voice_menu_1"
bind r +uber_counter[/code]
20
#20
Tip of the Hats
4 Frags +
BenNZL<snip>

I did this exactly but am still having an issue with it stopping when I die; any ideas, or is this still normal?

Also, not really sure if it's worth posting but I went ahead and added on some lines which (in my head, at least) make it easier to quickly glance at:

http://i.imgur.com/513a0rY.jpg


For the black bars, change the fillcolor to "0 0 0 255" under UberBox29, UberBox59, and UberBox89.
For the green bar (for when a kritz would be ready), change the fillcolor to "0 255 63 255" under UberBox95.

(these are found in Ben's first link)

[quote=BenNZL]<snip>[/quote]
I did this exactly but am still having an issue with it stopping when I die; any ideas, or is this still normal?

Also, not really sure if it's worth posting but I went ahead and added on some lines which (in my head, at least) make it easier to quickly glance at:
[url=http://i.imgur.com/nXaNNC9.jpg][img]http://i.imgur.com/513a0rY.jpg[/img][/url]
For the black bars, change the fillcolor to "0 0 0 255" under UberBox29, UberBox59, and UberBox89.
For the green bar (for when a kritz would be ready), change the fillcolor to "0 255 63 255" under UberBox95.

(these are found in Ben's [url=http://pastebin.com/ywuVKugX]first link[/url])
21
#21
4 Frags +

Oh I don't need to use this autohotkey timer any more? =D

Oh I don't need to use this autohotkey timer any more? =D
22
#22
2 Frags +

nice one whisker,
and yea there's still no known fix for it pausing after you respawn

nice one whisker,
and yea there's still no known fix for it pausing after you respawn
23
#23
3 Frags +

Author here.

I have stopped taking request for editing huds to include this bar. To hud makers who want to include this bar with different size/position color; I made a little script to generate all elements of the bar and the animation here: https://github.com/martijnterpstra/medHUD/blob/master/bar_generator.py

I already have a few other things I am working on but if you have any suggestions, please let me know.

Author here.

I have stopped taking request for editing huds to include this bar. To hud makers who want to include this bar with different size/position color; I made a little script to generate all elements of the bar and the animation here: https://github.com/martijnterpstra/medHUD/blob/master/bar_generator.py

I already have a few other things I am working on but if you have any suggestions, please let me know.
24
#24
2 Frags +

not sure if you're already working on it

Lockricestill no known fix for it pausing after you respawn
not sure if you're already working on it

[quote=Lockrice]still no known fix for it pausing after you respawn[/quote]
25
#25
0 Frags +
Lockricenot sure if you're already working on it
Lockricestill no known fix for it pausing after you respawn

I am currently working on a pause/resume feature so you can pause it before you respawn and resume it right after. May not work, but I'm trying.

[quote=Lockrice]not sure if you're already working on it

[quote=Lockrice]still no known fix for it pausing after you respawn[/quote][/quote]
I am currently working on a pause/resume feature so you can pause it before you respawn and resume it right after. May not work, but I'm trying.
26
#26
0 Frags +
Lockricenot sure if you're already working on it
Lockricestill no known fix for it pausing after you respawn

I am aware of it but do not know how to fix it.

[quote=Lockrice]not sure if you're already working on it

[quote=Lockrice]still no known fix for it pausing after you respawn[/quote][/quote]

I am aware of it but do not know how to fix it.
27
#27
1 Frags +

Aw, man. One of my favorite things to do as medic has just got easier.

Aw, man. One of my favorite things to do as medic has just got easier.
28
#28
-18 Frags +

i masturbate

i masturbate
29
#29
3 Frags +
AdmirableOh I don't need to use this autohotkey timer any more? =D

I was going to make one before I read this thread, would you mind linking yours?

[quote=Admirable]Oh I don't need to use this autohotkey timer any more? =D[/quote]
I was going to make one before I read this thread, would you mind linking yours?
30
#30
0 Frags +

Little off topic but couldn't you then use the menuclose animation to toggle a hud crosshair on/off as well?

Little off topic but couldn't you then use the menuclose animation to toggle a hud crosshair on/off as well?
1 2 3
Please sign in through STEAM to post a comment.