1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

// Custom cl_zoom_sensitivity_ratio in Matchmaking

// This script allows you to have lower sensitivity when zoomed in even in Matchmaking!

// Updated to be simpler!



// How to calculate sensitivity and installing:

// 1.

// First you need to calculate the number on the place of CUSTOMSENS. Find your cl_zoom_sensitivity_ratio

// (Or you can make up a lower number(than your NORMALSENS) to use as CUSTOMSENS if you dont use cl_zoom... and skip step 1 & 2)

// You can find it by writing the command into console or looking into your autoconfig or sniper cfg

// For example 0.8. Now go into tf2 settings and find your normal

// sensitivity. For example 1.7.

// 2.

// Now multiply your normal sensitivity with cl_zoom_sensitivity_ratio sensitivity.

// For example 1.7 multiplied by 0.8 is 1.36.

// 3.

// Replace <CUSTOMSENS> with custom sensitivity value you just calculated.

// Replace <NORMALSENS> with your normal sensitivity value.

// 4.

// LASTLY(very important!) put this disable script exactly in same format in class cfgs that you

// don't want to have script enabled without the // part:

// bind "MOUSE2" "+attack2"



// Feel free to change MOUSE1, MOUSE2 and f to any other key if you happen

// to have primary and/or secondary attack bound to something else than the said buttons.



// Class configs are called scout, soldier, pyro, heavyweapons, demoman, engineer, medic, spy and sniper cfg

// If you don't have them copy and paste a cfg file from cfg folder inside itself, clean cfg file from

// all text rename it to the corresponding class and paste the disable script in class cfgs you want zoom script to be OFF

// and paste any of the variant zoom scripts if you want to have zoom script ON .



// This script can be used with any weapon!

// Expect you only get lower sensitivity not scoped in like with sniper rifle :(



// Feel free to change the f key on all class version to anything else.

// Just replace every f in the script.



// IMPORTANT, this script might be buggy(sensitivities are in reverse) when first choosing class you have this script

// enabled on. Just switch to melee and press your key bound to change sensitivity and test couple of times to know when it works.



// The actual scripts woo!!



// FOR SNIPER ONLY

// Zoom sensitivity/normal sensitivity on pressing chosen key(DEFAULT key MOUSE2)

// and change to normal sensitivity when firing weapon

alias "+zoom_sensin" "+attack2; sensitivity <CUSTOMSENS>"

alias "-zoom_sensin" "-attack2; bind MOUSE2 +zoom_sensout; bind MOUSE1 +zoom_sensout_m1"

alias "+zoom_sensout_m1" "+attack; unbind MOUSE2; bind MOUSE2 +zoom_sensin"

alias "-zoom_sensout_m1" "-attack; +normal_m1; sensitivity <NORMALSENS>"

alias "+normal_m1" bind MOUSE1 "+attack"

alias "+zoom_sensout" "+attack2; sensitivity <NORMALSENS>"

alias "-zoom_sensout" "-attack2; bind MOUSE2 +zoom_sensin"

bind "MOUSE2" "+zoom_sensin"



// FOR ALL CLASSES EXPECT SNIPER

// Zoom sensitivity/normal sensitivity only on pressing chosen key(DEFAULT key F because MOUSE2 is bound to something else on most classes)

// (so if you fire weapon your sensitivity won't be changed back to normal)

bind "MOUSE2" "zoom_sensin"

alias "zoom_sensin" "sensitivity <CUSTOMSENS>; bind f zoom_sensout"

alias "zoom_sensout" "sensitivity <NORMALSENS>; bind f zoom_sensin"