A variation on the FOV zoom scripts that sets up a zoom in button and a zoom out button with 3 levels. It would be easy to add more levels if you want.
HOW IT WORKS
- press R to set the zoom level higher (more zoom)
- press F to set the zoom level lower (less zoom)
- press SHIFT or CAPSLOCK to zoom (starts at level 1 zoom)
PROBLEMS
- Used to give an error message but I fixed it.
- If you are holding shift or have capslock on, adjusting the zoom level doesn't take effect yet. You have to release zoom and zoom again. I came up a better script here:
http://alientrap.org/forum/viewtopic.php?t=2164
Let me know if you have any suggestions/comments/requests. Below is the script that would go in your autoexec.cfg file. I used "aot" at the beginning of each variable and alias to try to make sure it isn't conflicting with something Nexuiz is using internally. aot=AceOfThumbs.
// AceOfThumbs 3 level FOV zoom with lock
// adjust zoom and sensitivity levels to suit yourself
set aotzoom1 70
set aotzoom2 50
set aotzoom3 20
set aotsens1 2
set aotsens2 1.5
set aotsens3 1
// current values for zoom mode. Default to zoom level 1.
set aot_cur_zoom $aotzoom1
set aot_cur_sens $aotsens1
// save non-zoom values
set aot_zoom0 $fov
set aot_sens0 $sensitivity
// zoom level commands
alias "aot_zoom_level3" "set aot_cur_zoom $aotzoom3 ; set aot_cur_sens $aotsens3 ; echo zoom3 ; alias aot_zoom_in aot_zoom_level3 ; alias aot_zoom_out aot_zoom_level2"
alias "aot_zoom_level2" "set aot_cur_zoom $aotzoom2 ; set aot_cur_sens $aotsens2 ; echo zoom2 ; 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 ; echo zoom1 ; alias aot_zoom_in aot_zoom_level2 ; alias aot_zoom_out aot_zoom_level1"
alias "aot_zoom_in" "aot_zoom_level2"
alias "aot_zoom_out" "aot_zoom_level1"
bind "mwheelup" "aot_zoom_in"
bind "mwheeldown" "aot_zoom_out"
alias "+aot_zoom_now" "fov $aot_cur_zoom ; sensitivity $aot_cur_sens"
alias "-aot_zoom_now" "fov $aot_zoom0 ; sensitivity $aot_sens0"
bind "shift" "+aot_zoom_now"
bind "capslock" "+aot_zoom_now"