Skip to content

Instantly share code, notes, and snippets.

@trongtinh1212
Last active November 28, 2023 19:53
Show Gist options
  • Save trongtinh1212/40f9fcbecf2eb43b60fd18ca583f8552 to your computer and use it in GitHub Desktop.
Save trongtinh1212/40f9fcbecf2eb43b60fd18ca583f8552 to your computer and use it in GitHub Desktop.
Autoexec config for CS2
// tinh Autoexec 2023 Edition - CS2
// Content
// 1. Game
// 2. Bindings
// 3. Crosshair
// 4. Hud
// 5. Radar
// 6. Mouse
// 7. Viewmodel
// 8. Bob
// 9. Network
// 10. Netgraph
// 11. Video
// 12. Sound
// 13. Other
// 14. Scripts
echo (00/16) Config Loaded //This confirms that the config has been loaded
//-------- 1. Game
con_enable "1" //Enables Console
gameinstructor_enable "0" //Removes in-game instructions
cl_autohelp "0" //Removes automatic help
spec_replay_autostart "0" //Disable Auto-start Killer Replay when available
fps_max "999"
fps_max_tools "999"
fps_max_ui "999"
r_show_build_info false
cq_netgraph 1
cl_showfps 1
echo (01/16) Main Settings Loaded
//--------- 2. Bindings
unbindall
bind "MOUSE_X" "yaw"
bind "MOUSE_Y" "pitch"
bind "ESCAPE" "cancelselect"
bind "`" "toggleconsole"
bind "TAB" "+showscores"
bind "SPACE" "+jump"
bind "," "buyammo1"
bind "." "buyammo2"
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5;slot12"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
bind "9" "slot9"
bind "a" "+left"
bind "b" "buymenu"
bind "c" "+radialradio"
bind "d" "+right"
bind "e" "+use"
bind "f" "+lookatweapon"
bind "g" "drop"
bind "j" "buy deagle; buy vest; buy vesthelm"
bind "i" "show_loadout_toggle"
bind "k" "+spray_menu"
bind "m" "teammenu"
bind "q" "lastinv"
bind "r" "+reload"
bind "s" "+back"
bind "u" "messagemode2"
bind "v" "+radialradio2"
bind "w" "+forward"
bind "x" "radio2; toggle spec_show_xray 0 1"
bind "y" "messagemode"
bind "z" "radio"
bind "CTRL" "+duck"
bind "SHIFT" "+sprint"
bind "F3" "autobuy"
bind "F4" "rebuy"
bind "F5" "jpeg"
bind "F6" "save quick"
bind "F7" "load quick"
bind "F10" "cs_quit_prompt"
bind "MWHEELUP" "+jump"
bind "MWHEELDOWN" "+jump"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MOUSE3" "player_ping"
bind "MOUSE5" "+voicerecord"
bind "DEL" "mute"
echo (02/16) Bindings Loaded
//--------- 3. Crosshair
// exec crosshair
cl_crosshair_friendly_warning "0"
echo (03/16) Crosshair Loaded
//--------- 4. Hud
cl_color "1" // set player colour preference to green
cl_teammate_colors_show "2" // show teammate colour in chat as well as letter
cl_show_clan_in_death_notice "false" // don't show clan tag in kill/death log (upper right)
cl_allow_animated_avatars "true"
cl_teamid_overhead_colors_show "true"
cl_radar_scale "0.5"
echo (04/16) Hud Loaded
//--------- 5. Radar
cl_radar_icon_scale_min "0.7" //Player icon scale (0.4 - 1.25 Rec: 0.6)
cl_radar_always_centered "0" //Centers map instead of player
cl_radar_scale "0.5" //Radar map scale size, 0.4 works on all maps
cl_teammate_colors_show "1" //Show teammates as separate colors without letter
cl_hud_radar_scale "1.2" //Radar size, not too big and not too small
echo (05/16) Radar Loaded
//---------- 6. Mouse
sensitivity "1.68"
cl_sniper_delay_unscope "false"
cl_sniper_auto_rezoom "true"
echo (06/16) Mouse Loaded
//----------- 7. Viewmodel (Forced + Personal preference)
viewmodel_fov "68"
viewmodel_offset_x "2.5"
viewmodel_offset_y "0"
viewmodel_offset_z "-1.5"
viewmodel_presetpos "3"
echo (07/16) Viewmodel Loaded
//------------ 8. Bob (Viewmodel movement)
echo (08/16) Bob Loaded
//------------- 9. Network (settings are optimized for fastest connection)
rate "786432" //Your download rate to the server (Max rate: 786432 Default: 196608)
mm_dedicated_search_maxping "40" //Maxping Search in Matchmaking
echo (09/16) Network Loaded
//-------------- 10. Netgraph
cq_netgraph "0" //Netgraph (Default: 0)
echo (10/16) Netgraph Loaded
//-------------- 11. Video
r_fullscreen_gamma "3"
echo (11/16) Video Loaded
//-------------- 12. Sound
volume "1"
voice_always_sample_mic "true" // voip not picking up mic without this
snd_voipvolume "0.5" // other players' mic volume
snd_mute_losefocus "false" // continue playing in-game sounds when alt-tabbed/minimized
snd_mute_mvp_music_live_players "true" // mute mvp music if players from both teams are still alive
snd_deathcamera_volume "0"
snd_mapobjective_volume "0"
snd_menumusic_volume "0"
snd_roundstart_volume "0"
snd_roundaction_volume "0"
snd_roundend_volume "0"
snd_tensecondwarning_volume "0.1"
echo (12/16) Sound Loaded
//--------------- 13. Other
r_drawtracers_firstperson "0" //Hide first person tracers, does not hide other players tracers (Default: 1)
cl_join_advertise "2" //Allow friends to join your community servers via friends list (Rec: 2 Default: 0)
echo (13/16) Other Loaded
//---------------- 14. Chat
echo (14/16) Chat
//---------------- 15. Scripts
// Jumpthrow (For Nades)
//alias "+jumpaction" "+jump;"
//alias "+throwaction" "-attack; -attack2"
//alias "-jumpaction" "-jump"
//bind "t" "+jumpaction;+throwaction;" //Bind Key for Jumpthrow
// Qualify of life shortcuts for console commands
alias "d" "disconnect"
alias "q" "quit"
alias "r" "retry"
alias "rs" "mp_restartgame 1"
alias "nt" "net_connections_stats"
alias "ns" "net_status"
alias "st" "status"
alias "tinh" "exec tinh"
echo (15/16) Scripts Loaded
//---------------- Final part
host_writeconfig //Useful for forcing viewmodel settings
echo (16/16) Config Applied
playvol "ui\mm_success_lets_roll" "0.5" // Plays "Let's Roll" soundbite when the config is loaded
//---------------- Deprecated
//-------- 1. Game
// cl_disablefreezecam "1" //Freezecam (Rec: Enabled)
// cl_autowepswitch "0" //Disable auto-weapon switch
// cl_showhelp "0" //Removes on-screen help
//--------- 4. Hud
// cl_hud_bomb_under_radar "1" //Draws bomb under radar, convenient //Makes the hud color yellow, for banana style
// cl_hud_playercount_pos "1" //Puts player information in the bottom instead of top
//---------- 6. Mouse
// zoom_sensitivity_ratio_mouse "0.818933027098955175" //Adjusts your zoom sensitivity to act as your true sensitivity (Default: 1)
// m_mousespeed "0" //Windows mouse acceleration disabled, just for precaution
//----------- 7. Viewmodel (Forced + Personal preference)
// cl_righthand "1" //Move your gun to your left or right hand (Default: 1 = RIGHT) //Highest viewmodel FOV (54 to 68)
// viewmodel_recoil "0" //Amount of weapon recoil/aimpunch to display on viewmodel (Default: 1)
//------------ 8. Bob (Viewmodel movement)
// cl_bob_lower_amt "5" //Viewmodel lowers when running (5 - 30 Default: 21)
// cl_bobamt_lat "0.1" //Viewmodel moves side to side when running (0.1 - 2 Default: 0.4)
// cl_bobamt_vert "0.1" //Viewmodel moves up and down when running, set to lowest for less distraction
// cl_viewmodel_shift_left_amt "0.5" //Crouching animation moving left (0.5 - 2 Default: 1.5)
// cl_viewmodel_shift_right_amt "0.25" //Crouching animation moving right (0.25 - 2 Default: 0.75)
//------------- 9. Network (settings are optimized for fastest connection)
// cl_cmdrate "128" //Number of command packets sent to server per second (Max: 128 Default: 64)
// cl_updaterate "128" //Number of packets per second you are requesting from the server (Max: 128 Default: 64)
// cl_interp_ratio "2" //Sets the interpolation amount (Default: 2)
//-------------- 10. Netgraph
// net_graphheight "0" //Height of netgraph (Default: 64)
// net_graphpos "2" //Positioning of netgraph (Default: 1)
// net_graphproportionalfont "1" //Proportionate font size for netgraph (Default: 0)
//-------------- 11. Video
// fps_max_menu "144" //Max frames per second in main-menu
// mat_monitorgamma "1.6" //Sets Brightness to highest, highly recommended
//-------------- 12. Sound
// voice_scale "0.4" //Turns down the volume of other players voice to 40%
// snd_dzmusic_volume "0" //Volume of the Danger Zone victory music
//--------------- 13. Other
// cl_parachute_autodeploy "1" //Automatically deploy parachute in Danger Zone (Default: 1)
// demo_index "1" //Demo watching index (Rec: 1 Default: 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment