Three "hud" style crosshairs available on the fly – a working concept.
When attempting to stream a few people asked how i was toggling crosshairs on and off.. so i figured id write a quick tutorial.
In this example/tutorial I will attempt to explain how I was able to get three hud crosshairs working on the fly and able to have them change per class or even along with weapon switch alias/binds. On any sv_pure setting (works fine in league settings). I've also included a .zip of the files I've messed with because I'm sure my explanation is awful. http://www.mediafire.com/download/aa17qb13g9pa8xg/crosshairs_concept.zip
I will be referencing TF.TV threads;
A) Real Quake Crosshairs thread: http://teamfortress.tv/thread/12383/real-custom-crosshairs-from-ozfortress
- This thread shows how to use custom .VTF's as crosshairs through tf2 ingame settings.
B) Transparent viewmodels: http://teamfortress.tv/thread/16994/transparent-viewmodels-concept/
- This thread shows how to use custom .VTF's show up on your screen and simulate a transparent viewmodel
C) Achievement Tracking Hud Crosshairs: http://teamfortress.tv/thread/20536/using-achievement-tracker-to-change-hud-crosshairs
- This thread shows how to add HUD crosshairs and make them achievement crosshairs
For Explanation purposes I will just call the crosshairs 1, 2 and 3,
Setting up the crosshairs
Crosshair 1 (Labeled cross.vtf in materials\vgui\replay\thumbnails)
–--Method explained in TF.TV Thread B---
- Edit hudplayerclass located in “\resource\ui”
- CTRL+F “ classmodelpanelBG”
- Replace with pastebin: http://pastebin.com/5tBQ03qQ
- http://imgur.com/HWUF6Wf,c3KOUte,6CZotBH
Crosshair 2 (Labled dot.vtf in materials\vgui\replay\thumbnails)
--Method explained in TF.TV Thread A---
- Edit/Add a .CFG that gets execed
- Add: “cl_crosshair_file ../replay/thumbnails/dot” [explained in TF.TV Thread A]
-http://imgur.com/HWUF6Wf,c3KOUte,6CZotBH#1
Crosshair 3 (HUD Crosshair as achievement tracker)
--Method explained in TF.TV Thread C--
- Follow steps in thread
- http://imgur.com/HWUF6Wf,c3KOUte,6CZotBH#2
Using / toggle the crosshairs
Crosshair 1 – cl_hud_playerclass_use_playermodel 1
- Will turn on/off cross
Crosshair 2 – crosshair 1
- Will turn on/off dot
Crosshair 3 – hud_achievement_tracker 1
-Will turn turn on/off hud xhair
Using those toggles you can make any weapon bind or class specific combo you would like. See example_class.cfg
Three "hud" style crosshairs available on the fly – a working concept.
When attempting to stream a few people asked how i was toggling crosshairs on and off.. so i figured id write a quick tutorial.
In this example/tutorial I will attempt to explain how I was able to get three hud crosshairs working on the fly and able to have them change per class or even along with weapon switch alias/binds. On any sv_pure setting (works fine in league settings). I've also included a .zip of the files I've messed with because I'm sure my explanation is awful. http://www.mediafire.com/download/aa17qb13g9pa8xg/crosshairs_concept.zip
I will be referencing TF.TV threads;
[b]A)[/b] Real Quake Crosshairs thread: http://teamfortress.tv/thread/12383/real-custom-crosshairs-from-ozfortress
- This thread shows how to use custom .VTF's as crosshairs through tf2 ingame settings.
[b]B)[/b] Transparent viewmodels: http://teamfortress.tv/thread/16994/transparent-viewmodels-concept/
- This thread shows how to use custom .VTF's show up on your screen and simulate a transparent viewmodel
[b]C)[/b] Achievement Tracking Hud Crosshairs: http://teamfortress.tv/thread/20536/using-achievement-tracker-to-change-hud-crosshairs
- This thread shows how to add HUD crosshairs and make them achievement crosshairs
For Explanation purposes I will just call the crosshairs 1, 2 and 3,
Setting up the crosshairs
[b]Crosshair 1[/b] (Labeled cross.vtf in materials\vgui\replay\thumbnails)
–--Method explained in TF.TV Thread B---
- Edit hudplayerclass located in “\resource\ui”
- CTRL+F “ classmodelpanelBG”
- Replace with pastebin: http://pastebin.com/5tBQ03qQ
- http://imgur.com/HWUF6Wf,c3KOUte,6CZotBH
[b]Crosshair 2[/b] (Labled dot.vtf in materials\vgui\replay\thumbnails)
--Method explained in TF.TV Thread A---
- Edit/Add a .CFG that gets execed
- Add: “cl_crosshair_file ../replay/thumbnails/dot” [explained in TF.TV Thread A]
-http://imgur.com/HWUF6Wf,c3KOUte,6CZotBH#1
[b]Crosshair 3[/b] (HUD Crosshair as achievement tracker)
--Method explained in TF.TV Thread C--
- Follow steps in thread
- http://imgur.com/HWUF6Wf,c3KOUte,6CZotBH#2
Using / toggle the crosshairs
[b]Crosshair 1[/b] – cl_hud_playerclass_use_playermodel 1
- Will turn on/off cross
[b]Crosshair 2[/b] – crosshair 1
- Will turn on/off dot
[b]Crosshair 3[/b] – hud_achievement_tracker 1
-Will turn turn on/off hud xhair
Using those toggles you can make any weapon bind or class specific combo you would like. See example_class.cfg
This is awesome!
I have done two HUD crosshairs but never thought to do 3! nice job.
This is awesome!
I have done two HUD crosshairs but never thought to do 3! nice job.
For future thread browsers, a more in-depth explanation of each of these methods is included in my hud crosshair guide on huds.tf.
EDIT: There also is the potential to use cl_minmode to have a total of four crosshairs toggleable: two crosshairs for every class, then one toggleable for classes with minmode on and one toggleable for classes with minmode off. Not sure if that makes sense, but basically you edit hud_achievement_trackeritem.res to look something like this:
Show Content
[code]
"TextExample"
{
"controlName" "CExLabel"
"fieldName" "TextExample"
"visible" "0"
"enabled" "0"
"visible_minmode" "1"
"enabled_minmode" "1"
"xpos" "c0"
"ypos" "c0"
"zpos" "0"
"wide" "100"
"tall" "100"
"font" "fogCrosshair"
"labelText" "+"
"fgcolor" "White"
"textAlignment" "center"
}
"ImageExample"
{
"controlName" "CTFImagePanel"
"fieldName" "ImageExample"
"visible" "1"
"enabled" "1"
"visible_minmode" "0"
"enabled_minmode" "0"
"xpos" "c0"
"ypos" "c0"
"zpos" "0"
"wide" "100"
"tall" "100"
"alpha" "255"
"image" "replay/thumbnails/*your file name*"
"scaleimage" "1"
}
[/code]
In this example, the "ImageExample" crosshair would be toggleable with the console command "hud_achievement_tracker 0/1", but only when the console command "cl_minmode" is set to 0, or disabled. Likewise, "TextExample" would only be toggled when "cl_minmode" is set to 1.
Only problem is that the command cl_minmode causes the game to stutter for a second. This doesn't mean it isn't useful though. Say, for example, that you only use the dot crosshair on sniper, scout, and engineer. You could edit the class .cfgs so the dot is only used on those classes, and then have konr wings for every other class if you want.
For future thread browsers, a more in-depth explanation of each of these methods is included in [url=http://huds.tf/guides/?guide=3]my hud crosshair guide[/url] on huds.tf.
EDIT: There also is the potential to use cl_minmode to have a total of four crosshairs toggleable: two crosshairs for every class, then one toggleable for classes with minmode on and one toggleable for classes with minmode off. Not sure if that makes sense, but basically you edit hud_achievement_trackeritem.res to look something like this:
[spoiler]
[code]
"TextExample"
{
"controlName" "CExLabel"
"fieldName" "TextExample"
"visible" "0"
"enabled" "0"
"visible_minmode" "1"
"enabled_minmode" "1"
"xpos" "c0"
"ypos" "c0"
"zpos" "0"
"wide" "100"
"tall" "100"
"font" "fogCrosshair"
"labelText" "+"
"fgcolor" "White"
"textAlignment" "center"
}
"ImageExample"
{
"controlName" "CTFImagePanel"
"fieldName" "ImageExample"
"visible" "1"
"enabled" "1"
"visible_minmode" "0"
"enabled_minmode" "0"
"xpos" "c0"
"ypos" "c0"
"zpos" "0"
"wide" "100"
"tall" "100"
"alpha" "255"
"image" "replay/thumbnails/*your file name*"
"scaleimage" "1"
}
[/code]
[/spoiler]
In this example, the "ImageExample" crosshair would be toggleable with the console command "hud_achievement_tracker 0/1", but only when the console command "cl_minmode" is set to 0, or disabled. Likewise, "TextExample" would only be toggled when "cl_minmode" is set to 1.
Only problem is that the command cl_minmode causes the game to stutter for a second. This doesn't mean it isn't useful though. Say, for example, that you only use the dot crosshair on sniper, scout, and engineer. You could edit the class .cfgs so the dot is only used on those classes, and then have konr wings for every other class if you want.
Is there a way to make the delay on the achievement tracker xhairs more bearable? From my experience, it would take a second or two before the xhair disappeared or appeared.
Is there a way to make the delay on the achievement tracker xhairs more bearable? From my experience, it would take a second or two before the xhair disappeared or appeared.
where is my credit???
you wrote this up really neat my dude
edit: (if anyone else wants this) if you want your weapon to go back to primary after switching to melee from your primary you'd have to add in
alias selectslot3 "slot3; tertiary; alias selectlast selectlast1"
since your primary already aliased it to secondary, it will just go to secondary when you hit the selectlast bind.
where is my credit???
you wrote this up really neat my dude
edit: (if anyone else wants this) if you want your weapon to go back to primary after switching to melee from your primary you'd have to add in [code]alias selectslot3 "slot3; tertiary; alias selectlast selectlast1"[/code] since your primary already aliased it to secondary, it will just go to secondary when you hit the selectlast bind.
GeknaiirIs there a way to make the delay on the achievement tracker xhairs more bearable? From my experience, it would take a second or two before the xhair disappeared or appeared.
nvm
[quote=Geknaiir]Is there a way to make the delay on the achievement tracker xhairs more bearable? From my experience, it would take a second or two before the xhair disappeared or appeared.[/quote]
nvm
#6 I had this too and fixed it, but now I can't remember how. Maybe it had to do with which achievement I had selected in the menu? I think I remember selecting two instead of one helping, or maybe vice versa. Pretty sure it's not hud-related (ie fixable through hud editing) though.
#6 I had this too and fixed it, but now I can't remember how. Maybe it had to do with which achievement I had selected in the menu? I think I remember selecting two instead of one helping, or maybe vice versa. Pretty sure it's not hud-related (ie fixable through hud editing) though.
Gek I've had 0 luck getting rid of the delay with achievement. But the toggle of the other two are instant. You would just need to edit/re-create a VTF of the HUD crosshair in question. Which is pretty easy once you figure out the correct settings to save the VTF. I'm personally going to play around with the two vtfs and try and make them the cl_crosshair_file "" default style crosshairs with an outline on them. Bc everyone knows the default crosshairs are the best.
Gek I've had 0 luck getting rid of the delay with achievement. But the toggle of the other two are instant. You would just need to edit/re-create a VTF of the HUD crosshair in question. Which is pretty easy once you figure out the correct settings to save the VTF. I'm personally going to play around with the two vtfs and try and make them the cl_crosshair_file "" default style crosshairs with an outline on them. Bc everyone knows the default crosshairs are the best.
kentGek I've had 0 luck getting rid of the delay with achievement. But the toggle of the other two are instant. You would just need to edit/re-create a VTF of the HUD crosshair in question. Which is pretty easy once you figure out the correct settings to save the VTF. I'm personally going to play around with the two vtfs and try and make them the cl_crosshair_file "" default style crosshairs with an outline on them. Bc everyone knows the default crosshairs are the best.
I would love this, I adore the default crosshairs but half the time I can't manage to see them (also I'm pretty sure I'm insane but I swear the default sniper crosshair seems off)
[quote=kent]Gek I've had 0 luck getting rid of the delay with achievement. But the toggle of the other two are instant. You would just need to edit/re-create a VTF of the HUD crosshair in question. Which is pretty easy once you figure out the correct settings to save the VTF. I'm personally going to play around with the two vtfs and try and make them the cl_crosshair_file "" default style crosshairs with an outline on them. Bc everyone knows the default crosshairs are the best.[/quote]
I would love this, I adore the default crosshairs but half the time I can't manage to see them (also I'm pretty sure I'm insane but I swear the default sniper crosshair seems off)
springrollsI would love this, I adore the default crosshairs but half the time I can't manage to see them (also I'm pretty sure I'm insane but I swear the default sniper crosshair seems off)
the default sniper crosshair is off
[quote=springrolls]I would love this, I adore the default crosshairs but half the time I can't manage to see them (also I'm pretty sure I'm insane but I swear the default sniper crosshair seems off)[/quote]
the default sniper crosshair is off
I know the default scout crosshair is off by pixels, not like that'll ever matter but it sure is a nice john
I know the default scout crosshair is off by pixels, not like that'll ever matter but it sure is a nice john