Toggleable free zoom with customizable zoom level.
What and why:
Due to GAMMA's bloated keybind situation, I ended up binding free zoom to a somewhat tricky key to hold. As far as I know, free zoom wasn't toggleable, so I tried to add the functionality myself. Since I was already tinkering with it, I went ahead and made the zoom customizable. Beware though, this was my first try at scripting, with only some prior experience in R! I'll do my best to fix issues but can't promise results.
Features:
- Free zoom can be set to work either as a toggle or as a hold (like before).
- Zoom level is now customizable.
- Lower numbers = more zoom.
- To make it not so OP, it can range from 0.55 to 0.85.
- Base zoom was slightly nerfed. Default is now 0.65 (GAMMA default is 0.61).
- Has a google translated russian version.
Disable the following addons:
- original Free Zoom by SlowVibe
- G.A.M.M.M.A. Free Zoom v3 (if using GAMMA, obviously).
All credits to the original author and editors. I just added a couple ifs.
03/10/2023 - Fixed free zoomed being bugged when unscoping a weapon.
You need demonized_time_events.script if you want your addon to be standalone: Github.com
Also, yes, I remade 90% of the addon code and bugfixes compared to the original addon, so I guess you can credit me lol.
Great, thanks Grok. I figured you remaded it but wasn't sure and dind't want to bother you for such a triviality.
Reuploaded the file so it includes demonized's script.
will new gamma update have toggle zoom too?
Nice thanks to Grokitach and Jack
Hi there,
Not sure if its just me but my game is crashing when i try to zoom using your addon.
Im using Anomaly 1.5.1 with Enhanced Shaders, GTR, and ****.
I even tried to use it on fully clean Anomaly with only your mod enabled and still getting hard crashes when i try to zoom.
Im getting following error:
Expression : <no expression>
Function : CScriptEngine::lua_error
File : ..\xrServerEntities\script_engine.cpp
Line : 191
Description : fatal error
Arguments : LUA error: .../stalker\gamedata\scripts\free_zoom_revisited_mcm.script:94: attempt to index global 'speed' (a nil value)
stack trace:
I think you need this: Moddb.com
Install that addon and try again. Since my addon was done for GAMMA I didn't even realize it needed gotta go fast. I'm 99% sure thats the problem, but just to be sure please reply if it works.
This comment is currently awaiting admin approval, join now to view.
I'd love to see the option to make it so we have the option to double-click/hold the keybind.
Similar to how the "MCM Key Wrapper" mod does it
Seems to be an issue with BaS weapons, and a number of other things. Happens if I got my fire axe out, if I use Binoculars, even with grenades and my svarog detector. With normal weapons, while zooming in, the weapon stays where it should be but with the other ways everything also zooms in. Looks like the Hud FoV messing up or something?
My Fov is 70 and Hud_Fov is 0.6
Patch for BAS?
Expression : <no expression>
Function : CScriptEngine::lua_error
File : D:\a\xray-monolith\xray-monolith\src\xrServerEntities\script_engine.cpp
Line : 231
Description : fatal error
Arguments :
1 : [Lua] ...n/bin/..\gamedata\scripts\free_zoom_revisited_mcm.script(94) : func_or_userdata
LUA error: error in error handling
Check log for details
stack trace:
Do you have Moddb.com?
Is there any way to install on 1.5.1 without Grok Gotta Go Fast?
Don't really feel like change actor speed but I want the toggle-able zoom
Is there a way to make it work with BaS weapons?
it looks like the weapons stay the same size while the fov changes when zooming in
how can I change the zoom button?
So I'm a little stupid. Which button is responsible for the zoom or how to change it?
N - button for zoom, but, how change it idk
This comment is currently awaiting admin approval, join now to view.