Simple script that replicates the eye zoom from the DayZ and Arma series of games. Load a save, the run this command "get_console():execute" as the latest file will now resepect user defined FOV.
If you're using EFP 3.0, either use this script or Haruka Zoom, using both doesn't mess anything up, this file however allows you to zoom whenever, as it should be, rather than only when your weapon is lowered. Also, this now works flawlessy within the EFP 3.0 to work with BAS guns
First mod, so nothing spectacular. This replicates the DayZ/Arma series eye zoom, by pressing the keybind it changes the FOV to " Zoom In", when releasing the key it goes back to normal. Default values are as such FOV 35 for the "zoom" and 75 for the base FOV, these can be changed. Binoculars and Scopes not impacted.
This script should be either installed manually, or with MO2. Personally manually is easiest for me. Just place the script inside the "gamedata/scripts" folder. If there is no "scripts" folder within your anomaly gamedata, just make one, Or add it through MO2 for easy disabling. To uninstall simply delete the script from the scripts folder, it will not impact the save or game in anyway.
The script is defaulted to the "N" key, if you'd like to change this just open up the extracted script file with your favorite editor, I recommend notepad++. Within the script you will see the line; (key == DIK_keys.DIK_N), change this to whichever key you prefer. E.G. if you'd like it to bind the zoom function to the X key it should look like this: (key == DIK_keys.DIK_X) and so on.
Again, to your desired FOV and Hud_FOV, set the FOV in the game settings then simply run this command: "get_console():execute". and this command: "get_hud_fov():execute"
Demonized for answering lots of questions and explaing why my formatting was wrong.
stupid question, but what does one need this for? can you maybe post a video or so?
thanks!!!
Something like this Streamable.com
Here is an example video!
The short answer? it isn't. The longer answer? I fell in love with the mechanic and am now heavily biased in favor of it in any first person game, for the most part. But its just a cool thing to have ya know!
it is a cool thing to haev indeed!!
This comment is currently awaiting admin approval, join now to view.
Very good job. Next update could have a MCM support to allow changing the key bind or the FOV ;)
Also, user defined default FOV can be extracted on game launch instead of setting a given value by your script.
Latest file now respects user defined FOV! Just simply run this command when a save has been loaded "get_console():execute" and it should respect the user defined FOV, testing shows so at least.
anyway to lock hud_fov while using weapon?
I can see what I can do, it does look a little strange doesn't it? I will fiddle with it, but I may simply just have to repeat the callbacks but for the HUD_FOV in order to make it appear like its locked.
The latest update does exactly what you'd like to see! thanks for the suggestion, it makes it even cooler.
Ah so you actually did it. Saw your post on reddit, but didnt know how to help you. Nice man, this is a very useful feature to have.
Thank you!
Love me some ARMA zoom.
This guy gets it!
A very nice QOL addition
Thank you
Good stuff dude! Adds some nice functionality when you can't be bothered to pull out a scoped weapon or your binoculars.
Thank you sir!
I like this.
Once I finally learn how to differentiate between long/short keypress in LUA, binding this script to a long press on R mouse, and using a short press on R mouse to toggle ADS will really bring the ARMA feel home.
Good job
👍
Any way to make it so it works more like arma? hold right click to zoom, tap right click to aim
Working on it
How would you change the script so that you can utilize the scroll wheel button instead of a key?
"local zoom_keybind = 339", however this is also hardbound to the companion wheel if I'm not mistaken.
this worked thanks man!
Very nice QOL mod, AS you said this becoming modern feature it is nice to see it adapted to good old anomaly. Which is quite funner now with this
Thank you
Is there a way to bind this to the thumb(side) mouse button?
Pretty sure you can replace DIK_Keys with just an integer. I think the side buttons are 5 and 6. So in the free_zoomV2.script file, the first line should look like:
local zoom_keybind = 5
Tried it, doesn't seem to work.
So you'll need to alter the script like this "local zoom_keybind = 340" without the quotations. or if you want to use mouse 5, use "local zoom_keybind = 341"
This mod is awesome. Really helps with early game without scopes and binos. Any idea when is BaS patch coming? Great work mate!
Unfortunately I don't think a BaS patch is available unles I can get a hold of the folks who made BaS, since they both use hud_fov scripts, theirs will always take priority. However, that doesn't mean I will stop trying to figure it out on my own! Apologies for the delay.
No apologies needed m8. Thank you for your efort!
Forgot to log in. Sorry.
I really love this mod, but it's unfortunate that it doesn't seem to be bindable to the right mouse button (mouse2). Is there any chance that this functionality could be added?
Sincerely, Hunter
I will try my best, remember this is my first mod and I have zero coding experience before this. I'm assuming you're using a different button for ADS? if thats the case then you could try altering the script like this "local zoom_keybind = 338" without the quotations, please let me know if it works.
If you're gonig for multiple functions to one key, I can perhaps get it working this upcoming weekend.
"you could try altering the script like this "local zoom_keybind = 338" without the quotations, please let me know if it works."
That does indeed work, thank you!
You're very welcome, glad we could figure it out for ya
Hey if anyone could help i've been trying to rebind and use ALT but can't seem to get it to work, is ALT has some kinda key code or something.
Thank you in advance!
I made it work!
Great job on making this mod btw thank you ♥
Bump to also know hot to bind it to Alt, I would like to get an extra zoom when aiming colimators, like Insurgency Sandstorm.
binding it to Left ALT is very easy, simply open the script contained in something like Notepad++, and change the line "DIK_N" to "DIK_LALT" and you should be good.
Thank you so much!
Hi friend, I did the same but it didn't work.
My line of code: local zoom_keybind = DIK_keys.DIK_LALT
If you can help I would be very grateful
Try using DIK_LMENU, also, sorry for the month old response...
My man! Those who casually play FPS won't notice the difference. For us Arma Veteran's it's a necessity. Thanks for making this mod!
You're welcome, I've come to love that zoom so much that I think it should be a requirement for open world games, period lol.
Great mod, completely essential for the huge maps of the zone!
By the way, is there a way to make the script use a toggle instead of holding down the key to keep zoomed?
I'm checking that out now, there is a way, I just need to figure how to script it correctly for you.