Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo ""
- echo " _______ _"
- echo " |__ __| | |"
- echo " | | ___ __ _ __ _| | ___"
- echo " | |/ _ \ / _` |/ _` | |/ _ \"
- echo " | | (_) | (_| | (_| | | __/"
- echo " |_|\___/ \__, |\__, |_|\___|"
- echo " __/ | __/ |"
- echo " _____ |___/ |___/ _ _ _ _"
- echo " / ____| | | | | | | (_)"
- echo " | (___ ___ _ _ _ __ __| |___ ___| |_| |_ _ _ __ __ _ ___"
- echo " \___ \ / _ \| | | | '_ \ / _` / __|/ _ \ __| __| | '_ \ / _` / __|"
- echo " ____) | (_) | |_| | | | | (_| \__ \ __/ |_| |_| | | | | (_| \__ \"
- echo " |_____/ \___/ \__,_|_| |_|\__,_|___/\___|\__|\__|_|_| |_|\__, |___/"
- echo " __/ |"
- echo " Author /u/NanashiSC |___/"
- echo " Version: 2019-10-01d"
- echo " for updates, go visit pastebin.com/nu5kYQGB - Kudos to /u/VolsAndJezuz"
- //--------------------------------------------------------------------------------------------------
- // Reddit-Thread: https://www.reddit.com/r/CounterStrikeBinds/comments/amptz6/
- // Source1: https://www.reddit.com/r/GlobalOffensive/comments/3zqtvm/
- // Source2: https://www.reddit.com/r/GlobalOffensive/comments/2n9c7j/csgo_optimum_sound_settings/
- // Source3: https://www.reddit.com/r/GlobalOffensive/comments/5og4za/does_hrtf_actually_help_in_csgo/
- // Spurce4: https://www.reddit.com/r/CounterStrikeBinds/comments/dbda06/i_have_trouble_hearing_people_behind_front_above/
- //--------------------------------------------------------------------------------------------------
- // General Description: Finding the "perfect" audio settings can become quite troublesome. Maybe
- // somebody knows the perfect values, maybe somebody can proof his mathematically but maybe they wont
- // fit our needs. We have different ears and use different equippment, so one way to find our values
- // might be to just give them a try.
- //
- // TL;DR: With this script you will be able to toggle between 5 different presets:
- //
- // 1. nanashis headphone settings
- // 2. recommended headphone settings (by /u/VolsAndJezuz)
- // 3. alternative headphone settings (by /u/VolsAndJezuz)
- // 4. recommended hrtf settings (default Settings by Valve)
- // 5. recommended 2.0_2.1 speaker settings (by /u/VolsAndJezuz)
- //--------------------------------------------------------------------------------------------------
- sv_cheats 1 //must be set to 1, otherwise you cannot change ALL the values on thy fly
- //--------------------------------------------------------------------------------------------------
- // Optional: Basic Values (by /u/VolsAndJezuz slightly altered by Nanashi)
- //--------------------------------------------------------------------------------------------------
- alias sound_basic_values "sbv1; sbv2; sbv3; sbv4; sbv5; sbv6; sbv7; sbv8; sbv9; sbv10; sbv11; sbv12; sbv13; sbv14; sbv15"
- alias sbv1 "dsp_enhance_stereo 0" //"because digital effects that emulate stereo mixing are a bad idea as they to alter the apparent left-right positioning of sounds, and because it took extra CPU workload, I would set it to 0"
- alias sbv2 "snd_legacy_surround 0"
- alias sbv3 "snd_mixahead 0.05" //Makes sound as instant as it can get, making it easier to hear small things - 0.10 (100ms) is the default
- alias sbv4 "snd_pitchquality 1"
- alias sbv5 "snd_deathcamera_volume 0"
- alias sbv6 "snd_mapobjective_volume 0"
- alias sbv7 "snd_menumusic_volume 0" //"If you like having music on in the main menu, then change snd_menumusic_volume"
- alias sbv8 "snd_musicvolume 0" //"Turns off all music, easier to focus - command removed"
- alias sbv9 "snd_mute_losefocus 0"
- alias sbv10 "snd_roundend_volume 0" //"I find it useful to have snd_roundend_volume on very low, as it provides a very good estimate of whether or not you have time for a 5- or 10-second defuse. The timing varies depending on the music kit or lack thereof, so you have to get used to the timing of whatever you're using"
- alias sbv11 "snd_roundstart_volume 0"
- alias sbv12 "snd_tensecondwarning_volume 0" //"can be a useful reminder that the round timer is ending, so it's time to hide if you're a CT or hunt kills if you're a T and you can't plant the bomb immediately"
- alias sbv13 "volume 0.3"
- alias sbv14 "voice_scale 0.4" //Turns down the volume of other players voice to 40%
- alias sbv15 "snd_mute_losefocus 0" //"is whether or not you want to be able to still hear CS:GO's sound while alt-tabbed. "0" is if you want to still be able to hear the sound, "1" if not."
- //--------------------------------------------------------------------------------------------------
- // Initialize Index
- //--------------------------------------------------------------------------------------------------
- alias exec_soundsettings "sound_setup_title; sound_windows; sound_front; sound_rear; sound_headphone_exponent; sound_headphone_radial_weight; sound_hrtf"
- alias sound_setup_title
- alias sound_windows
- alias sound_front
- alias sound_rear
- alias sound_headphone_exponent //"pan exponent will decrease the difference in sound between sound far away and closer. It will help to hear far away sounds easily but drawback is it will be tough to guess the distance of the sound due to lower difference. -evilapple2k"
- alias sound_headphone_radial_weight
- alias sound_hrtf
- //--------------------------------------------------------------------------------------------------
- // Setup Screen Ratio Values (as recommended by /u/VolsAndJezuz)
- //--------------------------------------------------------------------------------------------------
- alias 4to3 "snd_front_stereo_speaker_position 45"
- alias 5to4 "snd_front_stereo_speaker_position 43.2"
- alias 16to9 "snd_front_stereo_speaker_position 53.2"
- alias 16to10 "snd_front_stereo_speaker_position 50.2"
- //--------------------------------------------------------------------------------------------------
- // Prepare Sound Settings --->
- //--------------------------------------------------------------------------------------------------
- // Nanashis Headphone Settings
- //--------------------------------------------------------------------------------------------------
- alias headphones_nanashi "alias sound_setup_title hn1; alias sound_windows hn2; alias sound_front hn3; alias sound_rear hn4; alias sound_headphone_exponent hn5; alias sound_headphone_radial_weight hn6; alias sound_hrtf hn7"
- alias hn1 "echo NANASHIS HEADPHONES SETTINGS"
- alias hn2 "windows_speaker_config 1"
- alias hn3 "snd_front_headphone_position 45.0"
- alias hn4 "snd_rear_headphone_position 135"
- alias hn5 "snd_headphone_pan_exponent 3"
- alias hn6 "snd_headphone_pan_radial_weight 1"
- alias hn7 "snd_hwcompat 1"
- //--------------------------------------------------------------------------------------------------
- // RECOMMENDED HEADPHONES SETTINGS
- //--------------------------------------------------------------------------------------------------
- alias headphones_recommended "alias sound_setup_title hr1; alias sound_windows hr2; alias sound_front hr3; alias sound_rear hr4; alias sound_headphone_exponent hr5; alias sound_headphone_radial_weight hr6; alias sound_hrtf hr7"
- alias hr1 "echo RECOMMENDED HEADPHONES SETTINGS"
- alias hr2 "windows_speaker_config 1"
- alias hr3 screen_ratio //43.2 (5:4 resolution), 45.0 (4:3 resolution), 50.2 (16:10 resolution), or 53.2 (16:9 resolution)
- alias hr4 "snd_rear_stereo_speaker_position 90"
- alias hr5 "snd_stereo_speaker_pan_exponent 1.2"
- alias hr6 "snd_headphone_pan_radial_weight 0.5"
- alias hr7 "snd_hwcompat 1"
- //--------------------------------------------------------------------------------------------------
- // ALTERNATIVE RECOMMENDED HEADPHONES SETTINGS
- //--------------------------------------------------------------------------------------------------
- alias headphones_alternative "alias sound_setup_title ha1; alias sound_windows ha2; alias sound_front ha3; alias sound_rear ha4; alias sound_headphone_exponent ha5; alias sound_headphone_radial_weight ha6; alias sound_hrtf ha7"
- alias ha1 "echo ALTERNATIVE RECOMMENDED HEADPHONES SETTINGS"
- alias ha2 "windows_speaker_config 1"
- alias ha3 "snd_front_headphone_position 90"
- alias ha4 "snd_rear_headphone_position 90"
- alias ha5 "snd_headphone_pan_exponent 1.2"
- alias ha6 "snd_headphone_pan_radial_weight 1"
- alias ha7 "snd_hwcompat 1"
- //--------------------------------------------------------------------------------------------------
- // HRTF SETTINGS (https://youtu.be/4BltHXngvlk)
- //--------------------------------------------------------------------------------------------------
- // "For HRTF, you should actually use the default settings"
- //--------------------------------------------------------------------------------------------------
- alias hrtf_recommended "alias sound_setup_title hrtf1; alias sound_windows hrtf2; alias sound_front hrtf3; alias sound_rear hrtf4; alias sound_headphone_exponent hrtf5; alias sound_headphone_radial_weight hrtf6; alias sound_hrtf hrtf7"
- alias hrtf1 "echo HRTF SETTINGS"
- alias hrtf2 "windows_speaker_config 1"
- alias hrtf3 "snd_front_headphone_position 90"
- alias hrtf4 "snd_rear_headphone_position 90"
- alias hrtf5 "snd_headphone_pan_exponent 1"
- alias hrtf6 "snd_headphone_pan_radial_weight 1"
- alias hrtf7 "snd_hwcompat 0"
- //--------------------------------------------------------------------------------------------------
- // RECOMMENDED 2.0/2.1 SPEAKERS SETTINGS
- //--------------------------------------------------------------------------------------------------
- // xx.x = 43.2 (5:4 resolution), 45.0 (4:3 resolution), 50.2 (16:10 resolution), or 53.2 (16:9 resolution)
- // theta http://i.imgur.com/SvGxzzY.png //your distance relative to each speaker
- //--------------------------------------------------------------------------------------------------
- alias speaker_recommended "alias sound_setup_title sr1; alias sound_windows sr2; alias sound_front sr3; alias sound_rear sr4; alias sound_headphone_exponent sr5; alias sound_headphone_radial_weight sr6; alias sound_hrtf sr7"
- alias sr1 "echo RECOMMENDED 2.0/2.1 SPEAKERS SETTINGS"
- alias sr2 "windows_speaker_config 4"
- alias sr3 screen_ratio // yy.y = (xx.x / 90 - 1) * theta + 90 //If your theta != 1 feel free to replace alias sr3 screen_ratio WITH alias sr3 "snd_front_stereo_speaker_position yy.y"
- alias sr4 "snd_rear_stereo_speaker_position 90"
- alias sr5 "snd_stereo_speaker_pan_exponent 1.4"
- alias sr6 "snd_stereo_speaker_pan_radial_weight 0.5"
- alias sr7 "snd_hwcompat 1"
- //--------------------------------------------------------------------------------------------------
- // <--- Prepare Sound Settings
- //--------------------------------------------------------------------------------------------------
- // Toggle Screen Ratio
- //--------------------------------------------------------------------------------------------------
- // 43.2 (5:4 resolution), 45.0 (4:3 resolution), 50.2 (16:10 resolution), or 53.2 (16:9 resolution)
- //--------------------------------------------------------------------------------------------------
- alias toggle_screen_ratio sr_4to3
- alias sr_4to3 "alias screen_ratio 4to3; screen_ratio; echo screen_ratio set to 4:3; alias toggle_screen_ratio sr_5to4"
- alias sr_5to4 "alias screen_ratio 5to4; screen_ratio; echo screen_ratio set to 5:4; alias toggle_screen_ratio sr_16to9"
- alias sr_16to9 "alias screen_ratio 16to9; screen_ratio; echo screen_ratio set to 16:9; alias toggle_screen_ratio sr_16to10"
- alias sr_16to10 "alias screen_ratio 16to10; screen_ratio; echo screen_ratio set to 16:10; alias toggle_screen_ratio sr_4to3"
- //--------------------------------------------------------------------------------------------------
- // Toggle Sound Settings
- //--------------------------------------------------------------------------------------------------
- alias toggle_soundsettings ss1
- alias ss1 "headphones_nanashi; exec_soundsettings; alias toggle_soundsettings ss2"
- alias ss2 "headphones_recommended; exec_soundsettings; alias toggle_soundsettings ss3"
- alias ss3 "headphones_alternative; exec_soundsettings; alias toggle_soundsettings ss4"
- alias ss4 "hrtf_recommended; exec_soundsettings; alias toggle_soundsettings ss5"
- alias ss5 "speaker_recommended; exec_soundsettings; alias toggle_soundsettings ss1"
- //--------------------------------------------------------------------------------------------------
- // Bind
- //--------------------------------------------------------------------------------------------------
- bind KEY toggle_screen_ratio //make sure to always set screen ratio before you toggle soundsettings
- bind KEY toggle_soundsettings
- //bind KEY sound_basic_values //optional (or type sound_basic_values into console)
- //bind KEY sound_setup_title //for testing purpose
- //--------------------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------
- // Just In Case
- //--------------------------------------------------------------------------------------------------
- // If you run into any issues, tpye the following commands into console to rebuild your audio cache:
- //
- // snd_updateaudiocache
- // snd_rebuildaudiocache
- //
- // After that, restart the game and you should be good to go.
- //
- // Note: This can take a couple of minutes, so get a tee and go hug your dog or whomever is near ; )
- // And Yes. Hugging oneself will do too. #HuggingIsNotACrime
- // Just don't overdo it whith your webcam still on ^_^ Someone might post it on 9Gag hrhr.
- //--------------------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------
- // Additional Thoughts
- //--------------------------------------------------------------------------------------------------
- // Another way to approach this kind of idea, might be to create config files for each sound configuration
- // And each of those files contains an boolean (alias) that will answer a major toggle config which
- // needs to know if it is okay to alter some values (fluid values vs static values) based upon the
- // screen ratio: like alias screen_ratio_on and screen_ratio_off.
- //
- // the toggle config will toggle through each sound config file, whilest checking for said boolean,
- // adjusting values accordingly and that's it. BUT I do believe, that such a defragmentation of files,
- // will confuse a majority of users/gamers, who are looking for a "simple solution" which is why, I am
- // not going to create it ... for now, and instead wanted to add this text as a little reminder to myself
- // and people whom are interested in creating config files as well. Cheers.
- //--------------------------------------------------------------------------------------------------
- //exec soundsettings_nanashi.cfg
- //--------------------------------------------------------------------------------------------------
- // NANASHIS HEADPHONE SETTINGS
- //windows_speaker_config "1"
- //snd_front_headphone_position "45.0"
- //snd_rear_headphone_position "135"
- //snd_headphone_pan_exponent "3"
- //snd_headphone_pan_radial_weight "1"
- //--------------------------------------------------------------------------------------------------
- //exec soundsettings_headphones_recommended.cfg
- //--------------------------------------------------------------------------------------------------
- // RECOMMENDED HEADPHONES SETTINGS
- //windows_speaker_config "1"
- //snd_front_headphone_position "xx.x"
- //snd_rear_headphone_position "90.0"
- //snd_headphone_pan_exponent "1.2"
- //snd_headphone_pan_radial_weight "0.5"
- //--------------------------------------------------------------------------------------------------
- //exec soundsettings_headphones_alternative.cfg
- //--------------------------------------------------------------------------------------------------
- // ALTERNATIVE RECOMMENDED HEADPHONES SETTINGS
- //windows_speaker_config "1"
- //snd_front_headphone_position "90.0"
- //snd_rear_headphone_position "90.0"
- //snd_headphone_pan_exponent "1.2"
- //snd_headphone_pan_radial_weight "1.0"
- //--------------------------------------------------------------------------------------------------
- //exec soundsettings_headphones_hrtf.cfg
- //--------------------------------------------------------------------------------------------------
- // HRTF SETTINGS
- //windows_speaker_config "1"
- //snd_front_headphone_position "90.0"
- //snd_rear_headphone_position "90.0"
- //snd_headphone_pan_exponent "1.0"
- //snd_headphone_pan_radial_weight "1.0"
- //snd_use_hrtf "1"
- //--------------------------------------------------------------------------------------------------
- //exec soundsettings_speaker_2.0_2.1.cfg
- //--------------------------------------------------------------------------------------------------
- // RECOMMENDED 2.0/2.1 SPEAKERS SETTINGS
- //windows_speaker_config "4"
- //snd_front_stereo_speaker_position "yy.y"
- //snd_rear_stereo_speaker_position "90.0"
- //snd_stereo_speaker_pan_exponent "1.4"
- //snd_stereo_speaker_pan_radial_weight "0.5"
- //--------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment