Upvote Upvoted 3 Downvote Downvoted
I need a really basic script.
posted in Q/A Help
1
#1
0 Frags +

Could I get a simple script that switches between crosshair 7 and 5?
When I press '-' I want it to switch between the dot and the plus.

And if someone has the time, another script that cycles through crosshair colours, r0 g255 b255 (cyan), r0 b0 g255 (neon green) and r255 g255 b255 (white).

Could I get a simple script that switches between crosshair 7 and 5?
When I press '-' I want it to switch between the dot and the plus.

And if someone has the time, another script that cycles through crosshair colours, r0 g255 b255 (cyan), r0 b0 g255 (neon green) and r255 g255 b255 (white).
2
#2
-4 Frags +
Astrin_And if someone has the time, another script that cycles through crosshair colours, r0 g255 b255 (cyan), r0 b0 g255 (neon green) and r255 g255 b255 (white)..

This was a top post on the csgo subreddit a few months ago, you could try looking there

[quote=Astrin_]And if someone has the time, another script that cycles through crosshair colours, r0 g255 b255 (cyan), r0 b0 g255 (neon green) and r255 g255 b255 (white)..[/quote]

This was a top post on the csgo subreddit a few months ago, you could try looking there
3
#3
6 Frags +
bind - "chtoggle"
alias chtoggle "ch7" //starts with crosshair7
alias ch7 "cl_crosshair_file crosshair7; alias chtoggle ch5"
alias ch5 "cl_crosshair_file crosshair5; alias chtoggle ch7"
bind KEY "chcolour" //change to whatever key you want
alias chcolour "chcyan" //starts with cyan
alias chcyan "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chgreen"
alias chgreen "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; alias chcolour chwhite"
alias chwhite "cl_crosshair_red 255; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chcyan"

those should work I think, add me if they don't
also scripting is pretty easy and a nice skill to have, here's a simple guide to get started: Link

[code]bind - "chtoggle"
alias chtoggle "ch7" //starts with crosshair7
alias ch7 "cl_crosshair_file crosshair7; alias chtoggle ch5"
alias ch5 "cl_crosshair_file crosshair5; alias chtoggle ch7"[/code]

[code]bind KEY "chcolour" //change to whatever key you want
alias chcolour "chcyan" //starts with cyan
alias chcyan "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chgreen"
alias chgreen "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; alias chcolour chwhite"
alias chwhite "cl_crosshair_red 255; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chcyan"[/code]

those should work I think, add me if they don't
also scripting is pretty easy and a nice skill to have, here's a simple guide to get started: [url=http://forums.steampowered.com/forums/showthread.php?t=709568]Link[/url]
4
#4
3 Frags +
Khan
bind - "chtoggle"
alias chtoggle "ch7" //starts with crosshair7
alias ch7 "cl_crosshair_file crosshair7; alias chtoggle ch5"
alias ch5 "cl_crosshair_file crosshair5; alias chtoggle ch7"
bind KEY "chcolour" //change to whatever key you want
alias chcolour "chcyan" //starts with cyan
alias chcyan "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chgreen"
alias chgreen "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; alias chcolour chwhite"
alias chwhite "cl_crosshair_red 255; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chcyan"

those should work I think, add me if they don't
also scripting is pretty easy and a nice skill to have, here's a simple guide to get started: Link

Found one with a slower cycle.

[quote=Khan][code]bind - "chtoggle"
alias chtoggle "ch7" //starts with crosshair7
alias ch7 "cl_crosshair_file crosshair7; alias chtoggle ch5"
alias ch5 "cl_crosshair_file crosshair5; alias chtoggle ch7"[/code]

[code]bind KEY "chcolour" //change to whatever key you want
alias chcolour "chcyan" //starts with cyan
alias chcyan "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chgreen"
alias chgreen "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; alias chcolour chwhite"
alias chwhite "cl_crosshair_red 255; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chcyan"[/code]

those should work I think, add me if they don't
also scripting is pretty easy and a nice skill to have, here's a simple guide to get started: [url=http://forums.steampowered.com/forums/showthread.php?t=709568]Link[/url][/quote]

[url=http://pastebin.com/BYyXfvin]Found one with a slower cycle.[/url]
5
#5
1 Frags +

,

,
6
#6
2 Frags +
Firei didnt try it, but afaik you need to define chcyan before you can make chcoulour to chcyan

I'm pretty sure you don't need to define it first, but it certainly doesn't hurt to be save and do it your way

It works the same way with binds, actually:

bind KEY "whatever"
alias whatever "hud_reloadscheme"

You can bind the key without having defined the alias. Otherwise you'd have to always start the script from the end.

[quote=Fire]i didnt try it, but afaik you need to define chcyan before you can make chcoulour to chcyan
[/quote]

I'm pretty sure you don't need to define it first, but it certainly doesn't hurt to be save and do it your way

It works the same way with binds, actually:
[code]bind KEY "whatever"
alias whatever "hud_reloadscheme"[/code]
You can bind the key without having defined the alias. Otherwise you'd have to always start the script from the end.
7
#7
0 Frags +
Khan
bind - "chtoggle"
alias chtoggle "ch7" //starts with crosshair7
alias ch7 "cl_crosshair_file crosshair7; alias chtoggle ch5"
alias ch5 "cl_crosshair_file crosshair5; alias chtoggle ch7"
bind KEY "chcolour" //change to whatever key you want
alias chcolour "chcyan" //starts with cyan
alias chcyan "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chgreen"
alias chgreen "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; alias chcolour chwhite"
alias chwhite "cl_crosshair_red 255; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chcyan"

those should work I think, add me if they don't
also scripting is pretty easy and a nice skill to have, here's a simple guide to get started: Link

Thanks! Worked perfectly and I used this as a model, I made a ch size toggler!

[quote=Khan][code]bind - "chtoggle"
alias chtoggle "ch7" //starts with crosshair7
alias ch7 "cl_crosshair_file crosshair7; alias chtoggle ch5"
alias ch5 "cl_crosshair_file crosshair5; alias chtoggle ch7"[/code]

[code]bind KEY "chcolour" //change to whatever key you want
alias chcolour "chcyan" //starts with cyan
alias chcyan "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chgreen"
alias chgreen "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; alias chcolour chwhite"
alias chwhite "cl_crosshair_red 255; cl_crosshair_green 255; cl_crosshair_blue 255; alias chcolour chcyan"[/code]

those should work I think, add me if they don't
also scripting is pretty easy and a nice skill to have, here's a simple guide to get started: [url=http://forums.steampowered.com/forums/showthread.php?t=709568]Link[/url][/quote]

Thanks! Worked perfectly and I used this as a model, I made a ch size toggler!
8
#8
1 Frags +

Can confirm you don't need to define something before you bind it.

Can confirm you don't need to define something before you bind it.
Please sign in through STEAM to post a comment.