Skip to content

Instantly share code, notes, and snippets.

@lonix
Created October 16, 2021 20:06
Show Gist options
  • Save lonix/264be3b45e97c60a80ba90bce0f75cd9 to your computer and use it in GitHub Desktop.
Save lonix/264be3b45e97c60a80ba90bce0f75cd9 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"
cl_autowepswitch "0"
cl_join_advertise "2"
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
// 2. keybinds
bind "V" "+voicerecord"
bind "mwheelup" "+reload"
bind "mwheeldown" "+jump"
bind "kp_minus" "voice_enable 0"
bind "kp_plus" "voice_enable 1"
bind "PGUP" "volum 0.5"
bind "PGDN" "volum 0"
bind "F5" "say ❤"
bind "kp_end" "buy awp; buy vesthelm; buy vest; buy p250"
bind "kp_downarrow" "buy deagle; buy vest"
bind "kp_pgdn" "say ❤"
bind "kp_leftarrow" "say back"
bind "kp_5" "say prev"
bind "kp_rightarrow" "buy mp7; buy vesthelm; buy vest"
// bind "kp_leftarrow" "say Geh geh eh zeh! plai bedda"
// bind "kp_5" "say Good Half!"
bind "kp_rightarrow" "buy p250; buy smokegrenade; buy flashbang"
bind "kp_home" " buy smokegrenade; buy incgrenade; buy molotov; buy flashbang; buy hegrenade;"
bind "kp_uparrow" " buy vesthelm; buy vest; buy defuser;"
bind "kp_pgup" "buy sg556; buy aug;"
bind "kp_ins" "sm_admin"
bind "MOUSE1" "+attack"
bind "." "toggleconsole"
unbind "space"
unbind "i"
unbind "4"
//3. Crosshair
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"
// This one seems defunkt
// cl_crosshairscale "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.4" //Radar map scaled down to fit all maps
cl_radar_always_centered "0" //Centers map instead of player
cl_radar_icon_scale_min "1" //Minimum player icon scale
//
// ////////////////////////// 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" //The queue/thread mode, setting this to -1 is default for your system
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 Bind Script - by Maxim aka BananaGaming
//Part 1
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"
//Part 2
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"
//Part 3
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 "autobuy; r_cleardecals"
alias custom2 "buy flashbang; buy smokegrenade; r_cleardecals"
alias custom3 "buy flashbang; buy smokegrenade; buy molotov; buy flashbang; buy defuser; r_cleardecals"
alias customTAB "togglenet"
//Part 4
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"
//Part 5 - Bind key to trigger secondary command
bind mouse4 +keybinds
//Loading confirmation in console
echo Scripts Loaded [X]
host_writeconfig
echo ""
echo ""
echo "autoexec.cfg loaded, GLHF"
echo "v020421"
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment