Last active
January 26, 2019 01:48
-
-
Save dnordstrom/2141227b59f5a723b5fa66b11408231f to your computer and use it in GitHub Desktop.
D's CSGO Configuration
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
//// | |
// NORD’S CS:GO CONFIGURATION | |
// Current "autoexec.cfg" file, including sensitivity, custom commands and | |
// aliases, crosshair, HUD and viewmodel, key binds, net settings, and a few | |
// other small tweaks. | |
// | |
// USAGE | |
// Place in "Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg" | |
// to load from any Steam account by running "exec autoexec" in console. | |
// Add "+exec autoexec" to launch options to autoload on game launch. | |
// | |
// LAUNCH OPTIONS | |
// -high : Runs "csgo.exe" at high process priority to prevent lag | |
// when streaming | |
// -novid : Disables intro | |
// -tickrate 128 : Forces 128-tick on private servers such as workshop maps | |
// -console : Opens console on launch to save an entire keystroke when | |
// connecting via IP | |
// +exec autoexec : Loads "autoexec.cfg" on launch | |
// | |
// Keep it simple. Delete all of your launch options. Yes, all of them--most | |
// don't work anyway. Now launch the game and add back the ones you miss, if | |
// you even notice anything is gone. | |
// | |
// | |
// DISCLAIMER | |
// Using "-high" and "-threads" is definitely not recommended. In my case, | |
// they're a last resort balanced with specific OBS settings to minimize lag | |
// in-game and avoid encoding overload in OBS when streaming on this | |
// particular setup. In most cases, they're more likely to reduce performance | |
// than increase it. | |
// | |
// AUTHOR | |
// Daniel Nordstrom <[email protected]> | |
// | |
// DATE | |
// 10/08/2018 | |
// | |
// VERSION | |
// 0.1.1 | |
// | |
// SEE ALSO | |
// - List of CS:GO Cvars | |
// https://developer.valvesoftware.com/wiki/List_of_CS:GO_Cvars | |
// - How To Set Your New CS:GO Rates | |
// https://cswarzone.com/set-new-csgo-rates/ | |
// - In depth discussion of the -threads launch option | |
// https://www.reddit.com/r/GlobalOffensive/comments/5y8r7v/in_depth_ | |
// discussion_of_the_threads_launch_option/ | |
// - https://www.reddit.com/r/GlobalOffensive/comments/3zqtvm/improved_csgo_ | |
// sound_why_the_popular_settings_suck/ | |
//// | |
// | |
// Sensitivity | |
// | |
sensitivity "1.55" | |
zoom_sensitivity_ratio_mouse "1" | |
m_rawinput "1" | |
// | |
// Crosshair | |
// | |
cl_crosshair_drawoutline "1" | |
cl_crosshair_outlinethickness "1" | |
cl_crosshaircolor "5" | |
cl_crosshaircolor_b "255" | |
cl_crosshaircolor_g "255" | |
cl_crosshaircolor_r "255" | |
cl_crosshairgap "-1" | |
cl_crosshairsize "3.5" | |
cl_crosshairstyle "4" | |
cl_crosshairthickness "1" | |
cl_crosshairusealpha "0" | |
cl_crosshair_sniper_width "2" | |
// | |
// Viewmodel | |
// | |
viewmodel_fov "68" | |
// viewmodel_offset_x "2" | |
// viewmodel_offset_y "2" | |
// viewmodel_offset_z "-2" | |
viewmodel_presetpos "3" | |
cl_bob_lower_amt "5" | |
cl_bobamt_lat "0.1" | |
cl_bobamt_vert "0.1" | |
cl_bobcycle "0.98" | |
cl_viewmodel_shift_left_amt "0.5" | |
cl_viewmodel_shift_right_amt "0.25" | |
// | |
// Aliases | |
// | |
// Disconnect | |
alias "q" "exit" | |
alias "dc" "disconnect" | |
alias "+leave" "say ggwp" | |
alias "-leave" "disconnect" | |
// Handicap mode disables crouch, walk, inspect, and knife | |
alias "handicap" "unbind CTRL; unbind SHIFT; unbind T; unbind 3; alias togglehandicap unhandicap;" | |
alias "unhandicap" "bind CTRL +duck; bind SHIFT +speed; bind T +lookatweapon; bind 3 slot3; alias togglehandicap handicap;" | |
alias "togglehandicap" "handicap" | |
// Shortcut to toggle right-handed viewmodel | |
alias "+switchhands" "toggle cl_righthand 0 1" | |
// Show net_graph when viewing scoreboard (unless "net_graph 0") | |
// Avoid any inaccuracy or delay caused by toggling on/off "net_graph": instead | |
// keep net_graph enabled, hiding it outside of screen instead of disabling it. | |
// This also makes these commands use any "net_graph" value set anywhere, by | |
// config file or manually using console. | |
net_graph "1" | |
net_graphheight "9999" | |
alias "+showinfo" "net_graphheight 0; +showscores;" | |
alias "-showinfo" "net_graphheight 9999; -showscores;" | |
// | |
// Binds | |
// | |
bind "`" "toggleconsole" | |
bind "1" "slot1" | |
bind "2" "slot2" | |
bind "3" "slot3" | |
bind "4" "slot4" | |
bind "5" "slot5" | |
bind "6" "slot6" | |
bind "7" "slot7" | |
bind "8" "slot8" | |
bind "9" "slot9" | |
bind "q" "lastinv" | |
bind "e" "+use" | |
bind "r" "+reload" | |
bind "t" "+lookatweapon" | |
bind "y" "+spray_menu" | |
bind "g" "drop" | |
bind "w" "+forward" | |
bind "s" "+back" | |
bind "a" "+moveleft" | |
bind "d" "+moveright" | |
bind "f" "use weapon_flashbang" | |
bind "c" "use weapon_smokegrenade" | |
bind "x" "use weapon_hegrenade" | |
bind "z" "use weapon_molotov" | |
bind "b" "buymenu" | |
bind "m" "teammenu" | |
bind "n" "r_cleardecals" // Clear blood/bullet holes using key | |
bind "=" "messagemode" | |
bind "-" "messagemode2" | |
bind "MOUSE1" "+attack" | |
bind "MOUSE2" "+attack2" | |
bind "MOUSE3" "r_cleardecals" // Clear blood/bullet holes using mouse | |
bind "MOUSE5" "+voicerecord" | |
bind "MWHEELUP" "use weapon_flashbang" // Scroll up for flash | |
bind "MWHEELDOWN" "+jump" // Scroll down for speed demon | |
bind "F1" "buy ak47; give weapon_ak47;" | |
bind "F2" "buy mp5sd; give weapon_mp5sd;" | |
bind "F3" "buy p250; give weapon_p250;" | |
bind "F4" "buy deagle; give weapon_deagle;" | |
bind "F5" "buy flashbang; give weapon_flashbang;" | |
bind "F6" "buy smokegrenade; give weapon_smokegrenade;" | |
bind "F7" "buy hegrenade; give weapon_hegrenade;" | |
bind "F8" "buy molotov; give weapon_molotov;" | |
bind "F9" "buy vesthelm" | |
bind "F10" "buy vest" | |
bind "F11" "buy defuser" | |
bind "F12" "buy decoy; give weapon_decoy;" | |
bind "CTRL" "+duck" | |
bind "SHIFT" "+speed" | |
bind "SPACE" "+jump" | |
bind "RSHIFT" "+switchhands" // Caps Lock key remapped to Right Shift | |
bind "RCTRL" "+voicerecord" // Left Windows key remapped to Right Control | |
bind "ALT" "-attack" // Use Alt+Space to jumpthrow | |
bind "ESCAPE" "cancelselect" | |
bind "TAB" "+showinfo" | |
bind "BACKSPACE" "+leave" | |
bind "UPARROW" "volume 0.4" | |
bind "DOWNARROW" "volume 0" | |
bind "LEFTARROW" "voice_scale 0" | |
bind "RIGHTARROW" "voice_scale 0.4" | |
bind "PGUP" "incrementvar sensitivity 0 7 0.05" | |
bind "PGDN" "incrementvar sensitivity 0 7 -0.05" | |
// | |
// Audio | |
// | |
volume "0" // Mute on launch (press UPARROW for sound) | |
voice_enable "1" | |
voice_mixer_volume "1" // Microphone Windows volume | |
voice_scale "0.4" | |
snd_mixahead "0.025" // Reduce latency, as low as possible without distortion | |
snd_prefetch_common "0" // Pre-fetch certain audio files @testing | |
snd_deathcamera_volume "0" | |
snd_mapobjective_volume "0" | |
snd_menumusic_volume "0" | |
snd_musicvolume "0" | |
snd_mute_losefocus "0" // Play game sound when tabbed out | |
snd_roundend_volume "0.1" | |
snd_roundstart_volume "0" | |
snd_tensecondwarning_volume "0" | |
// | |
// HUD | |
// | |
cl_hud_radar_scale "1.15" | |
cl_radar_always_centered "0" | |
cl_radar_rotate "1" | |
cl_radar_scale "0.4" | |
cl_teamid_overhead_always "2" | |
hud_scaling "0.75" | |
hud_showtargetid "0" | |
// | |
// Rates & Interpolation | |
// | |
fps_max "300" // 300 to avoid noticeable drops by capping at stable framerate | |
rate "786432" // Max (for >6Mb/s down; for slower connections, check SEE ALSO) | |
cl_cmdrate "128" | |
cl_updaterate "128" | |
// For ideal network conditions (LAN or very low ping) | |
// cl_interp "0" // Adjusts itself automatically | |
// cl_interp_ratio "1" // Low interpolation | |
// For varying network conditions (most online conditions) | |
// cl_interp "1" // Adjusts itself automatically | |
// cl_interp_ratio "2" // Increased interpolation | |
// Experiment | |
cl_interp "0" | |
cl_interp_ratio "1.5" | |
// | |
// Miscellaneous | |
// | |
cl_autohelp "0" | |
cl_autowepswitch "0" | |
cl_disablehtmlmotd "0" | |
cl_forcepreload "0" // Testing (default "0") | |
cl_showhelp "0" | |
mat_queue_mode "-1" // Automatic thread mode (multi-core unless "-threads 1") | |
mm_dedicated_search_maxping "70" | |
net_graphproportionalfont "0" | |
r_drawtracers_firstperson "1" | |
// | |
// Write to "config.cfg" | |
// | |
host_writeconfig | |
// | |
// Done | |
// | |
clear | |
echo "" | |
echo "" | |
echo "##########################################" | |
echo "# Configuration loaded from autoexec.cfg #" | |
echo "##########################################" | |
echo "" | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment