Skip to content

Instantly share code, notes, and snippets.

Last active May 25, 2023 16:00
Show Gist options
  • Save Rainyan/61f39558bf59788a8657689a8877f503 to your computer and use it in GitHub Desktop.
Save Rainyan/61f39558bf59788a8657689a8877f503 to your computer and use it in GitHub Desktop.
CS:GO binds, etc. configs
// CSGO practice config
// 60 minutes time, buy anywhere, no bots.
// Restart the game if it's in incorrect game mode.
// TODO: how to reset game mode/type?
sv_full_alltalk 1
mp_roundtime_defuse 60
ammo_grenade_limit_total 5
ammo_grenade_limit_flashbang 2
mp_maxmoney 65535
mp_startmoney 65535
mp_afterroundmoney 65535
mp_autoteambalance 0
sv_infinite_ammo 2
mp_buytime 999999
mp_buy_anywhere 1
mp_freezetime 0
mp_restartgame 1
mp_endmatch_votenextmap 0
// Trajectories are sv_cheats protected.
//sv_cheats 1
// Trajectories only shows for game host, and only on listen server.
//sv_grenade_trajectory 1
say "Free mode enabled"
echo " "
echo ##########################################
echo ## Rain cfg (2022-09-18, Windows/Linux) ##
echo ##########################################
echo " "
// Launch options (Windows):
// -high -novid -nojoy -console -toconsole -w 1280 -h 1024 -fullscreen +exec rain
// Launch options (Linux, nvidia):
// LD_PRELOAD="/usr/lib32/$LD_PRELOAD"; nvidia-settings -a "DigitalVibrance[DP-1]=400"; %command% -w 1280 -h 1024 -novid -nojoy -console -toconsole +exec rain; nvidia-settings -a "DigitalVibrance[DP-1]=0"
// Launch options (Linux, amd):
// LD_PRELOAD="/usr/lib32/$LD_PRELOAD"; %command% -w 1280 -h 1024 -novid -nojoy -console -toconsole +exec rain
// This config:
// Initialization and miscellaneous settings start here //
alias "defsens" "sensitivity 0.8"
voice_enable 1
gameinstructor_enable 0
cl_disablemotd 1
spec_show_xray 1
net_graph 1
net_graphpos 0
net_graphproportionalfont 0
volume 0.33
mm_dedicated_search_maxping 100
cl_autowepswitch 0
cl_hud_bomb_under_radar 1
cl_hud_radar_scale 0.8
cl_radar_always_centered 0
cl_radar_icon_scale_min 0.6
cl_radar_rotate 0
cl_radar_scale 0.4
cl_radar_square_with_scoreboard 1
cl_bob_lower_amt 5
// Set to globally override mic OS gain, or -1 to explicitly disallow changing it.
// Tested only on Windows, so far.
// voice_mixer_volume -1
zoom_sensitivity_ratio_mouse "0.818933"
m_pitch 0.02 //old: m_pitch 0.022. disabled because testing accel-side anisotropy.
m_yaw 0.02
m_rawinput 1
// Initialization and miscellanious settings end here //
// Performance settings start here //
fps_max 999
fps_max_menu 999
cl_interp 0
cl_interp_ratio 1
cl_interpolate 1
cl_allowdownload 0
cl_forcepreload 0
mat_queue_mode 2
snd_mixahead 0.015
r_dynamic 0 // Reasoning for this:
// Performance settings end here //
// Binds start here //
// Mouse binds
bind MOUSE1 "+attack_xhair"
bind MOUSE2 "+attack2_xhair"
bind MOUSE3 "+middlethrow"
unbind MOUSE4 // 3rd party voice
bind MOUSE5 "+voicerecord"
bind MWHEELDOWN "+jump"
bind MWHEELUP "use weapon_knife;getbestgun" // Quickswitch
// Numbers
bind 0 "slot10"
bind 1 "getbestgun"
bind 2 "getbestpistol"
bind 3 "getbestknife"
bind 4 "fastdecoy;cl_righthand 1"
bind 5 "slot5;xhair_def"
bind 6 "drop;xhair_def"
bind 7 "slot7"
bind 8 "slot8"
bind 9 "slot9"
// A-Z
bind a "cl_righthand 1"
bind b "buymenu"
bind c "fastsmoke;cl_righthand 1"
bind d "+moveleftvm"
bind e "fastflash;cl_righthand 1"
bind f "+forward"
bind g "+moverightvm"
bind h "fastmolly;cl_righthand 1"
bind i "+middlethrow"
bind j "+voicerecord"
bind k "toggleconsole"
bind l "+jumpthrow_middle"
//bind l "sm_r; sm_r" // Reset in kz/surf
bind m "clutchmute_on"
bind n "+forwardjumpthrow"
bind o "use weapon_knife" // Quickswitch
bind p "noclip;say .noclip" // sv_cheats noclip + SourceMod say noclip
bind q "+jumpthrow"
bind r "+lookatweapon"
bind s "+back"
bind t "+useinstructor"
bind u "messagemode2" // Team chat
bind v "+spray_menu"
bind w "+reload"
bind x "radio2"
bind y "messagemode" // All chat
bind z "fastfrag;cl_righthand 1"
bind - "xhair_def;slot12" // Health shot
// Keypad buy binds (only nades enabled for fast spawn rebuy)
// The disabled buy binds conflict with the left-handed binds
//bind KP_INS "buy vest" // Keypad 0
//bind KP_END "buy mac10" // Keypad 1
//bind KP_DOWNARROW "buy ump45" // Keypad 2
//bind KP_PGDN "buy defuser" // Keypad 3
//bind KP_LEFTARROW "buy nova" // Keypad 4
//bind KP_5 "buy awp" // Keypad 5
//bind KP_RIGHTARROW "buy ssg08" // Keypad 6
//bind KP_HOME "buy p250" // Keypad 7
//bind KP_UPARROW "buy fn57" // Keypad 8
//bind KP_PGUP "buy deagle" // Keypad 9
//bind KP_DEL "buy vesthelm" // Keypad ,
//bind KP_ENTER "buy ak47" // Keypad enter
bind KP_MINUS "buy smokegrenade" // Keypad -
bind KP_MULTIPLY "buy flashbang" // Keypad *
bind , "nadebuyreminder" // Comma (not on keypad)
// This bind is disabled because it overlaps with the healtshot bind (- outside numpad).
//bind - "buy molotov" // Keypad / (Using "-" because CSGO doesn't understand foreign keyboard layouts)
// Keypad binds for left-handed use
bind KP_LEFTARROW "+moveleftvm"
bind KP_5 "+forward"
bind KP_RIGHTARROW "+moverightvm"
bind KP_ENTER "+back"
bind KP_INS "+speed"
bind KP_PLUS "+duck"
bind KP_DEL "+useinstructor"
bind KP_HOME "getbestgun"
bind KP_UPARROW "getbestpistol"
bind KP_PGUP "getbestknife"
bind rightarrow "fastflash"
bind downarrow "use weapon_smokegrenade"
bind leftarrow "use weapon_molotov;use weapon_incgrenade"
//bind uparrow "use weapon_hegrenade"
bind PGDN "drop"
bind PGUP "slot5" // bomb
bind HOME "use weapon_decoy"
bind numlock "+reload"
// Meme binds
bind KP_HOME "say Flashbang grenades temporarily blind anyone who sees them go off. Be careful because this includes your team and even yourself!"
bind KP_UPARROW "say Don't forget your defuse kit in Competitive Mode! Defuse kits significantly reduce the time it takes to defuse a planted bomb."
bind KP_PGUP "say Defusing the bomb will always win the round regardless of how many enemies remain."
bind KP_LEFTARROW "say The AWP sniper rifle is very powerful and can usually kill with one shot."
bind KP_5 "say Turning your view away from a Flashbang Grenade will lessen its blinding effects."
alias meme_1 "say Sweden,Denmark and especially Finland players are the reason mainly why someone gets toxic and troll, they always got to say something that triggers me to buy Negev"
alias meme_2 "say guys please, give me some help with mental and also gaming improvement"
alias meme_3 "say I hope not to offend feelings, but for honest and not lie, the thinking ability and especially aiming ability is not good for behind Legendary Eagle Master skill rank."
alias memes = "echo 7: Flash, 8: Defkit, 9: Defused, 4: AWP, 5: Flash, meme_1: toxic, meme_2: improvement, meme_3 thinkingAbility"
// Other
bind CTRL "+duck" // Fallback duck
bind SPACE "+speed"
bind . "-duck" // Panic unduck key if A gets stuck
bind TAB "+showscores"
bind ESCAPE "cancelselect"
bind INS "host_timescale 4;demo_timescale 4" // Fast forward demos
bind DEL "host_timescale 1;demo_timescale 1" // Normal speed demos
bind END "demo_togglepause"
bind PGUP "buynadebinds_on"
//bind PGDN "r_drawothermodels 1" // (Disabled for left-handed use) Demo wireframe off
bind PAUSE "pause"
bind SHIFT "+speed" // Fallback walk
bind UPARROW "r_cleardecals"
bind F11 "sm_admin" // SourceMod
// Binds end here //
// Aliases start here //
alias +attack_xhair "+attack"
alias -attack_xhair "-attack;xhair_def"
alias +attack2_xhair "+attack2"
alias -attack2_xhair "-attack2;xhair_def"
alias xhair_lineup "xhair_donade"
// Helper echo to remember nade buy binds.
alias nadebuyreminder "echo Nade binds - flash:star, smoke:minus, molly:slash"
// Try to equip primary; if there is none, try a pistol and lastly knife.
alias getbestgun "slot3;slot2;slot1;xhair_def"
// Try to equip a pistol, if there is none, try a primary and lastly knife.
alias getbestpistol "slot3;slot1;slot2;xhair_def"
// Try to equip a knife, if there is none, try primary and lastly pistol.
alias getbestknife "slot1;slot2;slot3;xhair_def"
// Jump throw alias.
alias +jumpthrow "+jump;+attack;-attack"
alias -jumpthrow "-jump"
alias +jumpthrow_middle "+jump;+attack;+attack2;-attack;-attack2"
alias -jumpthrow_middle "-jump"
// Toggle in-game voicechat.
alias clutchmute_off "voice_enable 1;bind m clutchmute_on"
alias clutchmute_on "voice_enable 0;bind m clutchmute_off"
// Change viewmodel side depending on strafe direction.
alias +moveleftvm "+moveleft;cl_righthand 0"
alias -moveleftvm "-moveleft"
alias +moverightvm "+moveright;cl_righthand 0"
alias -moverightvm "-moveright"
// Perfect middle click throw (need to hold down before releasing).
alias +middlethrow "+attack;+attack2";
alias -middlethrow "-attack;-attack2;xhair_def"
// Use and show gameinstructor hints while held down.
alias +useinstructor "+use;gameinstructor_enable 1"
alias -useinstructor "-use;gameinstructor_enable 0"
// Clear blood from walls when shooting, useful for warmup.
alias bloodon "bind mouse1 +attack_xhair"
alias bloodoff "bind mouse1 +shootnodecals"
// Automatically clear decals when firing.
alias +shootnodecals "+attack"
alias -shootnodecals "-attack;r_cleardecals"
alias buyflash "buy flashbang"
alias buysmoke "buy smokegrenade"
alias buymolly "buy molotov"
alias buyfrag "buy hegrenade"
alias buydecoy "buy decoy"
alias defbuy1 "bind e buyflash"
alias defbuy2 "bind c buysmoke"
alias defbuy3 "bind h buymolly"
alias defbuy4 "bind z buyfrag"
alias defbuy5 "bind 4 buydecoy"
alias undofastbuybind "bind pgup buynadebinds_off"
// Allows fast double flash.
alias fastflash "use weapon_knife;use weapon_flashbang;xhair_lineup"
alias fastsmoke "use weapon_knife;use weapon_smokegrenade;xhair_lineup"
alias fastmolly "use weapon_knife;use weapon_molotov;use weapon_incgrenade;xhair_lineup"
alias fastfrag "use weapon_knife;use weapon_hegrenade;xhair_lineup"
alias fastdecoy "use weapon_knife;use weapon_decoy;xhair_lineup"
alias defequip1 "bind e fastflash"
alias defequip2 "bind c fastsmoke"
alias defequip3 "bind h fastmolly"
alias defequip4 "bind z fastfrag"
alias defequip5 "bind 4 fastdecoy"
alias dofastbuybind "bind pgup buynadebinds_on"
alias "xhair_donade" "xhair_nade1;xhair_nade2;xhair_nade3;xhair_nade4"
alias "xhair_nade1" "cl_crosshairsize 1;cl_crosshairgap -2"
alias "xhair_nade2" "cl_crosshairstyle 2;cl_crosshairthickness 1"
alias "xhair_nade3" "cl_crosshair_drawoutline 0"
alias "xhair_nade4" "cl_crosshair_dynamic_splitdist 3"
alias "xhair_def" "exec rain_crosshair"
// 128 tick Mirage T spawn smokes for this:
alias "+forwardjumpthrow" "+forward;+jump;-attack;-attack2"
alias "-forwardjumpthrow" "-jump;-forward"
// Aliases end here ///
// Crosshair settings start here //
// Set default crosshair
// Crosshair settings end here //
// Last config entry! //
// Overwrite any ingame changes on cfg load
cl_crosshairalpha "255"
cl_crosshaircolor "1"
cl_crosshaircolor_b "0"
cl_crosshaircolor_r "0"
cl_crosshaircolor_g "0"
cl_crosshairdot "0"
cl_crosshairgap "-1"
cl_crosshairsize "6"
cl_crosshairstyle "4"
cl_crosshairusealpha "1"
cl_crosshairthickness "1"
cl_fixedcrosshairgap "-1"
cl_crosshair_outlinethickness "0"
cl_crosshair_drawoutline "0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment