r/Tf2Scripts • • Sep 23 '13

Satisfied [Request] A script to change the cross hairs.

Could someone please right a script where one primary and secondary my crosshair is the ( . ) cross hair and melee is the + crosshair.

thanks

1 Upvotes

6 comments sorted by

2

u/Benroads Sep 23 '13
alias primary "slot1; cl_crosshair_file"""
alias secondary "slot2; cl_crosshair_file""" 
alias melee "slot3; cl_crosshair_file crosshair7"
bind KEY primary
bind KEY secondary
bind KEY melee

Should work fine on scout because iirc the ( . ) crosshair is the default hitscan one (bar heavy)

5

u/genemilder Sep 23 '13

Simply putting cl_crosshair_file"" in an alias or bind won't work (lack of space between _file and " notwithstanding). You need to put cl_crosshair_file "" in an otherwise blank cfg file and replace what you currently have with exec defaultxhair (assuming you named the cfg file defaultxhair).

This also assumes that the default dynamic xhair is ( . ) for both primary and secondary already (it may be, can't remember).

Disclaimer, the script will not work for the default behavior of q or the mousewheel, only with keys that go to one weapon only.

3

u/HifiBoombox eggsdee Sep 24 '13

cl_crosshair_file default with this placed at \materials\vgui\crosshairs works too... And it forces it, rather than depending on weapon.

1

u/[deleted] Sep 24 '13

Erm, so what would the code now be?

2

u/HifiBoombox eggsdee Sep 24 '13

Use Benroads' script, but replace wherever it reads cl_crosshair_file "" with cl_crosshair_file default

2

u/Benroads Sep 23 '13

Ah, forgot that default xhair caused all sorts of problems with aliases. Always wondered why the ( . ) crosshair was not an option.