將下面個D野COPY曬落AUTOEXCE到
// --------Urik's 3rdPersonShoulder script-------------------
// BehindView
// To change the distance that Behind View activates with (from 1st person), change cam_idealdist value (min 30, max 200).
alias +lookbehind "firstperson; thirdpersonshoulder; crosshair 0; cam_ideallag 0; c_maxyaw 180; c_minyaw -180; cam_idealyaw 180; cam_idealdist 150; alt@bv_dist; alias 3rdPersonShoulderView thirdpersonshoulderoff"
alias -lookbehind "firstperson; c_maxyaw 135; c_minyaw -135; cam_idealyaw 0; crosshair 1; alt@normal; alias 3rdPersonShoulderView thirdpersonshoulderon"
alias +RMB_bview "+use; -attack2; RMB@behind"
alias -RMB_bview "-lookbehind; RMB@normal; -use"
alias +bv_dist "bind mwheelup "3rd_zoomin"; bind mwheeldown "3rd_zoomout"
alias -bv_dist "bind mwheelup "invprev"; bind mwheeldown "invnext"
// This is Behind View line for 3rdPerson. Difference is that when disabled it returns you back into 3rdPerson View.
alias -lookbehind3rd "crosshair 1; c_maxyaw 180; c_minyaw -180; CAM_IDEALYAW -4; alt@3rd"
alias +lookbehind3rd "crosshair 0; c_maxyaw 180; c_minyaw -180; cam_idealyaw 180; alt@bv_dist"
alias -lookbehind3rdE "c_maxyaw 180; c_minyaw -180; CAM_IDEALYAW -4"
alias +lookbehind3rdE "c_maxyaw 180; c_minyaw -180; cam_idealyaw 180"
// 3rdPersonShoulder View
// To change the distance that 3rdPersonShoulder activates with (from 1st person), change cam_idealdist value (min 30, max 200).
alias thirdpersonshoulderon "firstperson; crosshair 1; c_minyaw -135; c_maxyaw 135; CAM_IDEALYAW -4; cam_ideallag 0; thirdpersonshoulder; cam_idealdist 150; e@3rd; alt@3rd; mouseextra1@lookbehind3rd; alias 3rdPersonShoulderView thirdpersonshoulderoff"
alias thirdpersonshoulderoff "firstperson; crosshair 1; e@bview; alt@normal; mouseextra1@lookbehind; mouseextra2@default; alias 3rdPersonShoulderView thirdpersonshoulderon"
alias +3rd_use "+use; -attack2; +smooth360; +activate360; alt@3rd360"
alias -3rd_use "-lookbehind3rdE; -smooth360; -activate360; -use; alt@3rd"
// Distance changer (zoom in / out) for 3rdPersonShoulder View.
alias +3rd_dist "-zin; -zout; mouseextra@distance; bind mwheelup "3rd_zoomin"; bind mwheeldown "3rd_zoomout"
alias -3rd_dist "mouseextra1@lookbehind3rd; mouseextra2@unbind; -zin; -zout; bind mwheelup "invprev"; bind mwheeldown "invnext"
alias +3rd_dist_360 "-zin; -zout; -s360left; -s360right; mouseextra@distance; bind mwheelup "3rd_zoomin"; bind mwheeldown "3rd_zoomout"
alias -3rd_dist_360 "mouseextra@s360; bind mwheelup "360right"; bind mwheeldown "360left"
alias 3rd_zoomin "incrementvar cam_idealdist 30 200 -10" // by changing delta (last digit), you can change distance change amount per single mousewheel turn.
alias 3rd_zoomout "incrementvar cam_idealdist 30 200 10" // by changing delta (last digit), you can change distance change amount per single mousewheel turn.
alias +bv_dist "bind mwheelup "3rd_zoomin"; bind mwheeldown "3rd_zoomout"
alias -bv_dist "bind mwheelup "invprev"; bind mwheeldown "invnext"
// Smooth in/out (mouse4&mouse5)
alias +zin "+zin1"
alias -zin "alias +zin ""; wait; alias +zin +zin1"
alias +zout "+zout1"
alias -zout "alias +zout ""; wait; alias +zout +zout1"
alias +zin1 "zoomin; wait; +zin" // BY ADDING MORE "zoomin" BEFORE "wait", YOU'LL INCREASE ZOOM IN SPEED.
alias +zout1 "zoomout; wait; +zout" // BY ADDING MORE "zoomout" BEFORE "wait", YOU'LL INCREASE ZOOM OUT SPEED.
alias zoomin "incrementvar cam_idealdist 30 200 -1"
alias zoomout "incrementvar cam_idealdist 30 200 1"
// 360 View of 3rdPersonShoulderView
alias +activate360 "crosshair 0; c_minyaw -180; c_maxyaw 180; cam_idealyaw 0; RMB@behind3rd; bind mwheelup "360right"; bind mwheeldown "360left"
alias -activate360 "crosshair 1; c_minyaw -135; c_maxyaw 135; CAM_IDEALYAW -4; RMB@normal; bind mwheelup "invprev"; bind mwheeldown "invnext"
alias 360left "incrementvar cam_idealyaw -359 359 15" // by changing delta (last digit), you can change degree of rotate per single mousewheel turn.
alias 360right "incrementvar cam_idealyaw -359 359 -15" // by changing delta (last digit), you can change degree of rotate per single mousewheel turn.
// Smooth 360 (mouse4&mouse5)
alias +smooth360 "mouseextra@s360; -zin; -zout"
alias -smooth360 "mouseextra1@lookbehind3rd; mouseextra2@default; -s360left; -s360right"
alias +s360right "+s360right1"
alias -s360right "alias +s360right ""; wait; alias +s360right +s360right1"
alias +s360left "+s360left1"
alias -s360left "alias +s360left ""; wait; alias +s360left +s360left1"
alias +s360right1 "smooth360right; smooth360right; smooth360right; wait; +s360right" // BY CHANGING AMOUNT OF "smooth360right" REPEATS, YOU CAN ADJUST CAMERA ROTATE SPEED.
alias +s360left1 "smooth360left; smooth360left; smooth360left; wait; +s360left" // BY CHANGING AMOUNT OF "smooth360left" REPEATS, YOU CAN ADJUST CAMERA ROTATE SPEED.
alias smooth360right "incrementvar cam_idealyaw -359 359 -1"
alias smooth360left "incrementvar cam_idealyaw -359 359 1"
// Aliased binds
// Right Mouse Button
alias RMB@normal "bind "mouse2" "+attack2" // this restores right mouse button normal function.
alias RMB@behind "bind mouse2 "+lookbehind" // this binds right mouse button to activate Behind View when "E" is held.
alias RMB@behind3rd "bind mouse2 "+lookbehind3rdE" // this binds right mouse button to activate Behind View in 3rdPersonView when "E" is held.
// Use key
alias e@bview "bind e "+RMB_bview" // this binds "E" to work in combo with "RMB" for Behind View.
alias e@3rd "bind e "+3rd_use" // this makes "E" button enable "360 view" for 3rdPersonShoulderView when held.
// "ALT" ( distance change activator ).
alias alt@normal "unbind "Alt" // normal state for "Alt". Put your "normal" "Alt" binding here.
alias alt@3rd "bind Alt "+3rd_dist" // binds "Alt" to activate 3rdperson distance setup when held.
alias alt@bv_dist "bind Alt "+bv_dist" // binds "Alt" to activate distance setup while in Behind View.
alias alt@3rd360 "bind Alt "+3rd_dist_360" // binds "Alt" to activate distance setup while "E" is held.
// Mouse buttons
alias mouseextra@distance "bind MOUSE4 "+zin"; bind MOUSE5 "+zout" // binds mouse4 and mouse5 to work as distance in/out in 3rdPerson View.
alias mouseextra@s360 "bind MOUSE4 "+s360right"; bind MOUSE5 "+s360left" // binds mouse4 and mouse5 to work as "Smooth 360" rotate in 360 View.
alias mouseextra1@lookbehind "bind mouse5 "+lookbehind" // this binds mouse5 to activate Behind View when held.
alias mouseextra1@lookbehind3rd "bind mouse5 "+lookbehind3rd" // this binds mouse5 to activate Behind View in 3rdPersonShoulderView when held
alias mouseextra2@default "unbind mouse4" // bind your default mouse4 function here.
// Thirdpersonshoulder key
bind "V" "3rdPersonShoulderView" // binds key to toggle 3rdPersonShoulderView on/off
// Some commands executed to insure script loads correctly.
cam_ideallag 0
cam_idealdelta 0
CAM_IDEALPITCH -1 // compensates for c_thirdpersonshoulderheight
c_minpitch -10
c_maxpitch 90
thirdpersonshoulderoff