Upvote Upvoted 18 Downvote Downvoted
1 2
How to use multiple HUD crosshairs.
posted in Customization
1
#1
10 Frags +

There's a way to do this with tf/resources/ui/HudAchievementTrackerItem.res and it's a lot better than cl_hud_minmode as it doesn't freeze up your game when you switch it and works just like you'd want it to.

Here are the steps:

1. Delete everything in your HudAchievementTrackerItem.res and replace it with this: http://pastebin.com/aDHB1nRp. Make sure it put your crosshair in the indicated section and delete the old crosshair in your hudlayout.res.

2. In your /tf/scripts/hudlayout.res ctrl+f for "HudAchievementTracker". Once you found it replace the entire thing titled "HudAchievementTracker" along with everything in the brackets with this: http://pastebin.com/ExSaAe3X

3. The trigger to turn the crosshair on is hud_achievement_tracker 1. To turn it off it's hud_achievement_tracker 0. Use a script that switches your weapons like mine for example: http://pastebin.com/KzR3yxCd

4. In game set an all-class achievement to get tracked so it can enable the achievement tracker.

I don't know how to remove the original hud crosshair so you'll have to use it too or cover it up. This is good for some people who want to add a ( ) kind of thing to they're normal + kind of crosshairs so you can toggle ( + ) and +.

There's a way to do this with tf/resources/ui/HudAchievementTrackerItem.res and it's [b]a lot[/b] better than cl_hud_minmode as it doesn't freeze up your game when you switch it and works just like you'd want it to.

Here are the steps:

1. Delete everything in your HudAchievementTrackerItem.res and replace it with this: http://pastebin.com/aDHB1nRp. Make sure it put your crosshair in the indicated section and delete the old crosshair in your hudlayout.res.

2. In your /tf/scripts/hudlayout.res ctrl+f for "HudAchievementTracker". Once you found it replace the entire thing titled "HudAchievementTracker" along with everything in the brackets with this: http://pastebin.com/ExSaAe3X

3. The trigger to turn the crosshair on is hud_achievement_tracker 1. To turn it off it's hud_achievement_tracker 0. Use a script that switches your weapons like mine for example: http://pastebin.com/KzR3yxCd

4. In game set an all-class achievement to get tracked so it can enable the achievement tracker.

I don't know how to remove the original hud crosshair so you'll have to use it too or cover it up. This is good for some people who want to add a ( ) kind of thing to they're normal + kind of crosshairs so you can toggle ( + ) and +.
2
#2
-1 Frags +

New huds don't already do this? Gmang has had an achievement crosshair since forever.

New huds don't already do this? Gmang has had an achievement crosshair since forever.
3
#3
2 Frags +
brownymasterNew huds don't already do this? Gmang has had an achievement crosshair since forever.

Gmang's the only I knew of that ever did it.

[quote=brownymaster]New huds don't already do this? Gmang has had an achievement crosshair since forever.[/quote]
Gmang's the only I knew of that ever did it.
4
#4
-1 Frags +

Removed the whole HUD for me, also not working.

Removed the whole HUD for me, also not working.
5
#5
0 Frags +

I've been using this for a while. Added that cvar into every class config and just adjust to turn the crosshair off/on.

I've been using this for a while. Added that cvar into every class config and just adjust to turn the crosshair off/on.
6
#6
0 Frags +

Also works with broesel's crosshair switcher if anyone is using that here.

Example:

alias scout_primary       "small; yellow; cross; off; hud_achievement_tracker 1"
alias scout_secondary     "small; yellow; cross; off; hud_achievement_tracker 0"
alias scout_melee         "small; yellow; cross; 90; hud_achievement_tracker 0"
Also works with broesel's crosshair switcher if anyone is using that here.

Example:
[code]alias scout_primary "small; yellow; cross; off; hud_achievement_tracker 1"
alias scout_secondary "small; yellow; cross; off; hud_achievement_tracker 0"
alias scout_melee "small; yellow; cross; 90; hud_achievement_tracker 0"[/code]
7
#7
-1 Frags +

http://www.file-upload.net/download-7909633/backup-broesel.rar.html

If anyone got some spare-time to try it for my customized HUD, i tried everything but its still removing my HUD.

http://www.file-upload.net/download-7909633/backup-broesel.rar.html

If anyone got some spare-time to try it for my customized HUD, i tried everything but its still removing my HUD.
8
#8
-1 Frags +

crosshair 0 removes the default crosshair, if you're using someone elses cfg and its not going away delete the cl_crosshair_file commands and replace it with crosshair 0

crosshair 0 removes the default crosshair, if you're using someone elses cfg and its not going away delete the cl_crosshair_file commands and replace it with crosshair 0
9
#9
-1 Frags +

What do you mean set an all class achievement to get tracked?

What do you mean set an all class achievement to get tracked?
10
#10
-1 Frags +

What I know of this method is that it uses the achievement tracker overlay to place hud elements such as xhairs.

So to have the xhair enabled, you need to set the achievements up

What I know of this method is that it uses the achievement tracker overlay to place hud elements such as xhairs.

So to have the xhair enabled, you need to set the achievements up
11
#11
0 Frags +

Yo, yahud doesn't have a tf/resources/ui/HudAchievementTrackerItem.res

What do I do to make it work with yahud (5MD version)?

Yo, yahud doesn't have a tf/resources/ui/HudAchievementTrackerItem.res

What do I do to make it work with yahud (5MD version)?
12
#12
-1 Frags +
sildeezyYo, yahud doesn't have a tf/resources/ui/HudAchievementTrackerItem.res

What do I do to make it work with yahud (5MD version)?

Make that folder

[quote=sildeezy]Yo, yahud doesn't have a tf/resources/ui/HudAchievementTrackerItem.res

What do I do to make it work with yahud (5MD version)?[/quote]
Make that folder
13
#13
-1 Frags +

The file (Hudachievementtrackeritem.res) didn't exist for me so I made my own but was unable to get the crosshair to show. I was able to get the tracker to appear and disappear with the command though. Also, an unfortunate consequence is that you have an achievement being tracked on your screen. My HUD has the achievement tucked away in the corner but it would be nice if wasn't there...

The file (Hudachievementtrackeritem.res) didn't exist for me so I made my own but was unable to get the crosshair to show. I was able to get the tracker to appear and disappear with the command though. Also, an unfortunate consequence is that you have an achievement being tracked on your screen. My HUD has the achievement tucked away in the corner but it would be nice if wasn't there...
14
#14
0 Frags +
MR_SLINThe file (Hudachievementtrackeritem.res) didn't exist for me so I made my own but was unable to get the crosshair to show. I was able to get the tracker to appear and disappear with the command though. Also, an unfortunate consequence is that you have an achievement being tracked on your screen. My HUD has the achievement tucked away in the corner but it would be nice if wasn't there...

http://pastebin.com/0Y43jxG2 add this to that file (op linked a similar version)

also you added your crosshair correctly right?

[quote=MR_SLIN]The file (Hudachievementtrackeritem.res) didn't exist for me so I made my own but was unable to get the crosshair to show. I was able to get the tracker to appear and disappear with the command though. Also, an unfortunate consequence is that you have an achievement being tracked on your screen. My HUD has the achievement tucked away in the corner but it would be nice if wasn't there...[/quote]
http://pastebin.com/0Y43jxG2 add this to that file (op linked a similar version)

also you added your crosshair correctly right?
15
#15
-1 Frags +
PacifistsildeezyYo, yahud doesn't have a tf/resources/ui/HudAchievementTrackerItem.res

What do I do to make it work with yahud (5MD version)?
Make that folder

I had already done that. Didn't work.

[quote=Pacifist][quote=sildeezy]Yo, yahud doesn't have a tf/resources/ui/HudAchievementTrackerItem.res

What do I do to make it work with yahud (5MD version)?[/quote]
Make that folder[/quote]

I had already done that. Didn't work.
16
#16
-1 Frags +

Have a config open hud_achievementtracker 1 and make tf2 track an achievement

Have a config open hud_achievementtracker 1 and make tf2 track an achievement
17
#17
0 Frags +

For people who did not have a hudachievementracker.res file there is a good chance that there is information for the file in hudlayout.res

http://puu.sh/4txWY.png

This is what the positioning info in my hudlayout.res file looks like and if you're missing it that could be a reason why it is not showing up.

For people who did not have a hudachievementracker.res file there is a good chance that there is information for the file in hudlayout.res

