Upvote Upvoted 2 Downvote Downvoted
Default Crosshair Scripting
1
#1
0 Frags +

I have a question about the default crosshairs. Is it possible to set them up inside of an alias? For example

alias default "cl_crosshair_file """

When I try to set it up this way it doesn't work. I'm basically just curious as I can implement the defaults into my crosshair switching script in a different way. I've also tried

alias default " cl_crosshair_file "" "

since I imagine the problem is with the syntax. Anyone have any idea why this doesn't work?

I have a question about the default crosshairs. Is it possible to set them up inside of an alias? For example
[code]
alias default "cl_crosshair_file """
[/code]
When I try to set it up this way it doesn't work. I'm basically just curious as I can implement the defaults into my crosshair switching script in a different way. I've also tried
[code]
alias default " cl_crosshair_file "" "
[/code]
since I imagine the problem is with the syntax. Anyone have any idea why this doesn't work?
2
#2
6 Frags +

What I did was I just made a new file called

reset_default_crosshair.cfg

and then just called it whenever I wanted to reset it:

exec reset_default_crosshair.cfg
What I did was I just made a new file called

reset_default_crosshair.cfg

and then just called it whenever I wanted to reset it:

[quote]exec reset_default_crosshair.cfg[/quote]
3
#3
0 Frags +

cool idea, I'll give that a try now.

cool idea, I'll give that a try now.
4
#4
0 Frags +

create defaultch.cfg

put cl_crosshair_file "" and maybe other commands (color etc.) in

alias defaultch "exec defaultch.cfg"

profit :D

create defaultch.cfg

put cl_crosshair_file "" and maybe other commands (color etc.) in

alias defaultch "exec defaultch.cfg"

profit :D
5
#5
4 Frags +
f_bluecreate defaultch.cfg

put cl_crosshair_file "" and maybe other commands (color etc.) in

alias defaultch "exec defaultch.cfg"

profit :D

literally exactly what i posted

[quote=f_blue]create defaultch.cfg

put cl_crosshair_file "" and maybe other commands (color etc.) in

alias defaultch "exec defaultch.cfg"

profit :D[/quote]


literally exactly what i posted
6
#6
2 Frags +
f_bluecreate defaultch.cfg

put cl_crosshair_file "" and maybe other commands (color etc.) in

alias defaultch "exec defaultch.cfg"

profit :D

yeah that's what fsXD said and it works great if anyone else is wondering.

[quote=f_blue]create defaultch.cfg

put cl_crosshair_file "" and maybe other commands (color etc.) in

alias defaultch "exec defaultch.cfg"

profit :D[/quote]
yeah that's what fsXD said and it works great if anyone else is wondering.
7
#7
0 Frags +

edit: wrong tab

[s]edit: wrong tab[/s]
Please sign in through STEAM to post a comment.