Garry's Mod

Garry's Mod

FOV Remap
29 Comments
Airuly 8 Apr @ 8:43am 
this one works very well with mwb, very nice
Milk 29 Nov, 2023 @ 5:23pm 
You should make an universal viewmodel FOV slider.
85 15 Sep, 2023 @ 5:16am 
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1907060869 can solve the FOV problem (but Srlion's Hook Library will cause my VJ NPC to only shoot above the player model's head, maybe some plug-in conflict, but it does solve it VManip FOV issue):steamhappy:
95DCelsiusY 6 Sep, 2023 @ 2:41am 
cant work with sharpeye :(
Sam the big Toucan 10 Jun, 2023 @ 12:55pm 
can you please help me get out of third person? im stuck in it!
Lombaxtard 30 May, 2023 @ 4:16am 
I guess, CalcView Priority System wasn't helpful? Probably should be implemented in all of the problematic addons... By the way, DrGBase possesion hijacks FOV as well. And what about MW NVGs? They're not VManip in the slightest, yet they use, it seems, same order of things? Contagion Gasmask though is quite similar in visual execution, yet it keeps FOV consistent with FOV Remap. Argh, that's the joy of having millions of addons, creators and their ways of doing stuff
Lombaxtard 27 May, 2023 @ 6:16am 
"(continuing) or i could just ask the VManip author about this, idk lmao"

datae is known to be very egocentric and rarely answers comments on his own videos, so not really an option. If all else fails, could you edit VManip to accept other FOV values and give me n off-workshop .gma? VManip is not really maintained for many months, this shouldn't have too many drawbacks
carrot cake  [author] 27 May, 2023 @ 4:24am 
(continuing) or i could just ask the VManip author about this, idk lmao
carrot cake  [author] 27 May, 2023 @ 4:23am 
@Lombaxtard it seems to me that VManip is the problem.

one particular line in VManip's code [imgur.com] makes it so that VManip will basically ignore other addon's FOV values and instead replace the FOV with the one given by the addons before it. fov and hookv.fov (after the equals sign) should be switched around for this to work.

as to a possible solution for all this - i don't know. the ordering of the hooks is completely undefined (not sorted in any way) and changing the order of the addons in the addon list does not guarantee that the order of the hooks will change as well. only disabling some addons that add their own stuff could change the order.

to fix this, the Garry's Mod developers would have to rethink/rewrite the entire Garry's Mod hook system and possibly break existing addons in the process.
carrot cake  [author] 27 May, 2023 @ 3:57am 
well, the mwbase vm fov decreases to keep up with your camera fov increasing, i think.

about the hook order: i actually got this addon to execute after other addons now, so now i can start actually testing things properly. gonna try some things out to see how to fix this.
Lombaxtard 27 May, 2023 @ 2:15am 
By the way, one more thing I kept noticing back in the day: if I use MWBase weapons (probably other bases as well, not sure), fov_desired will not change viewmodel FOV for these guns. Example: cl_fov_remap_desired is 75 and fov_desired is 75 — well, everything's how it is. But if: cl_fov_remap_desired is 75 and fov_desired is changed to 90 — MWBase viewmodel FOV will DECREASE, but the regular game FOV will of course, stay 75 as it should be.

Concerning the CalcView priority issue: what else can I do to conquer this problem? I did try to give it higher priority than VManip and MW NVGs, but when tested lua_find_blahblah in-game the order of hooks stayed the same as I've shown
Lombaxtard 26 May, 2023 @ 2:39pm 
Nope, still there
Lombaxtard 26 May, 2023 @ 11:28am 
I will, thank you
carrot cake  [author] 26 May, 2023 @ 11:26am 
@Lombaxtard

okay, i uploaded the updated version of the addon with the fix, i think it should work properly-er now. you can try it whenever you have the time
Lombaxtard 25 May, 2023 @ 11:03am 
https://imgur.com/8soQl0k

I ran the cvar and sure enough, priorities are messed up.
carrot cake  [author] 25 May, 2023 @ 10:33am 
check the output that lua_findhooks_cl CalcView gives you. [imgur.com] (the imgur link also has a description with an explanation)

basically, if FOV Remap is before VManip, then it should be working like it is for me, but if it is after it, then it is probably seeing the custom FOV that VManip gives it and does not override it. i made some changes in the code to fix this, but debugging hook order is tricky. i will update the addon a bit later
Lombaxtard 25 May, 2023 @ 10:19am 
Oh dear god, what kind of conflict could that be... Any way for me to debug the issue somehow? I have a slow laptop HDD, and with a few content packs maps load from 10 to 15 minutes and I can't really play exclusion with addons and find out which it is...
carrot cake  [author] 25 May, 2023 @ 10:15am 
* i do have an idea of why this won't always work though. i will try to fix the problem and update the addon
carrot cake  [author] 25 May, 2023 @ 10:11am 
@Lombaxtard

okay, that's really weird, i tested this with the armorplates addon, and everything is working fine
demonstration (on Streamable) [streamable.com]
Lombaxtard 25 May, 2023 @ 10:00am 
Forgot to mention "Modern Warfare NVGs" also has this issue, so this is not a problem exclusive to VManip. Also, not all VManip animations trigger this behavior. Interaction animation from "Contextual Animations" and "VManip Flashlight" work perfectly with <75/>90 FOV numbers
carrot cake  [author] 25 May, 2023 @ 9:38am 
@Lombaxtard i'll try to see what's up with VManip, i don't usually use those kinds of addons so i may have not noticed that before
Lombaxtard 25 May, 2023 @ 7:44am 
I really doubt you care, but it would've been so sick if you'd have added compatibility with VManip stuff, because things like "Contextual Animations", "Armor Plates", "Arctic's Night Vision" override FOV of your addon. I tested with FOV Remap disabled and tried changing FOV with "fov_desired" - FOV was dynamic with those VManip addons. But if I enabled FOV Remap - FOV was forced to exactly 75 for brief moments that those VManip animations were playing. One step to perfection, really hope you'll make a move...
Hagorebos14 18 Mar, 2023 @ 1:45pm 
Работает, мо мвоей задачей справляется, только вот привязывать меню поля зрения через консоль не очень удобно. Или я просто слишком ленив. ПМСП (Да, страдайте, но это переводится примерно так) 4/5

It works, does what it supposed to do, But its uncomfortable to bind FOV menu using console. Or i'm just too lazy. IMHO. 4/5.
Lombaxtard 19 Dec, 2022 @ 10:49am 
Literally THE best FOV addon while also being extremely compatible
I also think it's the only field of view modifier that allows for LOWER values which is super-extremely-ultra-mega cool
Thank you so much for this :lunar2019grinningpig: :steamthumbsup:
BenEViolent 15 Sep, 2022 @ 3:30pm 
is there a way to increase the fov for the camera?
ONLYCLOGmeURINALS 11 Jul, 2022 @ 11:18pm 
when you spam-equip your glasses irl
ELTR101 8 Jul, 2022 @ 5:47pm 
@Skele Jangton LOL
Skele Jangton 7 Jul, 2022 @ 12:26pm 
pov your eyes zoom in and out :demoneye::demoneye: