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?
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?
either make your own crosshair that resambles crosshair6 or you should use a bind to switch crosshairs between weapons, why won't you?
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.
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.
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
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]
Okay, I figured out how to switch built-in crosshairs using the weapon scripts.
- Open tf2_misc_dir.vpk in GCFScape.
- Go to root\materials\vgui\crosshairs
- Extract the .vmt files from there.
- Put the .vmt files in materials/vgui/replay/thumbnails, where custom crosshair files would go.
- Indicate the crosshair file in the weapon script .txt:
"crosshair" { "file" "vgui/replay/thumbnails/crosshairname" "x" "0" "y" "0" "width" "64" "height" "64" }
- 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.
[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].
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
[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
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.
I want to use the small green cross with outline thing that DD5f uses, but I also have a crosshair switcher.
#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
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
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?
https://pastebin.com/mdeigJpx
I hope this will be useful.
I hope this will be useful.
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've tried converting back to ctx and removing custom txt
ik that the jarate/milk have least relevancy regarding crosshair but i like consistency
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
[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
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
[s]edit: its named tf_weapon_pep_brawler_blaster[/s]
It’s tf_weapon_handgun_scout_secondary thx rip
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.
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.
Does anyone have the weapon scripts for the 4 new weapons? Thank
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
http://www2.zippyshare.com/pd/M0gkJagl/35739/pyroweapons.zip
the gas passer uses same crosshair as jarate
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
http://www2.zippyshare.com/pd/M0gkJagl/35739/pyroweapons.zip
the gas passer uses same crosshair as jarate[/quote]
Tyty
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.
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
if you have the no explosions script you have to take that out first
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
Can anyone here confirm that everything here is correct and also point out missing filenames?
https://pastebin.com/9Km0jU7p
https://pastebin.com/9Km0jU7p
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
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
Tob200Can anyone here confirm that everything here is correct and also point out missing filenames?dragon's fury = tf_weapon_rocketlauncher_fireball
https://pastebin.com/9Km0jU7p
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.
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.
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.
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.
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
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
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.
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.
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
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
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
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
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?
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?
Maybe have the user choose a no explosions script first then choose xhairs?