Upvote Upvoted 0 Downvote Downvoted
Switch crosshair with a key
posted in Customization
1
#1
-1 Frags +

Hey everyone,
I am trying to make a script, where when I press a key, the crosshair would switch to another. Im hoping to get a bind button, I.E. I would be with crosshair 2 at all times, and whenever I press "m", the crosshair would switch to crosshair 5. When I release m, the crosshair would swtich to crosshair 2 again.
So far I have this, but it doesnt work. Could anyone help me?

alias dotxhairtype "dotxhairtypeb"
alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 32;alias dotxhairtype dotxhairtyper"
alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtypeb"

bind m +dotxhairtype

Thanks :)

Hey everyone,
I am trying to make a script, where when I press a key, the crosshair would switch to another. Im hoping to get a bind button, I.E. I would be with crosshair 2 at all times, and whenever I press "m", the crosshair would switch to crosshair 5. When I release m, the crosshair would swtich to crosshair 2 again.
So far I have this, but it doesnt work. Could anyone help me?
[code]
alias dotxhairtype "dotxhairtypeb"
alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 32;alias dotxhairtype dotxhairtyper"
alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtypeb"

bind m +dotxhairtype
[/code]
Thanks :)
2
#2
0 Frags +

You have to bind it like this: bind m dotxhairtype

The rest looks fine!

You have to bind it like this: bind m dotxhairtype

The rest looks fine!
3
#3
0 Frags +

Dumb things.

Dumb things.
4
#4
0 Frags +

Great it works, thanks :)
Would you happen to know how I would make it a toggle button? IE Crosshair 5 only shows up when pressing m and disappears upon releasing?
Thanks for your help

Great it works, thanks :)
Would you happen to know how I would make it a toggle button? IE Crosshair 5 only shows up when pressing m and disappears upon releasing?
Thanks for your help
5
#5
0 Frags +

dumb things flappi fixed

dumb things flappi fixed
6
#6
0 Frags +
TysroneI'm going to take flappi's post and make it to your liking:

alias -CH1 "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH2 "cl_crosshair_file crosshair5; cl_crosshair_scale 14"

bind m "+CH2"

I'm pretty sure it'll work

Hey, :) thanks for the help, however the m now doesnt seem to do anything. Any ideas?

[quote=Tysrone]I'm going to take flappi's post and make it to your liking:

alias -CH1 "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH2 "cl_crosshair_file crosshair5; cl_crosshair_scale 14"

bind m "+CH2"

I'm pretty sure it'll work[/quote]
Hey, :) thanks for the help, however the m now doesnt seem to do anything. Any ideas?
7
#7
0 Frags +

more dumb things flappi fixed

more dumb things flappi fixed
8
#8
3 Frags +

alias -CH "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH "cl_crosshair_file crosshair5; cl_crosshair_scale 14"

Bind M "+CH"

Fixed it.

alias -CH "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH "cl_crosshair_file crosshair5; cl_crosshair_scale 14"

Bind M "+CH"

Fixed it.
9
#9
0 Frags +
Flappialias -CH "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH "cl_crosshair_file crosshair5; cl_crosshair_scale 14"

Bind M "+CH"

Fixed it.

I'm dumb, forgot to take the numbers out, uggh

[quote=Flappi]alias -CH "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH "cl_crosshair_file crosshair5; cl_crosshair_scale 14"

Bind M "+CH"

Fixed it.[/quote]
I'm dumb, forgot to take the numbers out, uggh
10
#10
5 Frags +

Great!! Thank you so much! Man this forum is the best. Every time I have an issue, there are always people here to help me fix it within like 10 minutes. Thanks again :)

Great!! Thank you so much! Man this forum is the best. Every time I have an issue, there are always people here to help me fix it within like 10 minutes. Thanks again :)
Please sign in through STEAM to post a comment.