Skip to content

Instantly share code, notes, and snippets.

@CoolOppo
Last active August 29, 2015 13:56
Show Gist options
  • Save CoolOppo/8853486 to your computer and use it in GitHub Desktop.
Save CoolOppo/8853486 to your computer and use it in GitHub Desktop.
My autoexec.cfg
// Launch Options:
// -novid -tickrate 128 -high -threads 6
con_enable "1" // Enable the console
bind "KP_MINUS" "toggleconsole" // dash key on numpad, opens console
bind "O" "toggle voice_enable 1 0" // enables and disables voice communication when pressing O
bind "ALT" "+voicerecord" // key to use ingame voice, in this case V
bind "SEMICOLON" "ignorerad" // Will ignore ALL radio commands (Fire in the hole, need backup, etc.) This command works like a toggle, press key again to enable radio commands again
bind "F10" "quit"
bind z "use decoy" // Quit game instantly when pressing F10 without clicking OK in a popup
bind x "use incgrenade;use molotov"
bind c "use hegrenade"
bind v "use flashbang"
bind f "drop"
unbind g
bind j "messagemode"
unbind y
bind k "messagemode2"
unbind u
// .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.
// . Crosshair .
// . .
// . The crosshair. Again, as the example I used the crosshair I use. To .
// . modify it, check the following two guides: .
// . .
// . Crosshair help: http://csgohelp.com/crosshair/ .
// . Example Crosshairs: http://csgohelp.com/example-crosshairs/ .
// .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.
cl_crosshairstyle "3" // Defines look and behavior of the crosshair
// 0 = default dynamic 1 = default classic 2 = Classic slightly dynamic
// 3 = Classic dynamic 4 = Classic static 5 = Classic, slightly dynamic when shooting
cl_crosshairdot "1" // Activates dot in the middle of crosshair, set to 0 to disable
cl_crosshairgap "0" // Sets space between middle of crosshair and start of the hairs. Negative values can be used
cl_crosshairsize "3" // Sets length of the hairs, from 0 to infinity
cl_crosshairthickness "0.50" // Sets thickness of the hairs, from 0 to infinity
cl_crosshairusealpha "1" // Activates the use of cl_crosshairalpha
cl_crosshairalpha "255" // Sets transparency, 0 = fully transparent 255 = fully non-transparent
cl_crosshaircolor "5" // Sets color of crosshair
// 0 = red 1 = green 2 = yellow 3 = blue 4 = cyan 5 = own color with RGB values
cl_crosshaircolor_r "255" // cl_crosshaircolor_r, _g and _b only work when using cl_crosshaircolor "5"
cl_crosshaircolor_g "255" // Choose your own color with RGB values and put them in for these commands
cl_crosshaircolor_b "255" // Values go from 0 to 255. r = red g = green b = blue
// All 3 values set to 255 will give the crosshair a white color
cl_crosshair_drawoutline "1" // Activates black crosshair outline, good for colorblind people
cl_crosshair_outlinethickness "1" // Sets thickness of outline, choose a number between 0.1 and 3 (1 = 1px)
// /----------------------------------------\
// | Networking |
// \----------------------------------------/
rate "128000" // Maximum download bandwidth in bytes/second. Do not set lower than 80000 unless you have a bad connection
cl_cmdrate "128" // Maximum packets sent from client to server per second. Set to 64 when experiencing loss
cl_updaterate "128" // Maximum packets sent from server to client per second. Set to 64 when experiencing choke
// /----------------------------------------\
// | Graphics |
// \----------------------------------------/
fps_max "144" // Caps fps at entered value. Deactivate cap with 0, otherwise min. value is 59
fps_max_menu "144" // Caps FPS in the menu when not connected to server. Do not set lower than 10!
cl_showfps "0" // Shows fps display in top left corner. 0 = off 1 = fps and map
// 2 = fps, min fps, average fps, map 3 = server stuff 4 = fps and logged in file
net_graph "0" // 0 = disabled 1 = enabled, shows fps, ping (round trip of packets in ms), choke (percentage of reliable packets lost due to own rate), loss (percentage of reliable packets lost)
alias "+scorenet" "+showscores net_graph 1" // Aliases for showing the net graph with the scoreboard
alias "-scorenet" "-showscores net_graph 0"
bind "TAB" "+scorenet"
net_graphpos "2" // Sets position of net_graph, 1 = right 2 = center 3 = left
// Any value above 3 sets starting position of net_graph from left side of screen
cl_radar_always_centered "0" // When set to 1, dot on radar representing you will always be in the center.
// Setting it to 0 will give you more view on radar in some situations
cl_radar_icon_scale_min "0.65" // Sets size of dots on radar, 0.4 = smallest 1 = largest
cl_radar_scale "0.65" // Size/Zoom factor of minimap in radar (NOT radar itself)
// 0.25 = lowest, zoomed out 1 = highest, zoomed in
// /----------------------------------------\
// | Mouse and Sound |
// \----------------------------------------/
sensitivity "3"
m_rawinput "1" // When set to 1, mouse driver and windows settings are ignored
m_customaccel "0" // Disables custom mouse acceleration
zoom_sensitivity_ratio_mouse "1" // def. 1 - Never fuck with this! It has the correct ratio at the "1" setting. The ratio of mouse movement to on-screen movement is inconsistent at any other setting.
volume "0.30" // Overall game volume, 0 = 0% 0.5 = 50% 1 = 100%
snd_musicvolume "0.15" // Music volume (menu music, round end music), 0 = 0% 1 = 100%
snd_headphone_pan_exponent 2
snd_headphone_pan_radial_weight 1
snd_rear_headphone_position 90
snd_mixahead 0.05 // Sound buffer length
lobby_voice_chat_enabled "0" // Enables or disables your mic in the lobby when set to 1 or 0, respectively.
voice_enable "1" // Set to 0 to disable all ingame voice communication
voice_scale "0.75" // Voice chat volume
// .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.
// . Commands to prevent errors and crashes .
// .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.
password "" // When connecting to a server with password, the password is written in the config.
// This can lead to errors sometimes when trying to connect to other servers with a
// password. This line makes sure passwords are deleted when starting the game.
cl_disablehtmlmotd "1" // This disables the MOTD shown when connecting to a server.
// MOTDs containing flash elements are a known cause to crash the game.
// .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.
// . Other commands .
// .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.
gameinstructor_enable 0 // def. 1 - Ingame Instructions (Speech Bubbles).
cl_showhelp 0 // def. 1 - Set to 0 to not show on-screen help.
cl_autohelp 0 // def. 1 - Disables "Switched to Burst Firemode" (and similar) Hints.
cl_autowepswitch "0" // Will disable stronger weapons being equipped automatically. Set to 1 for default behavior
cl_disablefreezecam "1" // Will disable "Save this moment" after being killed, set to 0 for default behavior
cl_downloadfilter "nosounds" // Will prevent certain thing from being downloaded when connecting to servers
// all = downloads won't be blocked nosounds = only sounds blocked none = all files blocked
cl_resend "3" // Sets after how many seconds the game sends a new connecion request to a server
cl_resend_timeout "9" // Sets the time in seconds how long the game tries to connect to a server
cl_righthand "1" // Set to 0 for lefthanded viewmodels
cl_show_clan_in_death_notice "0" // Hides clantags in deathnotice, set to 1 to show clantags again
cl_showloadout "1" // Set to 0 to have your current loadout on the right side only visible when switching weapons
cl_showpluginmessages "1" // Set to 0 to disable plugins being able to show messages to you
cl_spec_mode "4" // 4 = always spectate in firstperson when dead
cl_use_opens_buy_menu "1" // Use key won't open buymenu, set to 1 for default behaviour
closeonbuy "0" // Set to 1 for the buymenu to close after every bought item
con_filter_text damage // Filter damage reports in console
con_filter_enable "2" // 1 = Only damage reports are written in console 2 = damage reports are highlighted
hud_scaling "0.95" // Alters size of HUD, 0.5 = smallest 0.95 = largest
safezonex "1" // Lower values will move HUD towards the middle of the screen. safezonex is horizontal, safezoney
safezoney "1" // is vertical. 0.85 = lowest, moved towards center of screen 1 = highest, at the edges of screen
hud_showtargetid "1" // Set to 0 to disable enemy names being shown. Also disables crosshair changing
// appearance when aiming at mates or enemies when using cl_crosshairstyle 0 or 1
mm_dedicated_search_maxping "50" // Game won't connect you to matchmaking servers where your ping is higher than the entered number.
player_nevershow_communityservermessage "1" // Disables popup when trying to browse community servers, set to 0 to shop popup every time
ui_steam_overlay_notification_position "bottomright" // Sets position of Steam Overlay notifications, other options are topleft, topright or bottomleft
host_writeconfig // This is the most important command in here. Do not put any commands, except for echos, after this.
// Make sure your config.cfg is not set to read-only. Do not add a launch option +exec autoexec.
// Any commands with a different value in the config.cfg. are overwritten with the ones in this autoexec.
// This command is the only 100% guarantee that your autoexec will work.
echo " __ __ __ ____ _____ ____ _ _ ____ ___ __ _____ __ ____ ____ ____ "
echo " /__\ ( )( )(_ _)( _ )( ___)( \/ )( ___) / __) ( ) ( _ ) /__\ ( _ \ ( ___)( _ \ "
echo " /(__)\ )(__)( )( )(_)( )__) ) ( )__) ( (__ )(__ )(_)( /(__)\ )(_) ) )__) )(_) )"
echo "(__)(__)(______) (__) (_____)(____)(_/\_)(____) \___) (____)(_____)(__)(__)(____/ (____)(____/ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment