09-24-2020, 12:39 AM
//Ace of Thumbs Script for Mouse Wheel Instagib Sniping
// AceOfThumbs 7 (was 3) level mouse wheel FOV zoom lock with quick release
// Given courtesy of Zatoichi, worked great for me with altered variables.
// USER SETTINGS-zoom levels
// adjust zoom FOV amount and mouse sensitivity levels to suit yourself, zoom0 and sens0 are for no zoom
set aot_zoom0 120
set aotzoom1 70
set aotzoom2 60
set aotzoom3 50
set aotzoom4 40
set aotzoom5 30
set aotzoom6 20
set aot_sens0 0.63
set aotsens1 0.55
set aotsens2 0.5
set aotsens3 0.5
set aotsens4 0.5
set aotsens5 0.5
set aotsens6 0.4
// END OF USER SETTINGS-zoom levels
// these actually do the zooming
alias "+aot_zoom_now" "fov $aot_cur_zoom ; sensitivity $aot_cur_sens"
alias "-aot_zoom_now" "fov $aot_zoom0 ; sensitivity $aot_sens0"
// these zoom level commands set up the sequence for zooming in and out
alias "aot_zoom_level6" "set aot_cur_zoom $aotzoom6 ; set aot_cur_sens $aotsens6 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level6 ; alias aot_zoom_out aot_zoom_level5"
alias "aot_zoom_level5" "set aot_cur_zoom $aotzoom5 ; set aot_cur_sens $aotsens5 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level6 ; alias aot_zoom_out aot_zoom_level4"
alias "aot_zoom_level4" "set aot_cur_zoom $aotzoom4 ; set aot_cur_sens $aotsens4 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level 5 ; alias aot_zoom_out aot_zoom_level3"
alias "aot_zoom_level3" "set aot_cur_zoom $aotzoom3 ; set aot_cur_sens $aotsens3 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level4 ; alias aot_zoom_out aot_zoom_level2"
alias "aot_zoom_level2" "set aot_cur_zoom $aotzoom2 ; set aot_cur_sens $aotsens2 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level3 ; alias aot_zoom_out aot_zoom_level1"
alias "aot_zoom_level1" "set aot_cur_zoom $aotzoom1 ; set aot_cur_sens $aotsens1 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level2 ; alias aot_zoom_out aot_zoom_level0"
alias "aot_zoom_level0" "set aot_cur_zoom $aot_zoom0 ; set aot_cur_sens $aot_sens0 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level1 ; alias aot_zoom_out aot_zoom_level0"
// start with no zoom
aot_zoom_level0
// USER SETTINGS-key bindings
// you can change the binding here, but it is so cool having it on the wheel that you should try it first
bind "mwheelup" "aot_zoom_in"
bind "mwheeldown" "aot_zoom_out"
// this is the quick release, shift is good for me, but set to whatever works for you
//bind "mouse3" "aot_zoom_level0"
// AceOfThumbs 7 (was 3) level mouse wheel FOV zoom lock with quick release
// Given courtesy of Zatoichi, worked great for me with altered variables.
// USER SETTINGS-zoom levels
// adjust zoom FOV amount and mouse sensitivity levels to suit yourself, zoom0 and sens0 are for no zoom
set aot_zoom0 120
set aotzoom1 70
set aotzoom2 60
set aotzoom3 50
set aotzoom4 40
set aotzoom5 30
set aotzoom6 20
set aot_sens0 0.63
set aotsens1 0.55
set aotsens2 0.5
set aotsens3 0.5
set aotsens4 0.5
set aotsens5 0.5
set aotsens6 0.4
// END OF USER SETTINGS-zoom levels
// these actually do the zooming
alias "+aot_zoom_now" "fov $aot_cur_zoom ; sensitivity $aot_cur_sens"
alias "-aot_zoom_now" "fov $aot_zoom0 ; sensitivity $aot_sens0"
// these zoom level commands set up the sequence for zooming in and out
alias "aot_zoom_level6" "set aot_cur_zoom $aotzoom6 ; set aot_cur_sens $aotsens6 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level6 ; alias aot_zoom_out aot_zoom_level5"
alias "aot_zoom_level5" "set aot_cur_zoom $aotzoom5 ; set aot_cur_sens $aotsens5 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level6 ; alias aot_zoom_out aot_zoom_level4"
alias "aot_zoom_level4" "set aot_cur_zoom $aotzoom4 ; set aot_cur_sens $aotsens4 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level 5 ; alias aot_zoom_out aot_zoom_level3"
alias "aot_zoom_level3" "set aot_cur_zoom $aotzoom3 ; set aot_cur_sens $aotsens3 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level4 ; alias aot_zoom_out aot_zoom_level2"
alias "aot_zoom_level2" "set aot_cur_zoom $aotzoom2 ; set aot_cur_sens $aotsens2 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level3 ; alias aot_zoom_out aot_zoom_level1"
alias "aot_zoom_level1" "set aot_cur_zoom $aotzoom1 ; set aot_cur_sens $aotsens1 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level2 ; alias aot_zoom_out aot_zoom_level0"
alias "aot_zoom_level0" "set aot_cur_zoom $aot_zoom0 ; set aot_cur_sens $aot_sens0 ; +aot_zoom_now ; alias aot_zoom_in aot_zoom_level1 ; alias aot_zoom_out aot_zoom_level0"
// start with no zoom
aot_zoom_level0
// USER SETTINGS-key bindings
// you can change the binding here, but it is so cool having it on the wheel that you should try it first
bind "mwheelup" "aot_zoom_in"
bind "mwheeldown" "aot_zoom_out"
// this is the quick release, shift is good for me, but set to whatever works for you
//bind "mouse3" "aot_zoom_level0"