Upvote Upvoted 123 Downvote Downvoted
1 2 3 4
GUIDE: Weapon-specific Custom Crosshairs
posted in Customization
61
#61
-2 Frags +

Anyone know how to use a built-in crosshair with this switching method? For example, I want to use Quake 3 wings for Scattergun, and use TF2's crosshair6 for the Pistol without using a bind or a crosshair switching script in scout.cfg. Is there any way to do this without installing another .vtf?

Anyone know how to use a built-in crosshair with this switching method? For example, I want to use Quake 3 wings for Scattergun, and use TF2's crosshair6 for the Pistol without using a bind or a crosshair switching script in scout.cfg. Is there any way to do this without installing another .vtf?
62
#62
-2 Frags +
BilbertAnyone know how to use a built-in crosshair with this switching method? For example, I want to use Quake 3 wings for Scattergun, and use TF2's crosshair6 for the Pistol without using a bind or a crosshair switching script in scout.cfg. Is there any way to do this without installing another .vtf?

either make your own crosshair that resambles crosshair6 or you should use a bind to switch crosshairs between weapons, why won't you?

[quote=Bilbert]Anyone know how to use a built-in crosshair with this switching method? For example, I want to use Quake 3 wings for Scattergun, and use TF2's crosshair6 for the Pistol without using a bind or a crosshair switching script in scout.cfg. Is there any way to do this without installing another .vtf?[/quote]
either make your own crosshair that resambles crosshair6 or you should use a bind to switch crosshairs between weapons, why won't you?
63
#63
-1 Frags +
Phoenix21BilbertAnyone know how to use a built-in crosshair with this switching method? For example, I want to use Quake 3 wings for Scattergun, and use TF2's crosshair6 for the Pistol without using a bind or a crosshair switching script in scout.cfg. Is there any way to do this without installing another .vtf?either make your own crosshair that resambles crosshair6 or you should use a bind to switch crosshairs between weapons, why won't you?

I do use a script/bind. I'm looking for a neater solution. Currently, the wrong crosshair comes up when I run out of ammo, when I'm running Gunboats or Mad Milk, and sometimes when I die.

[quote=Phoenix21][quote=Bilbert]Anyone know how to use a built-in crosshair with this switching method? For example, I want to use Quake 3 wings for Scattergun, and use TF2's crosshair6 for the Pistol without using a bind or a crosshair switching script in scout.cfg. Is there any way to do this without installing another .vtf?[/quote]
either make your own crosshair that resambles crosshair6 or you should use a bind to switch crosshairs between weapons, why won't you?[/quote]
I do use a script/bind. I'm looking for a neater solution. Currently, the wrong crosshair comes up when I run out of ammo, when I'm running Gunboats or Mad Milk, and sometimes when I die.
64
#64
0 Frags +

That leaves you with the same two options. One: Get another VTF that looks the way you want it to, and set your pistol to use that., or two: Script it, using the below:

Unfortunately you can't nest cl_crosshair_file "" within quotations, so you create a new config file that has only that command, and you can nest the exec statement. Like so.

default.cfg:

cl_crosshair_file ""

Once you've done that, you just use a crosshair switching script (if you use mousewheel or Q let me know, because that's way lengthier)
scout.cfg:

bind 1 "slot1; exec default"
bind 2 "slot2; cl_crosshair_file crosshair6"
bind 3 "slot3; exec default"

reset.cfg:

bind 1 slot1
bind 2 slot2
bind 3 slot3
That leaves you with the same two options. One: Get another VTF that looks the way you want it to, and set your pistol to use that., or two: Script it, using the below:

Unfortunately you can't nest cl_crosshair_file "" within quotations, so you create a new config file that has only that command, and you can nest the exec statement. Like so.

default.cfg:
[code]cl_crosshair_file ""[/code]

Once you've done that, you just use a crosshair switching script (if you use mousewheel or Q let me know, because that's way lengthier)
scout.cfg:
[code]bind 1 "slot1; exec default"
bind 2 "slot2; cl_crosshair_file crosshair6"
bind 3 "slot3; exec default"[/code]

reset.cfg:
[code]bind 1 slot1
bind 2 slot2
bind 3 slot3[/code]
65
#65
1 Frags +

