Scripts

Smokebaron / Scripts

Scripts

Jumpthrow Script

//Jumpthrow
alias "+jumpthrow" "+jump; -attack; -attack2" 
alias "-jumpthrow" "-jump" 

bind "KEY" "+jumpthrow"

// Replace "KEY" with one key of your keyboard.
// For Jumpthrow, activate the grenade with Mouse1 or Mouse2 and then press your jumpthrow-key (above).

Crosshair Script

bind "KEY" "toggle cl_crosshairsize 1000 X; toggle cl_crosshairgap -4 Y"	

// Replace "Key" with one key of your keyboard
// Replace "X" with the value of your cl_crosshairsize
// Replace "Y" with the value of your cl_crosshairgap

Hand Script

// If you play with the weapon in your right hand
bind "KEY" "toggle cl_righthand 0 1"	

// If you play with the weapon in your left hand
bind "KEY" "toggle cl_righthand 1 0"

// Replace "KEY" with one key of your keyboard		

Weaponmodel Script

// Only necessary if you are not playing with classic view
bind "KEY" "toggle viewmodel_presetpos 3 Z"	

// Replace "KEY" with one key of your keyboard	
// Replace "Z" with your viewmodel_presetpos (Classic=3, Couch=2, Desktop=1)

Combine all toggle scripts at one key

// You can combine all toggle scripts at one key

// If you play with the weapon in your left hand
bind "KEY" "toggle cl_crosshairsize 1000 X; toggle cl_crosshairgap -4 Y; toggle cl_righthand 1 0; toggle viewmodel_presetpos 3 Z"

// If you play with the weapon in your right hand
bind "KEY" "toggle cl_crosshairsize 1000 X; toggle cl_crosshairgap -4 Y; toggle cl_righthand 0 1; toggle viewmodel_presetpos 3 Z"

// Replace "KEY" with one key of your keyboard.	
// Replace "X" with the value of your cl_crosshairsize
// Replace "Y" with the value of your cl_crosshairgap
// Replace "Z" with your viewmodel_presetpos (Classic=3, Couch=2, Desktop=1)

Go to your steam location in Windows: C:\Program Files (x86)\Steam\userdata\19782639\730\local\cfg

Folder “19782639” will be different and was created when you started the game the first time. Create a “yourname.cfg” (just rename a .txt file) and fill it with every toggle, alias script or bind you want to use. Open your config.cfg and write following at the end: exec yourname.cfg.

Now CS:GO will execute the yourname.cfg when it starts and all binds, toggle or alias scripts are activated.

Example yourname.cfg

alias "+jumpthrow" "+jump; -attack; -attack2" 
alias "-jumpthrow" "-jump" 

bind "Mouse5" "+jumpthrow"

bind "x" "toggle cl_crosshairsize 1000 2; toggle cl_crosshairgap -4 1; toggle cl_righthand 0 1; toggle viewmodel_presetpos 3 2"