GunHammer wrote:And I was trying to 'code' a quick-zoom that wouldn't take so long to get there like the default zoom, but my frame rate gets halved because the scr_zoomwindow creates two displays. Any tips for an instant zoom without performance loss?
Yeah, you can make a zoom script. Here is something I did. Put this in autoexec.cfg (create the file if you don't have it)
- Code: Select all
// zoom script
set fov_orginal $fov
set fov_zoomvalue 50
set fov_sensorginal $sensitivity
set fov_sens 1.2
alias "+fov_zoom" "fov $fov_zoomvalue ; sensitivity $fov_sens"
alias "-fov_zoom" "fov $fov_orginal ; sensitivity $fov_sensorginal"
alias zoom_toggle "zoom_on"
alias zoom_on "fov $fov_zoomvalue ; sensitivity $fov_sens ; alias zoom_toggle zoom_off"
alias zoom_off "fov $fov_orginal ; sensitivity $fov_sensorginal ; alias zoom_toggle zoom_on"
bind mouse3 "+fov_zoom" // zoom while pressing
bind x "zoom_toggle" // zoom toggle
You can change the binds for '+fov_zoom' and 'zoom_toggle'.
+fov_zoom = zoom while pressing.
zoom_toggle = zoom toggle.
You can change the zoom strength with 'set fov_zoomvalue' and change the zoom mouse sensitivity with 'set fov_sens'.