Okay, I figured out how to switch built-in crosshairs using the weapon scripts.

  1. Open tf2_misc_dir.vpk in GCFScape.
  2. Go to root\materials\vgui\crosshairs
  3. Extract the .vmt files from there.
  4. Put the .vmt files in materials/vgui/replay/thumbnails, where custom crosshair files would go.
  5. Indicate the crosshair file in the weapon script .txt:
    "crosshair"
    {
    	"file"		"vgui/replay/thumbnails/crosshairname"
    	"x"			"0"
    	"y"			"0"
    	"width"		"64"
    	"height"	"64"
    }
  6. For crosshairname, you can put crosshair1, crosshair2, etc. or default.


I assume there's a more elegant solution, where you can just indicate where the built-in crosshair files are, without needing the .vmt files.
You don't need .vtf files for built in crosshairs, just their .vmt files. For reference, the .vtf files are in tf2_textures_dir.vpk, under root\materials\vgui\crosshairs.

Okay, I figured out how to switch built-in crosshairs using the weapon scripts.
[olist]
[*] Open [b]tf2_misc_dir.vpk[/b] in GCFScape.
[*] Go to [b]root\materials\vgui\crosshairs[/b]
[*] Extract the [b].vmt[/b] files from there.
[*] Put the [b].vmt[/b] files in [b]materials/vgui/replay/thumbnails[/b], where custom crosshair files would go.
[*] Indicate the crosshair file in the weapon script .txt:
[code]
"crosshair"
{
"file" "vgui/replay/thumbnails/crosshairname"
"x" "0"
"y" "0"
"width" "64"
"height" "64"
}
[/code]
[*] For [b]crosshairname[/b], you can put [b]crosshair1[/b], [b]crosshair2[/b], etc. or [b]default[/b].
[/olist]
I assume there's a more elegant solution, where you can just indicate where the built-in crosshair files are, without needing the [b].vmt[/b] files.
You don't need [b].vtf[/b] files for built in crosshairs, just their [b].vmt[/b] files. For reference, the [b].vtf[/b] files are in [b]tf2_textures_dir.vpk[/b], under [b]root\materials\vgui\crosshairs[/b].
66
#66
-2 Frags +

So I tried using the quake live crosshairs in #29 with:

"crosshair"
		{
				"file"		"vgui/replay/thumbnails/ql_xhairs_point"
				"x"		"128"
				"y"		"0"
				"width"		"64"
				"height"	"64"
		

But for some reason any crosshair scale I use gives a slightly different lopsided crosshair for example with cl_crosshair_scale 32 I get this:

http://imgur.com/ZZFvYJN
http://imgur.com/XRm86tB

Any help on this would be appreciated. :)

Edit: I play 16:9 1080p if that makes any difference

Edit2: Just made my own similar crosshair and now it works fine https://www.dropbox.com/sh/79p2jkmuc7obzhv/AACfAhNJLMB0ZXfcMKnqdFRfa?dl=0

So I tried using the quake live crosshairs in #29 with:
[code]"crosshair"
{
"file" "vgui/replay/thumbnails/ql_xhairs_point"
"x" "128"
"y" "0"
"width" "64"
"height" "64"
[/code]

But for some reason any crosshair scale I use gives a slightly different lopsided crosshair for example with cl_crosshair_scale 32 I get this:

http://imgur.com/ZZFvYJN
http://imgur.com/XRm86tB

Any help on this would be appreciated. :)

Edit: I play 16:9 1080p if that makes any difference

Edit2: Just made my own similar crosshair and now it works fine https://www.dropbox.com/sh/79p2jkmuc7obzhv/AACfAhNJLMB0ZXfcMKnqdFRfa?dl=0
67
#67
-1 Frags +

Alright guys, would anybody be happy to guide me through this please? I don't understand it really.

I want to use the small green cross with outline thing that DD5f uses, but I also have a crosshair switcher.

Alright guys, would anybody be happy to guide me through this please? I don't understand it really.


I want to use the small green cross with outline thing that DD5f uses, but I also have a crosshair switcher.
68
#68
0 Frags +

#67
if you want to use ONLY the small green cross you should just add a hud crosshair

