//custom Aim Down sights controls by Justin Kennedy //This script simulates a (hold OR toggle) aim down sight by progressively zooming in the view //(changing default FOV) and reducing mouse sensitivity and (optional) movement speed //If you use an FOV other than 90, you'll need to edit this script or not use it //this script does not change your "sensitivity" var, so don't worry //you should, however, have m_yaw and m_pitch set at the default values of 0.0220 //if not, multiply your sensitivity by 0.0220 then divide by your own m_yaw/pitch value //then set this number as your sensitivity //there are 3 options for using/binding this script (bind a key to one of the following): //"+adswalk" makes you walk while aiming down sights //"+adsrun" allows you to move at full speed while aiming down sights //"+ads" slows your speed to about 59% normal (if sv_maxspeed is 270) +ads sets your speed to 160 //for toggle, bind a key to either "tadswalk", "tadsrun", or "tads" //if you have problems (example: loading new level), type "resetaim" at the console //if you still have problems, ignore them or don't use this script :) //default of 0.3 makes you walk WAY too slow //but feel free to change this (values > 1 seem to have effect =1) cl_movespeedkey 1 alias aim90 "default_fov 90;m_yaw 0.0220;m_pitch 0.0220;alias aimdown aim89;alias aimup;aimnext" alias aim89 "default_fov 89;m_yaw 0.0215;m_pitch 0.0215;alias aimdown aim88;alias aimup aim90;wait;aimnext" alias aim88 "default_fov 88;m_yaw 0.0210;m_pitch 0.0210;alias aimdown aim87;alias aimup aim89;wait;aimnext" alias aim87 "default_fov 87;m_yaw 0.0205;m_pitch 0.0205;alias aimdown aim86;alias aimup aim88;wait;aimnext" alias aim86 "default_fov 86;m_yaw 0.0200;m_pitch 0.0200;alias aimdown aim85;alias aimup aim87;aimnext" alias aim85 "default_fov 85;m_yaw 0.0195;m_pitch 0.0195;alias aimdown aim84;alias aimup aim86;wait;aimnext" alias aim84 "default_fov 84;m_yaw 0.0190;m_pitch 0.0190;alias aimdown aim83;alias aimup aim85;aimnext" alias aim83 "default_fov 83;m_yaw 0.0185;m_pitch 0.0185;alias aimdown aim82;alias aimup aim84;wait;aimnext" alias aim82 "default_fov 82;m_yaw 0.0180;m_pitch 0.0180;alias aimdown aim81;alias aimup aim83;aimnext" alias aim81 "default_fov 81;m_yaw 0.0175;m_pitch 0.0175;alias aimdown aim80;alias aimup aim82;aimnext" alias aim80 "default_fov 80;m_yaw 0.0170;m_pitch 0.0170;alias aimdown aim79;alias aimup aim81;wait;aimnext" alias aim79 "default_fov 79;m_yaw 0.0165;m_pitch 0.0165;alias aimdown aim78;alias aimup aim80;aimnext" alias aim78 "default_fov 78;m_yaw 0.0160;m_pitch 0.0160;alias aimdown aim77;alias aimup aim79;aimnext" alias aim77 "default_fov 77;m_yaw 0.0155;m_pitch 0.0155;alias aimdown aim76;alias aimup aim78;wait;aimnext" alias aim76 "default_fov 76;m_yaw 0.0150;m_pitch 0.0150;alias aimdown aim75;alias aimup aim77;aimnext" alias aim75 "default_fov 75;m_yaw 0.0145;m_pitch 0.0145;alias aimdown;alias aimup aim76;aimnext" alias resetaim "-use;-speed;default_fov 90;m_yaw 0.0220;m_pitch 0.0220;alias aimdown aim90;alias aimup aim90" alias fullspeed "cl_forwardspeed 400;cl_sidespeed 400;cl_backspeed 400" alias aimspeed "cl_forwardspeed 160;cl_sidespeed 160;cl_backspeed 160" //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //!!!!!!!!!!!!!!!!!!!!IMPORTANT!!!!!!!!!!!!!!!!!!!!!!!!!!! //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //for original half life in which +speed is neglected, you must use +use instead //for other half life or source games which use +speed, you may remove +/-use in the +/-adswalk binds alias +adswalk "+use;+speed;alias aimnext aimdown;aimnext" alias -adswalk "-use;-speed;alias aimnext aimup;aimnext" alias +adsrun "alias aimnext aimdown;aimnext" alias -adsrun "alias aimnext aimup;aimnext" alias +ads "aimspeed;alias aimnext aimdown;aimnext" alias -ads "fullspeed;alias aimnext aimup;aimnext" //"TOGGLE" BINDS SETUP alias adswalk_on "+adswalk;alias tadswalk adswalk_off" alias adswalk_off "-adswalk;alias tadswalk adswalk_on" alias adsrun_on "+adsrun;alias tadsrun adsrun_off" alias adsrun_off "-adsrun;alias tadsrun adsrun_on" alias ads_on "+ads;alias tads ads_off" alias ads_off "-ads;alias tads ads_on" //TOGGLE BINDS (BIND KEY TO THESE ALIAS) alias tadswalk "adswalk_on" alias tadsrun "adsrun_on" alias tads "ads_on" resetaim echo Aim Down Sights enabled echo to use, bind a key to +ads, +adsrun, or +adswalk echo to use toggle ADS, use tads, tadsrun, or tadswalk