Xonotic Forums
Ace of Thumbs Script for Mouse Wheel Instagib Sniping - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Configuration Tips (https://forums.xonotic.org/forumdisplay.php?fid=19)
+--- Thread: Ace of Thumbs Script for Mouse Wheel Instagib Sniping (/showthread.php?tid=8431)



Ace of Thumbs Script for Mouse Wheel Instagib Sniping - Peach - 09-24-2020

//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"


RE: Ace of Thumbs Script for Mouse Wheel Instagib Sniping - Peach - 09-24-2020

//NOTE : This script will break mouse wheel weapon changing for non-instagib play.
//Place in autoexec.cfg in the ~/.xonotic/data directory to execute this script.


RE: Ace of Thumbs Script for Mouse Wheel Instagib Sniping - Cupatru - 07-25-2021

Thanks for posting, gave me a nice idea for which I might steal some of ur aliasesĀ  Big Grin