otherwise you take the .vtf and vmt. from dd5f's, move it to materials/vgui/replay/thumbnails/, use gcfscape to export selected weapon files and replace the valve crosshair with your own (OP Step 2) and put them into scripts

#67
if you want to use ONLY the small green cross you should just add a hud crosshair

otherwise you take the .vtf and vmt. from dd5f's, move it to materials/vgui/replay/thumbnails/, use gcfscape to export selected weapon files and replace the valve crosshair with your own (OP Step 2) and put them into scripts
69
#69
-2 Frags +

Hey, I'm attempting to get the default crosshair for the spy's revolver to be my default crosshair for my sniper rifle, and it's not working. Can anyone help?

Hey, I'm attempting to get the default crosshair for the spy's revolver to be my default crosshair for my sniper rifle, and it's not working. Can anyone help?
70
#70
4 Frags +

https://pastebin.com/mdeigJpx
I hope this will be useful.

https://pastebin.com/mdeigJpx
I hope this will be useful.
71
#71
0 Frags +

i don't know whether i'm missing something or it's just the way this game works but i am trying to get different crosshair for jarate (tf_weapon_jar) and milk (tf_weapon_jar_milk) but the milk always has the same crosshair jarate has
i've tried converting back to ctx and removing custom txt
ik that the jarate/milk have least relevancy regarding crosshair but i like consistency

i don't know whether i'm missing something or it's just the way this game works but i am trying to get different crosshair for jarate (tf_weapon_jar) and milk (tf_weapon_jar_milk) but the milk always has the same crosshair jarate has
i've tried converting back to ctx and removing custom txt
ik that the jarate/milk have least relevancy regarding crosshair but i like consistency
72
#72
3 Frags +
ripBenNZLI made some current weapon icons from the ones used in the backpack. They can be extracted from tf2_textures_dir.vpk/materials/backpack/weapon/c_models and don't need any editing.

https://www.youtube.com/watch?v=otGfeCiU_mU

I really liked this idea and I didn't see a download link so I've completed this if anybody is interested.

Download

The only downside is that multiple unlocks share the same tf_weapon_....ctx file as seen here so I could only use one image for those.

Updated for the new weapons if anyone's interested

[quote=rip][quote=BenNZL]I made some current weapon icons from the ones used in the backpack. They can be extracted from tf2_textures_dir.vpk/materials/backpack/weapon/c_models and don't need any editing.

[youtube]https://www.youtube.com/watch?v=otGfeCiU_mU[/youtube][/quote]

I really liked this idea and I didn't see a download link so I've completed this if anybody is interested.

[url=http://www.mediafire.com/download/hy9t3ngzfdc7vl8/weapon+crosshairs+++nosmoke.zip]Download[/url]

The only downside is that multiple unlocks share the same tf_weapon_....ctx file [url=https://wiki.alliedmods.net/Team_fortress_2_item_definition_indexes#Primary_.5BSlot_0.5D]as seen here[/url] so I could only use one image for those.[/quote]

[url=http://www.mediafire.com/file/86ej2tdvocunzbp/weapon+crosshairs+++nosmoke.vpk]Updated[/url] for the new weapons if anyone's interested
73
#73
-1 Frags +

whats the script name for the pretty boys pocket pistol :)
edit: its named tf_weapon_pep_brawler_blaster
It’s tf_weapon_handgun_scout_secondary thx rip

whats the script name for the pretty boys pocket pistol :)
[s]edit: its named tf_weapon_pep_brawler_blaster[/s]
It’s tf_weapon_handgun_scout_secondary thx rip
74
#74
4 Frags +
Vulcanwhats the script name for the pretty boys pocket pistol :)
edit: its named tf_weapon_pep_brawler_blaster

It's tf_weapon_handgun_scout_secondary (shared with the Winger). The one you listed is for the Baby Face's Blaster.

[quote=Vulcan]whats the script name for the pretty boys pocket pistol :)
edit: its named tf_weapon_pep_brawler_blaster[/quote]

It's tf_weapon_handgun_scout_secondary (shared with the Winger). The one you listed is for the Baby Face's Blaster.
75
#75
2 Frags +

Does anyone have the weapon scripts for the 4 new weapons? Thank

Does anyone have the weapon scripts for the 4 new weapons? Thank
76
#76
2 Frags +
SentinelDoes anyone have the weapon scripts for the 4 new weapons? Thank

http://www2.zippyshare.com/pd/M0gkJagl/35739/pyroweapons.zip
the gas passer uses same crosshair as jarate

[quote=Sentinel]Does anyone have the weapon scripts for the 4 new weapons? Thank[/quote]
http://www2.zippyshare.com/pd/M0gkJagl/35739/pyroweapons.zip
the gas passer uses same crosshair as jarate
77
#77
3 Frags +
deguSentinelDoes anyone have the weapon scripts for the 4 new weapons? Thankhttp://www2.zippyshare.com/pd/M0gkJagl/35739/pyroweapons.zip
the gas passer uses same crosshair as jarate

Tyty

[quote=degu][quote=Sentinel]Does anyone have the weapon scripts for the 4 new weapons? Thank[/quote]
http://www2.zippyshare.com/pd/M0gkJagl/35739/pyroweapons.zip
the gas passer uses same crosshair as jarate[/quote]

Tyty
78
#78
1 Frags +

Works fine for most weapons, however i cant get it to work for the stock rocket launcher. Im editing the correct weapon script to so im not sure what the problem is.

Works fine for most weapons, however i cant get it to work for the stock rocket launcher. Im editing the correct weapon script to so im not sure what the problem is.
79
#79
2 Frags +
TedeiWorks fine for most weapons, however i cant get it to work for the stock rocket launcher. Im editing the correct weapon script to so im not sure what the problem is.

if you have the no explosions script you have to take that out first

[quote=Tedei]Works fine for most weapons, however i cant get it to work for the stock rocket launcher. Im editing the correct weapon script to so im not sure what the problem is.[/quote]
if you have the no explosions script you have to take that out first
80
#80
2 Frags +

just a quick tip when it comes to VMT customization (e.g. swapping VTF's, experimenting with material proxies to create animated crosshairs &/or multi-frame VTF crosshairs): you don't need to restart the game to swap crosshairs. although modifications to the weapon script itself won't take effect until you restart, you can modify the VMT file as long as you're in a server with sv_cheats 1 enabled (ideally local) and then call mat_reloadallmaterials in console. alternately, you can use mat_showtextures, find the line relevant to your crosshair [hereby referred to as CROSSHAIR_PATH], and then type in mat_reloadmaterial CROSSHAIR_PATH

just a quick tip when it comes to VMT customization (e.g. swapping VTF's, experimenting with [url=https://developer.valvesoftware.com/wiki/List_Of_Material_Proxies]material proxies[/url] to create animated crosshairs &/or multi-frame VTF crosshairs): you don't need to restart the game to swap crosshairs. although modifications to the weapon script itself won't take effect until you restart, you can modify the VMT file as long as you're in a server with sv_cheats 1 enabled (ideally local) and then call mat_reloadallmaterials in console. alternately, you can use mat_showtextures, find the line relevant to your crosshair [hereby referred to as CROSSHAIR_PATH], and then type in mat_reloadmaterial CROSSHAIR_PATH
81
#81
match.tf
1 Frags +

Can anyone here confirm that everything here is correct and also point out missing filenames?
https://pastebin.com/9Km0jU7p

Can anyone here confirm that everything here is correct and also point out missing filenames?
https://pastebin.com/9Km0jU7p
82
#82
1 Frags +
200Can anyone here confirm that everything here is correct and also point out missing filenames?
https://pastebin.com/9Km0jU7p

dragon's fury = tf_weapon_rocketlauncher_fireball
hot hand = tf_weapon_slap
thermal thruster = tf_weapon_rocketpack

medic melee weapons = tf_weapon_bonesaw

[quote=200]Can anyone here confirm that everything here is correct and also point out missing filenames?
https://pastebin.com/9Km0jU7p[/quote]
dragon's fury = tf_weapon_rocketlauncher_fireball
hot hand = tf_weapon_slap
thermal thruster = tf_weapon_rocketpack

medic melee weapons = tf_weapon_bonesaw
83
#83
match.tf
0 Frags +
Tob200Can anyone here confirm that everything here is correct and also point out missing filenames?
https://pastebin.com/9Km0jU7p
dragon's fury = tf_weapon_rocketlauncher_fireball
hot hand = tf_weapon_slap
thermal thruster = tf_weapon_rocketpack

medic melee weapons = tf_weapon_bonesaw

Tywm, I should've figured out those by myself.

[quote=Tob][quote=200]Can anyone here confirm that everything here is correct and also point out missing filenames?
https://pastebin.com/9Km0jU7p[/quote]
dragon's fury = tf_weapon_rocketlauncher_fireball
hot hand = tf_weapon_slap
thermal thruster = tf_weapon_rocketpack

medic melee weapons = tf_weapon_bonesaw[/quote]

Tywm, I should've figured out those by myself.
84
#84
match.tf
5 Frags +

Not really officially announced, but here is a first version of VMT crosshair generator. Just pick the weapons you need, pick a crosshair you want, download and unzip to /custom/.

https://cfg.tf/tools/crosshairs/

I've also made a searchable list of all the weapons' script names in case you just want to manually edit them

https://cfg.tf/tools/crosshairs/names

Feel free to report any bugs and request other crosshairs or features in cfg.tf thread or in Discord.

Thanks to @Tob and other people for helping me out with filenames.

Not really officially announced, but here is a first version of VMT crosshair generator. Just pick the weapons you need, pick a crosshair you want, download and unzip to /custom/.

https://cfg.tf/tools/crosshairs/

I've also made a searchable list of all the weapons' script names in case you just want to manually edit them

https://cfg.tf/tools/crosshairs/names

Feel free to report any bugs and request other crosshairs or features in [url=https://www.teamfortress.tv/40869/cfg-tf]cfg.tf thread[/url] or in [url=https://discord.gg/79cbsTu]Discord[/url].

Thanks to @Tob and other people for helping me out with filenames.
85
#85
1 Frags +
200Not really officially announced, but here is a first version of VMT crosshair generator. Just pick the weapons you need, pick a crosshair you want, download and unzip to /custom/.

https://cfg.tf/tools/crosshairs/

I've also made a searchable list of all the weapons' script names in case you just want to manually edit them

https://cfg.tf/tools/crosshairs/names

What a time to be alive. This is great my guy, ill test it out and give some give some feedback.

Feedback
Everything works as it should for me and there is even a multiple selection feature which is great.
It's a bit tedious to go through and use the drop down menu.
No way as yet to add my own personal crosshairs.

[quote=200]Not really officially announced, but here is a first version of VMT crosshair generator. Just pick the weapons you need, pick a crosshair you want, download and unzip to /custom/.

https://cfg.tf/tools/crosshairs/

I've also made a searchable list of all the weapons' script names in case you just want to manually edit them

https://cfg.tf/tools/crosshairs/names[/quote]

What a time to be alive. This is great my guy, ill test it out and give some give some feedback.

[b][i][u]Feedback[/u][/i][/b]
Everything works as it should for me and there is even a multiple selection feature which is great.
It's a bit tedious to go through and use the drop down menu.
No way as yet to add my own personal crosshairs.
86
#86
3 Frags +
200Not really officially announced, but here is a first version of VMT crosshair generator. Just pick the weapons you need, pick a crosshair you want, download and unzip to /custom/.

https://cfg.tf/tools/crosshairs/

I've also made a searchable list of all the weapons' script names in case you just want to manually edit them

https://cfg.tf/tools/crosshairs/names

Feel free to report any bugs and request other crosshairs or features in cfg.tf thread or in Discord.

Thanks to @Tob and other people for helping me out with filenames.

You should probably mention that this does not work with the no explosions mod as they share the same files, and you should probably tell them that they need to merge them.

also i think u should add these

https://www.dropbox.com/sh/s6gf2p9eoq30n57/AACOguviMZUl4RqZyUbjaDcma?dl=0 - better looking wings

https://www.dropbox.com/sh/2u40r1nsr6yzfmt/AACH8bMlXZzCfgoeiOIHfsrha?dl=0 - default scout no shadow

also maybe add a way to chose 1 crosshair for all weapons and then change the ones you want.

[quote=200]Not really officially announced, but here is a first version of VMT crosshair generator. Just pick the weapons you need, pick a crosshair you want, download and unzip to /custom/.

https://cfg.tf/tools/crosshairs/

I've also made a searchable list of all the weapons' script names in case you just want to manually edit them

https://cfg.tf/tools/crosshairs/names

Feel free to report any bugs and request other crosshairs or features in [url=https://www.teamfortress.tv/40869/cfg-tf]cfg.tf thread[/url] or in [url=https://discord.gg/79cbsTu]Discord[/url].

Thanks to @Tob and other people for helping me out with filenames.[/quote]

You should probably mention that this does not work with the no explosions mod as they share the same files, and you should probably tell them that they need to merge them.

also i think u should add these

https://www.dropbox.com/sh/s6gf2p9eoq30n57/AACOguviMZUl4RqZyUbjaDcma?dl=0 - better looking wings

https://www.dropbox.com/sh/2u40r1nsr6yzfmt/AACH8bMlXZzCfgoeiOIHfsrha?dl=0 - default scout no shadow

also maybe add a way to chose 1 crosshair for all weapons and then change the ones you want.
87
#87
5 Frags +
200Not really officially announced, but here is a first version of VMT crosshair generator. Just pick the weapons you need, pick a crosshair you want, download and unzip to /custom/.

https://cfg.tf/tools/crosshairs/

I've also made a searchable list of all the weapons' script names in case you just want to manually edit them

https://cfg.tf/tools/crosshairs/names

Feel free to report any bugs and request other crosshairs or features in cfg.tf thread or in Discord.

Thanks to @Tob and other people for helping me out with filenames.

god i want to marry u

[quote=200]Not really officially announced, but here is a first version of VMT crosshair generator. Just pick the weapons you need, pick a crosshair you want, download and unzip to /custom/.

https://cfg.tf/tools/crosshairs/

I've also made a searchable list of all the weapons' script names in case you just want to manually edit them

https://cfg.tf/tools/crosshairs/names

Feel free to report any bugs and request other crosshairs or features in [url=https://www.teamfortress.tv/40869/cfg-tf]cfg.tf thread[/url] or in [url=https://discord.gg/79cbsTu]Discord[/url].

Thanks to @Tob and other people for helping me out with filenames.[/quote]
god i want to marry u
88
#88
match.tf
2 Frags +
lethYou should probably mention that this does not work with the no explosions mod as they share the same files, and you should probably tell them that they need to merge them.

also i think u should add these

https://www.dropbox.com/sh/s6gf2p9eoq30n57/AACOguviMZUl4RqZyUbjaDcma?dl=0 - better looking wings

https://www.dropbox.com/sh/2u40r1nsr6yzfmt/AACH8bMlXZzCfgoeiOIHfsrha?dl=0 - default scout no shadow

also maybe add a way to chose 1 crosshair for all weapons and then change the ones you want.

good point. all done

[quote=leth]
You should probably mention that this does not work with the no explosions mod as they share the same files, and you should probably tell them that they need to merge them.

also i think u should add these

https://www.dropbox.com/sh/s6gf2p9eoq30n57/AACOguviMZUl4RqZyUbjaDcma?dl=0 - better looking wings

https://www.dropbox.com/sh/2u40r1nsr6yzfmt/AACH8bMlXZzCfgoeiOIHfsrha?dl=0 - default scout no shadow

also maybe add a way to chose 1 crosshair for all weapons and then change the ones you want.[/quote]

good point. all done
89
#89
0 Frags +

Holy shit this is nice. Thank you guys. Also, would there be a possibility in the future to merge the crosshairs with the no explosion script already in the site?

Holy shit this is nice. Thank you guys. Also, would there be a possibility in the future to merge the crosshairs with the no explosion script already in the site?
90
#90
2 Frags +
paiCHoly shit this is nice. Thank you guys. Also, would there be a possibility in the future to merge the crosshairs with the no explosion script already in the site?

Maybe have the user choose a no explosions script first then choose xhairs?

[quote=paiC]Holy shit this is nice. Thank you guys. Also, would there be a possibility in the future to merge the crosshairs with the no explosion script already in the site?[/quote]

Maybe have the user choose a no explosions script first then choose xhairs?
1 2 3 4
Please sign in through STEAM to post a comment.