Garry's Mod
130 ψήφοι
FOV Remap
2
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Scenic
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
6.951 KB
5 Ιουλ 2022, 18:16
26 Μαϊ 2023, 11:10
3 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
FOV Remap

ΠΕΡΙΓΡΑΦΗ
"Yet another FOV slider addon"
I have had some issues while using other field-of-view changing addons, so I decided to make a script for myself a while ago that could handle both Half-Life 2 zoom and SWEPs relatively well. Modified it a bit and added a simple visual interface for publishing on the Workshop.

How to use
You'll probably be using the panel for adjusting the FOV. To be able to open it up in-game, you can bind it to a key:
Toggles the panel when a key is pressed once:
bind "key" "cl_fov_remap_toggle_panel"
Holds open the panel while a key is being pressed, closes when released:
bind "key" "+fovpanel"

Console variables
Name
Default
Purpose
cl_fov_remap_desired
<the value of fov_desired a.k.a. your default field-of-view>
The desired player camera FOV.
cl_fov_remap_enabled
1
Enable FOV Remap?
cl_fov_remap_vm
<the value of viewmodel_fov>
The desired ViewModel FOV. Note that this will probably not work with SWEPs, but will work with stock Half-Life 2 weapons.
cl_fov_remap_vm_fixed
0
ViewModel FOV does not follow player camera FOV?

Commands
Name
Purpose
cl_fov_remap_toggle_panel
Toggles the FOV panel.
+fovpanel
Opens the FOV panel. If this is bound to a key, -fovpanel will be executed when that key is released.
-fovpanel
Closes the FOV panel.
28 σχόλια
Milk 29 Νοε 2023, 17:23 
You should make an universal viewmodel FOV slider.
485 15 Σεπ 2023, 5:16 
https://gtm.you1.cn/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 Σεπ 2023, 2:41 
cant work with sharpeye :(
Im just a toucan 10 Ιουν 2023, 12:55 
can you please help me get out of third person? im stuck in it!
Lombaxtard 30 Μαϊ 2023, 4:16 
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 Μαϊ 2023, 6:16 
"(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
[aka]bomb  [Δημιουργός] 27 Μαϊ 2023, 4:24 
(continuing) or i could just ask the VManip author about this, idk lmao
[aka]bomb  [Δημιουργός] 27 Μαϊ 2023, 4:23 
@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.
[aka]bomb  [Δημιουργός] 27 Μαϊ 2023, 3:57 
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.