Skip to content

Instantly share code, notes, and snippets.

@lonix
Last active January 13, 2023 11:13
Show Gist options
  • Save lonix/59ca0890a53955ed8d39ee34aa4d4fe3 to your computer and use it in GitHub Desktop.
Save lonix/59ca0890a53955ed8d39ee34aa4d4fe3 to your computer and use it in GitHub Desktop.
// TODOs
// install bannagaming lang pack
// install simple radar
// launch options: -novid -language bananagaming -tickrate 128 -console +exec autoexec.cfg
// Content
// 1. General Settings
con_enable "1" // Enable Console
cl_autowepswitch "0" // Disable autoswitching weapons on pickup
cl_join_advertise "2" // Allow Steam friends to join your match/server in progres)
func_break_max_pieces "0" // Less clutter from breaking vents (especially on Mirage)
cl_use_opens_buy_menu "0" // Disable button E from opening buy-menu (Useful when picking up weapons in spawn)
r_drawtracers_firstperson "0" // Remove first person tracers, does not impact gameplay, just makes it easier to spray
spec_replay_autostart "0" // Disable "Auto-start Killer Replay" when available
cl_righthand 0 // Left or right handed viewmodel (because lefthand is the way it was ment to played)
// 2. keybinds
// Shopping kits
bind "kp_end" "buy awp; buy vesthelm; buy vest; buy p250; r_cleardecals" // Default Buy as an awper (~6700$)
bind "kp_downarrow" "buy p250; buy vest; buy smokegrenade; buy flashbang; r_cleardecals" // Super eco (~1500$)
bind "kp_pgdn" "buy mp9; buy mac10; buy vest; buy smokegrenade; r_cleardecals" // Normal Eco (~2000$)
bind "kp_home" " buy smokegrenade; buy incgrenade; buy molotov; buy flashbang; buy hegrenade; r_cleardecals" // Nades Resupply (~1200/1400$)
bind "kp_uparrow" " buy vesthelm; buy vest; buy defuser; r_cleardecals" // Armor resupply (~2050/1650$)
//Misc Binds
bind "kp_ins" "sm_admin" // opens the sm admin menu
bind "MOUSE1" "+attack" // Pew pew
bind "." "toggleconsole" // Open the console
bind "V" "+voicerecord" // Push to talk (Why anyone would is beyond me)
bind "mwheelup" "+reload" // Reload like the old days
bind "mwheeldown" "+jump" // Jump like bhopping was still a thing
bind "kp_minus" "voice_enable 0" // Disable ingame voice
bind "kp_plus" "voice_enable 1" // Enable ingame voice (WARN: May lead to russians)
bind "PGUP" "volum 0.5" // Set General Volume to 0.5 (For games that does not matter)
bind "PGDN" "volum 0" // Turn of gamesounds (For games that really does not matter)
bind "kp_5" "exec record.cfg; say_team .R." // Execute a script to record pow demo
// Unbind bad keybinds
// unbind "space"
unbind "i"
unbind "4"
//3. Crosshair
// This is my crosshair, there are many more like it, but this one is mine
cl_crosshair_drawoutline "1.000000"
cl_crosshair_dynamic_maxdist_splitratio "0.0"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.300000"
cl_crosshair_dynamic_splitdist "5"
cl_crosshair_outlinethickness "1.000000"
cl_crosshair_sniper_show_normal_inaccuracy "0"
cl_crosshair_sniper_width "1"
cl_crosshair_t "0.000000"
cl_crosshairalpha "140.000000"
cl_crosshaircolor "5.000000"
cl_crosshaircolor_b "255.000000"
cl_crosshaircolor_g "0.000000"
cl_crosshaircolor_r "127.000000"
cl_crosshairdot "1.000000"
cl_crosshairgap "-3.000000"
cl_crosshairgap_useweaponvalue "0"
cl_crosshairsize "0.000000"
cl_crosshairstyle "4.000000"
cl_crosshairthickness "1.00000"
cl_crosshairusealpha "1"
cl_fixedcrosshairgap "-10"
////////////////////////// 4. Hud
hud_scaling "0.95" // Scales hud elements to maximum value
hud_showtargetid "1" // Enables display of target names, important
cl_disablefreezecam "1" // Disables freezecam
cl_hud_bomb_under_radar "1" // Draws bomb under radar, convenient
cl_hud_color "4" // Makes the hud color yellow (THIS CHANGES THE HUD COLOR)
cl_hud_playercount_showcount "1" // Shows player avatars instead of numbers left
cl_hud_playercount_pos "0" // Puts player information in the bottom instead of top
cl_hud_healthammo_style "0" // Reverted hud style due to hidden burst mode
cl_hud_background_alpha "0.6" // Hidden but still visible black bars, easy on the eyes
cl_showloadout "1" // So it doesnt fade out the weapon slots, very annoying otherwise
cl_show_clan_in_death_notice "0" // Tagname will not show in death notices
cl_teamid_overhead_mode "2" // Always show team behind walls with equipment
cl_showhelp "0" // Removes on-screen help
cl_autohelp "0" // Removes automatic help
gameinstructor_enable "0" // Removes in-game instructions
safezonex "0.8" // Screen width percentage for the hud
safezoney "1" // Screen height percentage for the hud
////////////////////////// 5. Radar (Optimized radar settings)
cl_teammate_colors_show "1" // Show teammates as separate colors without letter
cl_hud_radar_scale "1" // Optimized Radar size
cl_radar_scale "0.5" // Radar map scaled down to fit all maps
cl_radar_always_centered "0" // Centers map instead of player
cl_radar_icon_scale_min "0.5" // Minimum player icon scale
cl_radar_rotate 1 // Radar rotates with player view
//
// ////////////////////////// 6. Mouse ("Raw Input" & "No Acceleration")
//
m_rawinput "1" //Enable Raw Input for perfect precision (Raw input is unavailable on OSX)
// m_mouseaccel2 "0" //Disables windows mouse acceleration initial threshold, safety precaution
// m_mouseaccel1 "0" //Disables windows mouse acceleration initial threshold, safety precaution
// m_customaccel "0" //Custom mouse acceleration disabled
// m_mousespeed "0" //Windows mouse acceleration disabled, just for precaution
zoom_sensitivity_ratio_mouse "0.818933027098955175" //Adjusts your zoom sensitivity to act as your true sensitivity, default value is 1
//
////////////////////////// 7. Viewmodel
viewmodel_offset_x "2" //Changes viewmodel view in X scale
viewmodel_offset_y "2" //Changes viewmodel view in Y scale
viewmodel_offset_z "-2" //Changes viewmodel view in Z scale
viewmodel_fov "68" //Highest viewmodel FOV
viewmodel_recoil "0" //Disable viewmodel reactions to weapon recoil & aimpunch (from Update: 2018-03-01)
////////////////////////// 8. Bob (Less weapon movement)
cl_bob_lower_amt "5" //How much the viewmodel lowers when running, set to lowest for less distraction
cl_bobamt_lat "0.1" //How much the viewmodel moves side to side when running, set to lowest for less distraction
cl_bobamt_vert "0.1" //How much the viewmodel moves up and down when running, set to lowest for less distraction
cl_bobcycle "0.98" //The frequency at which the viewmodel bobs, set to default
cl_viewmodel_shift_left_amt "0.5" //Lowers the crouching animation of the viewmodel
cl_viewmodel_shift_right_amt "0.25" //Lowers the crouching animation of the viewmodel
////////////////////////// 9. Network (settings are optimized for high speed connection)
rate "786432" //Your download rate to the server. Max rate: "786432"
cl_cmdrate "128" //Max number of command packets sent to server per second
cl_updaterate "128" //Number of packets per second you are requesting from the server
cl_interp "0.007813" //Sets the interpolation amount, currently on the lowest value
cl_interp_ratio "1" //Sets the interpolation amount (final amount is cl_interp_ratio / cl_updaterate)
cl_lagcompensation "1" //Lag compensation helps by eliminating combat latency from client side view
cl_predict "1" //Skip waiting for server feedback and simulate client side movement in real-time
cl_predictweapons "1" //Skip waiting for server feedback and perform client side prediction of weapon effects
mm_dedicated_search_maxping "50" //Maxping Search in Matchmaking (increase this value if you cant find any games)
////////////////////////// 10. Netgraph
net_graph "0" //Disables netgraph by default
net_graphheight "0" //Changes height
net_graphpos "2" //Positioning of Net Graph
net_graphproportionalfont "1" //Makes font larger
////////////////////////// 11. FPS & Video
fps_max "0" //Max frames per second (0 = uncapped)
fps_max_menu "0" //Max frames per second in main-menu (0 = uncapped)
mat_monitorgamma "1.6" //Sets brightness level to highest
mat_monitorgamma_tv_enabled "0" //Turn off TV Mode for less off-set light
mat_powersavingsmode "0" //Disables power saving mode
mat_queue_mode "-1" //"mat_queue_mode [-1,0,1,2] - This setting determines the threading mode the material system uses. A value of -1 uses the default for your system, a value of 0 uses synchronous single thread, 1 uses queued single threaded mode, and value of 2 uses multi-threaded mode. Many users report performance increases on multi-core systems when setting this variable to a value of 2."
r_dynamic "0" //Affects dynamic lighting, turned off for more FPS
////////////////////////// 12. Sound (and music, does not affect overall volume)
voice_scale "0.4" //Turn down volume of other players to 40% (RECOMMENDED)
snd_deathcamera_volume "0" //Volume of the death camera music
snd_dzmusic_volume "0" //Volume of the Danger Zone victory music
snd_mapobjective_volume "0" //Volume of map objective music
snd_menumusic_volume "0" //Volume of the main menu music
snd_music_selection "2" //Tracking rotating music for players with no music packs equipped
snd_musicvolume_multiplier_inoverlay "0" //Music volume multiplier when Steam Overlay is active
snd_mute_mvp_music_live_players "0" //MVP music is muted if players from both teams are still alive
snd_mvp_volume "0" //Volume of the MVP music
snd_roundend_volume "0" //Volume of round end music
snd_roundstart_volume "0" //Volume of round start music
snd_tensecondwarning_volume "0.5" //10 Second warning music, enabled on 3% volume to hear if theres time to defuse
////////////////////////// 14. Scripts
// Jumpthrow (For Nades)
alias "+jumpthrow" "+jump; -attack"
alias "-jumpthrow" "-jump"
bind "mouse5" "+jumpthrow" //Bind to jumpthrow
// Load whatever gamemode you want with the "map" command. Examples: "map de_dust2; competitive" or "map dz_sirocco; dangerzone"
alias "casual" "game_type 0; game_mode 0"
alias "comp" "game_type 0; game_mode 1"
alias "wingman" "game_type 0; game_mode 2"
alias "ar" "game_type 1; game_mode 0"
alias "demolition" "game_type 1; game_mode 1"
alias "dm" "game_type 1; game_mode 2"
alias "dz" "game_type 6; game_mode 0"
alias "custom" " game_type 3; game_mode 0"
// Same as above for RCON (connected server)
alias "rcasual" "rcon game_type 0; rcon game_mode 0"
alias "rcomp" "rcon game_type 0; rcon game_mode 1"
alias "rwingman" "rcon game_type 0; rcon game_mode 2"
alias "rar" "rcon game_type 1; rcon game_mode 0"
alias "rdemolition" "rcon game_type 1; rcon game_mode 1"
alias "rdm" "rcon game_type 1; rcon game_mode 2"
alias "rdz" "rcon game_type 6; rcon game_mode 0"
alias "rcustom" "rcon game_type 3; rcon game_mode 0"
// Increase volume when walking, to better hear the other guy
alias +incvol "incrementvar volume 0 2 0.5;+speed"
alias -incvol "incrementvar volume 0 2 -0.5;-speed"
bind SHIFT +incvol
// Useful shortcuts for popular commands in console
alias "d" "disconnect; cl_drawhud 1"
alias "q" "quit;exit"
alias "r" "retry"
alias "rs" "mp_restartgame 1"
alias "rrs" "rcon mp_restartgame 1"
// Show FPS with scoreboard in the top-left corner (less performance load than netgraph)
alias "+fps" "+score; cl_showfps 1"
alias "-fps" "-score; cl_showfps 0"
// Toggle netgraph
alias "togglenet" "togglenet_on"
alias "togglenet_on" "net_graph 1; alias togglenet "togglenet_off""
alias "togglenet_off" "net_graph 0; alias togglenet "togglenet_on""
/////////////////////////////////////////////////////////////////////
// Advanced Buy Script
//Bind Default
alias defZ "bind z radio"
alias defX "bind x slot12"
alias defC "bind c radio2"
alias defQ "bind q lastinv"
alias defE "bind e +use"
alias defF "bind f +lookatweapon"
alias defG "bind g drop"
alias def1 "bind 1 slot1"
alias def2 "bind 2 slot2"
alias def3 "bind 3 slot3"
alias defTAB "bind tab +fps"
//Bind Alts
alias keyZ "bind z customZ"
alias keyX "bind x customX"
alias keyC "bind c customC"
alias keyQ "bind q customQ"
alias keyE "bind e customE"
alias keyF "bind f customF"
alias keyG "bind g customG"
alias key1 "bind 1 custom1"
alias key2 "bind 2 custom2"
alias key3 "bind 3 custom3"
alias keyTAB "bind tab customTAB"
//Rebinds for Alt
alias customZ "radio1"
alias customX "noclip"
alias customC "use weapon_decoy; use weapon_molotov; use weapon_incgrenade"
alias customQ "use weapon_hegrenade"
alias customE "use weapon_flashbang"
alias customF "use weapon_smokegrenade"
alias customG "use weapon_c4; drop"
alias custom1 "echo unused"
alias custom2 "echo unused"
alias custom3 "echo unused"
alias customTAB "togglenet"
//Bind Switch alias
alias +keybinds "keyZ; keyX; keyC; keyQ; keyE; keyF; keyG; key1; key2; key3; keyTAB"
alias -keybinds "defZ; defX; defC; defQ; defE; defF; defG; def1; def2; def3; defTAB"
//Alt switch trigger
bind mouse4 +keybinds
/////////////////////////////////////////////////////////////////////
// Personal Shit, do not share
alias pracc "connect mysecretpracticeserver.com"
alias skins "cl_drawhud 0; connect 51.75.73.121:27015"
////////////////////////////////////////////////////////////////////
//Loading confirmation in console
echo Scripts Loaded
host_writeconfig
echo ""
echo ""
echo "autoexec.cfg loaded, GLHF"
echo "v130123"
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment