Jump to content
  • 0
Liquid

Colour changing script

Question

I don't use the same crosshair colour for all of the maps. For example I use white in Braundorf, red in oasis and cyan in most of the other maps. Its annoying changing it from ESC menu all the time. I was wondering if someone could make a script for me that would change the colour with one key?

Thanks :)

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I can make that, I reckon..

 

What colours would you like it to cycle through, and in what order?

Share this post


Link to post
Share on other sites
  • 0

set crosshr "vstr crosshaircolor0"
set crosshaircolor0 "cg_crosshairColorAlt cyan; set crosshr vstr crosshaircolor1"
set crosshaircolor1 "cg_crosshairColorAlt red; set crosshr vstr crosshaircolor2"
set crosshaircolor2 "cg_crosshairColorAlt white; set crosshr vstr crosshaircolor0"
bind "kp_slash" "vstr crosshr"

 

Change the kp_slash to whatever key you want if you don't have a numberpad.

Share this post


Link to post
Share on other sites
  • 0

set crosshr "vstr crosshaircolor0"
set crosshaircolor0 "cg_crosshairColorAlt cyan; set crosshr vstr crosshaircolor1"
set crosshaircolor1 "cg_crosshairColorAlt red; set crosshr vstr crosshaircolor2"
set crosshaircolor2 "cg_crosshairColorAlt white; set crosshr vstr crosshaircolor0"
bind "kp_slash" "vstr crosshr"

 

Change the kp_slash to whatever key you want if you don't have a numberpad.

 

Beat me to it :D Nice one :)

Share this post


Link to post
Share on other sites
  • 0

Aha, thanks alot man works great!

But I use the dot as my crosshair and when i tried the script it didnt work, and i removed "Alt" from

"set crosshaircolor2 "cg_crosshairColorAlt white; set crosshr vstr crosshaircolor0"

and the rest of them and it worked :D

Thanks again!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×