[img]http://puu.sh/4txWY.png[/img]

This is what the positioning info in my hudlayout.res file looks like and if you're missing it that could be a reason why it is not showing up.
18
#18
-1 Frags +
mthsadMR_SLINThe file (Hudachievementtrackeritem.res) didn't exist for me so I made my own but was unable to get the crosshair to show. I was able to get the tracker to appear and disappear with the command though. Also, an unfortunate consequence is that you have an achievement being tracked on your screen. My HUD has the achievement tucked away in the corner but it would be nice if wasn't there...http://pastebin.com/0Y43jxG2 add this to that file (op linked a similar version)

This fixed it for me -- thanks!

[quote=mthsad][quote=MR_SLIN]The file (Hudachievementtrackeritem.res) didn't exist for me so I made my own but was unable to get the crosshair to show. I was able to get the tracker to appear and disappear with the command though. Also, an unfortunate consequence is that you have an achievement being tracked on your screen. My HUD has the achievement tucked away in the corner but it would be nice if wasn't there...[/quote]
http://pastebin.com/0Y43jxG2 add this to that file (op linked a similar version)[/quote]

This fixed it for me -- thanks!
19
#19
0 Frags +
MR_SLINAlso, an unfortunate consequence is that you have an achievement being tracked on your screen.

That shouldn't be a problem. If done correctly any text about achievements is removed completely.

[quote=MR_SLIN]Also, an unfortunate consequence is that you have an achievement being tracked on your screen.[/quote]
That shouldn't be a problem. If done correctly any text about achievements is removed completely.
20
#20
-2 Frags +

I thought people knew about this already. I use it in my custom HUD with a 3x3 crosshair and a flashing 1x1. I put a gift related achievement in it.

I thought people knew about this already. I use it in my custom HUD with a 3x3 crosshair and a flashing 1x1. I put a gift related achievement in it.
21
#21
3 Frags +

yeah, i'm sure he was really concerned about that 5 months later

yeah, i'm sure he was really concerned about that 5 months later
22
#22
0 Frags +

I'm sorry for bumping this old thread but would anyone be willing to help me with this? I've been trying to get it to work for about an hour now. Thank you

I'm sorry for bumping this old thread but would anyone be willing to help me with this? I've been trying to get it to work for about an hour now. Thank you
23
#23
-1 Frags +
jewbagelsI'm sorry for bumping this old thread but would anyone be willing to help me with this? I've been trying to get it to work for about an hour now. Thank you

What are you having trouble with specifically? Text still on screen, the xhair not showing,etc?

[quote=jewbagels]I'm sorry for bumping this old thread but would anyone be willing to help me with this? I've been trying to get it to work for about an hour now. Thank you[/quote]

What are you having trouble with specifically? Text still on screen, the xhair not showing,etc?
24
#24
-1 Frags +
pwny_jewbagelsI'm sorry for bumping this old thread but would anyone be willing to help me with this? I've been trying to get it to work for about an hour now. Thank you
What are you having trouble with specifically? Text still on screen, the xhair not showing,etc?

I.. um let me just tell u what i did.
1. For step one, I deleted everything from hudachievertrackeritem in resource/ui and replaced with what the op linked and I added my crosshair so it looks like this:
//crosshair start

CrossHairKonrWings
{
"controlName" "CExLabel"
"fieldName" "CrossHairKonrWings"
"visible" "1"
"enabled" "1"
"zpos" "2"

"xpos" "c-28"
"ypos" "c-24"
"wide" "50"
"tall" "51"

"font" "CrossHairKonrWings"
"labelText" "Z"
"textAlignment" "center"

"fgcolor" "255 255 255 255"
}

//crosshair end

I also deleted that whole section ^ from hudlayout.res.

2. For step 2, I made found hudachievementtracker in hudlayout and replaced it with this:
"HudAchievementTracker"
{
"ControlName" "EditablePanel"
"fieldName" "HudAchievementTracker"
"xpos" "0"
"NormalY" "0"
"EngineerY" "0"
"wide" "f0"
"tall" "480"
"visible" "1"
"enabled" "1"
"zpos" "1"
}
3. I tried testing it out so i put hud_achievement_tracker 1 for demo and hud_achievement_tracker 0 for heavy in my class cfgs and I went in game and was expecting to see konr wings for demo and none for heavy but nothing showed up.

4. I have no idea what that means.

-srry for long post just didnt want any missunderstandings.

[quote=pwny_][quote=jewbagels]I'm sorry for bumping this old thread but would anyone be willing to help me with this? I've been trying to get it to work for about an hour now. Thank you[/quote]

What are you having trouble with specifically? Text still on screen, the xhair not showing,etc?[/quote]
I.. um let me just tell u what i did.
1. For step one, I deleted everything from hudachievertrackeritem in resource/ui and replaced with what the op linked and I added my crosshair so it looks like this:
//crosshair start

CrossHairKonrWings
{
"controlName" "CExLabel"
"fieldName" "CrossHairKonrWings"
"visible" "1"
"enabled" "1"
"zpos" "2"

"xpos" "c-28"
"ypos" "c-24"
"wide" "50"
"tall" "51"

"font" "CrossHairKonrWings"
"labelText" "Z"
"textAlignment" "center"

"fgcolor" "255 255 255 255"
}

//crosshair end

I also deleted that whole section ^ from hudlayout.res.

2. For step 2, I made found hudachievementtracker in hudlayout and replaced it with this:
"HudAchievementTracker"
{
"ControlName" "EditablePanel"
"fieldName" "HudAchievementTracker"
"xpos" "0"
"NormalY" "0"
"EngineerY" "0"
"wide" "f0"
"tall" "480"
"visible" "1"
"enabled" "1"
"zpos" "1"
}
3. I tried testing it out so i put hud_achievement_tracker 1 for demo and hud_achievement_tracker 0 for heavy in my class cfgs and I went in game and was expecting to see konr wings for demo and none for heavy but nothing showed up.

4. I have no idea what that means.

-srry for long post just didnt want any missunderstandings.
25
#25
-1 Frags +

.

.
26
#26
TF2Pickup
-2 Frags +

Why not use the #base that Wiethoofd discovered few months ago? I've created crosshair pack for myself but here it is:Download

All you need to do is:
1) Install your hud.
2) Extract my files into resource/script
3) Open Clientscheme.res in resource, add

#base "Crosshairs.res"

and Save it. (Picture how it should the file look.)
4) Open Hudlayout.rest in script, add

#base "Crosshairs.res"

and Save it.
5) You are ready.

If you need to add/modify/remove crosshairs you need to touch the Crosshair.res files in resource/script. I haven't read all posts in this thread so.. I can't guarantee that there will be the crosshair you are looking for. Good luck, if you have any questions, let me know! :)

Why not use the #base that Wiethoofd discovered few months ago? I've created crosshair pack for myself but here it is:[b][url=https://www.dropbox.com/s/itgud6tw97subq0/Crosshairs_working.7z?dl=0]Download[/url] [/b]

All you need to do is:
1) Install your hud.
2) Extract my files into resource/script
3) Open Clientscheme.res in resource, add [code]#base "Crosshairs.res"[/code] and Save it. ([url=http://i.imgur.com/ysPn0uC.png]Picture how it should the file look.[/url])
4) Open Hudlayout.rest in script, add [code]#base "Crosshairs.res"[/code] and Save it.
5) You are ready.

If you need to add/modify/remove crosshairs you need to touch the Crosshair.res files in resource/script. I haven't read all posts in this thread so.. I can't guarantee that there will be the crosshair you are looking for. Good luck, if you have any questions, let me know! :)
27
#27
3 Frags +

x

x
28
#28
TF2Pickup
0 Frags +
FireIdk what that Method you just explained does but this thread is about switching hud crosshairs mid game without editing files (propably for different classes), and what you just tried to explain doesnt sound like its gonna do that.

lolf*ck, right

[quote=Fire]Idk what that Method you just explained does but this thread is about switching hud crosshairs mid game without editing files (propably for different classes), and what you just tried to explain doesnt sound like its gonna do that.[/quote]
lolf*ck, right
29
#29
-6 Frags +

Can someone explains to me the fourth step?

Can someone explains to me the fourth step?
30
#30
-3 Frags +
f2s4x1oCan someone explain to me the fourth step?
[quote=f2s4x1o]Can someone explain to me the fourth step?[/quote]
1 2
Please sign in through STEAM to post a comment.