Xonotic Forums

Full Version: Variable Zoom
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I am wondering if we are able to get a variable zoom in this game or it only supports fixed zoom.
With variable, do you mean different zoom settings for different weapons or just another zoom size? Not sure about the first, but to change zoom size try "cl_zoomfactor", the values go between 1-30.

Side note: Convenient way to find what you need is to use "apropos searchword" in console, it lists all variables that has your searchword either in their command line or description. For example, "apropos zoom" gives you a list of every zoom related variable.
(10-16-2018, 08:48 PM)LSmilecythe Wrote: [ -> ]With variable, do you mean different zoom settings for different weapons or just another zoom size? Not sure about the first, but to change zoom size try "cl_zoomfactor", the values go between 1-30.

Side note: Convenient way to find what you need is to use "apropos searchword" in console, it lists all variables that has your searchword either in their command line or description. For example, "apropos zoom" gives you a list of every zoom related variable.

Like when I open zoom it has say a 4 magnification but I can increase it to 10. I’ll check that command when I am able.
So scrollable zoom basically? I asked from someone who knows better:


Quote:[b]<Mario>[/b] funny @Smilecythe, i just opened an issue for that after reading the thread
[b]<Mario>[/b] by default, there isn't, however, there is an old zoom script that allowed it
[b]<Mario>[/b] namely this: https://github.com/z/nn_ninja_pack/blob/master/nn_aot_zoom.cfg
[b]<Mario>[/b] also, the issue is here: https://gitlab.com/xonotic/xonotic-data.pk3dir/issues/2114

I don't have experience running scripts, so I'm kinda hoping someone else chimes in. We can also presume that the feature might appear in Xon later without the need of scripts.
(10-17-2018, 07:03 PM)Smilecythe Wrote: [ -> ]So scrollable zoom basically? I asked from someone who knows better:


Quote:[b]<Mario>[/b] funny @Smilecythe, i just opened an issue for that after reading the thread
[b]<Mario>[/b] by default, there isn't, however, there is an old zoom script that allowed it
[b]<Mario>[/b] namely this: https://github.com/z/nn_ninja_pack/blob/master/nn_aot_zoom.cfg
[b]<Mario>[/b] also, the issue is here: https://gitlab.com/xonotic/xonotic-data.pk3dir/issues/2114

I don't have experience running scripts, so I'm kinda hoping someone else chimes in. We can also presume that the feature might appear in Xon later without the need of scripts.

Yeah, I have no experience running scripts either. Ayome know how??
put it in data folder and type in console(or put in autoexec.cfg): exec nn_aot_zoom.cfg
then: bind <KEY> +aot_zoomadjust

I don't know if a commnd starting with +<cmd> automatically invokes the -<cmd> when released but if not you should also bind <KEY> -aot_zoomadjust
what would be much more useful would be having program that sets your sensitivity in ratio to the zoom
so that the sensitivity feels the same on matter what zoom value you have.
also if you made it variable it would be op because it would make accuracy more irrelevant which is bad.

you could make a macro program that does this via the command interface. it would have to be really fast so it has a high probability of happening between frames.