Created
July 24, 2024 14:33
-
-
Save kus/ad216e05a1704187b57433b669da6971 to your computer and use it in GitHub Desktop.
CS2 Rainbow HUD + Crosshair config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place in C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\autoexec.cfg | |
// To get your existing binds type "host_writeconfig" in console and find your config at C:\Program Files (x86)\Steam\userdata\<steamID3>\730\remote\cs2_user_keys.vcfg | |
// Rainbow HUD and Crosshair | |
// by Kus https://steamcommunity.com/id/kus/ | |
// Type "rainbow" in console for help | |
// For the keys you want to make the rainbow cycle, add "; rainbow_cycle" to the end of the binds | |
// i.e. for the W key: bind "w" "+forward; rainbow_cycle" | |
// See an example of default binds at the bottom | |
// If you want to disable the rainbow hud comment the rainbow_hud line below by putting // in front of alias | |
alias rainbow_hud "rainbow_hud_1" | |
// If you want to disable the rainbow crosshair comment the rainbow_crosshair line below by putting // in front of alias | |
alias rainbow_crosshair "rainbow_crosshair_1" | |
// End of editing | |
// Help command | |
alias rainbow "echo Rainbow HUD and Crosshair by Kus steamcommunity.com/id/kus/; echo Add 'rainbow_cycle' to the end of your binds you want to change the color;echo Enable:; echo - HUD - rainbow_hud_enable; echo - Crosshair - rainbow_crosshair_enable; echo - HUD + Crosshair - rainbow_enable; echo Disable:; echo - HUD - rainbow_hud_disable; echo - Crosshair - rainbow_crosshair_disable; echo - HUD + Crosshair - rainbow_disable" | |
// Disable | |
alias rainbow_hud_disable "cl_hud_color 2; alias rainbow_hud" | |
alias rainbow_crosshair_disable "cl_crosshaircolor 1; alias rainbow_crosshair" | |
alias rainbow_disable "rainbow_hud_disable; rainbow_crosshair_disable" | |
// Enable | |
alias rainbow_hud_enable "alias rainbow_hud rainbow_hud_1" | |
alias rainbow_crosshair_enable "alias rainbow_crosshair rainbow_crosshair_1" | |
alias rainbow_enable "rainbow_hud_enable; rainbow_crosshair_enable" | |
// Rainbow HUD | |
// cl_hud_color 0 = team color, 1 = white, 2 = bright white, 3 = light blue, 4 = blue, 5 = purple, 6 = red, 7 = orange, 8 = yellow, 9 = green, 10 = aqua, 11 = pink, 12 = teammate color | |
alias rainbow_hud_1 "cl_hud_color 2; alias rainbow_hud rainbow_hud_2" // bright white | |
alias rainbow_hud_2 "cl_hud_color 3; alias rainbow_hud rainbow_hud_3" // light blue | |
alias rainbow_hud_3 "cl_hud_color 4; alias rainbow_hud rainbow_hud_4" // blue | |
alias rainbow_hud_4 "cl_hud_color 5; alias rainbow_hud rainbow_hud_5" // purple | |
alias rainbow_hud_5 "cl_hud_color 6; alias rainbow_hud rainbow_hud_6" // red | |
alias rainbow_hud_6 "cl_hud_color 7; alias rainbow_hud rainbow_hud_7" // orange | |
alias rainbow_hud_7 "cl_hud_color 8; alias rainbow_hud rainbow_hud_8" // yellow | |
alias rainbow_hud_8 "cl_hud_color 9; alias rainbow_hud rainbow_hud_9" // green | |
alias rainbow_hud_9 "cl_hud_color 10; alias rainbow_hud rainbow_hud_10" // aqua | |
alias rainbow_hud_10 "cl_hud_color 11; alias rainbow_hud rainbow_hud_1" // pink | |
// Rainbow Crosshair | |
// cl_crosshaircolor 0 = red, 1 = green, 2 = yellow, 3 = blue, 4 = aqua, 5 = white | |
alias rainbow_crosshair_1 "cl_crosshaircolor 5; alias rainbow_crosshair rainbow_crosshair_2" // white | |
alias rainbow_crosshair_2 "cl_crosshaircolor 4; alias rainbow_crosshair rainbow_crosshair_3" // aqua | |
alias rainbow_crosshair_3 "cl_crosshaircolor 3; alias rainbow_crosshair rainbow_crosshair_4" // blue | |
alias rainbow_crosshair_4 "cl_crosshaircolor 1; alias rainbow_crosshair rainbow_crosshair_5" // green | |
alias rainbow_crosshair_5 "cl_crosshaircolor 0; alias rainbow_crosshair rainbow_crosshair_6" // red | |
alias rainbow_crosshair_6 "cl_crosshaircolor 2; alias rainbow_crosshair rainbow_crosshair_7" // yellow | |
alias rainbow_crosshair_7 "cl_crosshaircolor 2; alias rainbow_crosshair rainbow_crosshair_8" // yellow | |
alias rainbow_crosshair_8 "cl_crosshaircolor 1; alias rainbow_crosshair rainbow_crosshair_9" // green | |
alias rainbow_crosshair_9 "cl_crosshaircolor 4; alias rainbow_crosshair rainbow_crosshair_10" // aqua | |
alias rainbow_crosshair_10 "cl_crosshaircolor 3; alias rainbow_crosshair rainbow_crosshair_1" // blue | |
echo "Kus' CS2 Rainbow HUD v1.0 loaded" | |
alias rainbow_cycle "rainbow_hud; rainbow_crosshair" | |
// An example of setting default keys to cycle the rainbow | |
// Weapon selection | |
bind "1" "slot1; rainbow_cycle" // Primary | |
bind "2" "slot2; rainbow_cycle" // Secondary | |
bind "3" "slot3; rainbow_cycle" // Knife / Zeus x27 | |
bind "4" "slot4; rainbow_cycle" // Cycle Grenades | |
bind "5" "slot5; rainbow_cycle" // Bomb | |
bind "6" "slot6; rainbow_cycle" // HE Grenade | |
bind "7" "slot7; rainbow_cycle" // Flashbang | |
bind "8" "slot8; rainbow_cycle" // Smoke Grenade | |
bind "9" "slot9; rainbow_cycle" // Decoy Grenade | |
bind "0" "slot10;rainbow_cycle" // Molotov Cocktail | |
// Movement | |
bind "w" "+forward; rainbow_cycle" | |
bind "s" "+back; rainbow_cycle" | |
bind "a" "+left; rainbow_cycle" | |
bind "d" "+right; rainbow_cycle" | |
bind "MOUSE1" "+attack; rainbow_cycle" | |
bind "MOUSE2" "+attack2; rainbow_cycle" | |
bind "SPACE" "+jump; rainbow_cycle" | |
bind "CTRL" "+duck; rainbow_cycle" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment