Get/Set FOV of non-weapon zoom

Post » Fri May 27, 2011 8:23 am

Is there a way to modify the FOV of the zoom thats activated when you have your weapon holstered? Just like Get/SetWeaponSightFOV from FOSE, only without the weapon :)
(I know that there are ways to work around this with SetCameraFOV)
User avatar
Charlotte Henderson
 
Posts: 3337
Joined: Wed Oct 11, 2006 12:37 pm

Post » Fri May 27, 2011 9:11 pm

Not sure about getting the FOV but...
Spoiler
Int bZoomInBegin MenuMode 1004	If NVSE		Set iBlockButtonGLOB to GetControl 4 ; In case the user changes their Zoom/Block key	EndIfEnd;========================================Begin MenuMode 1007	If NVSE		If GetGameLoaded			Set iBlockButtonGLOB to GetControl 4			Set fDefaultFOVCameraGLOB to GetNumericIniSetting "fDefaultFOV:Display"		EndIf	EndIfEnd;========================================Begin GameMode	If NVSE		If (IsKeyPressed iBlockButtonGLOB != bZoomIn) ; Key 257 = RMB			Set bZoomIn to (bZoomIn == 0) ; Set bool to whatever it's not			If bZoomIn				SetCameraFOV fModifiedFOVCameraGLOB			Else				SetCameraFOV fDefaultFOVCameraGLOB 			EndIf		EndIf	Else		RemoveMe	EndIfEnd
...should let you zoom in to whatever value you want. You'd probably want it on an object script like an unplayable armor so it will respond quickly enough. Not sure about SetcameraFOV just yet, but Con_SetCameraFOV let you also determine the http://en.wikipedia.org/wiki/Dolly_zoom.
User avatar
Captian Caveman
 
Posts: 3410
Joined: Thu Sep 20, 2007 5:36 am

Post » Fri May 27, 2011 12:12 pm

Not sure about getting the FOV but...
Spoiler
Int bZoomInBegin MenuMode 1004	If NVSE		Set iBlockButtonGLOB to GetControl 4 ; In case the user changes their Zoom/Block key	EndIfEnd;========================================Begin MenuMode 1007	If NVSE		If GetGameLoaded			Set iBlockButtonGLOB to GetControl 4			Set fDefaultFOVCameraGLOB to GetNumericIniSetting "fDefaultFOV:Display"		EndIf	EndIfEnd;========================================Begin GameMode	If NVSE		If (IsKeyPressed iBlockButtonGLOB != bZoomIn) ; Key 257 = RMB			Set bZoomIn to (bZoomIn == 0) ; Set bool to whatever it's not			If bZoomIn				SetCameraFOV fModifiedFOVCameraGLOB			Else				SetCameraFOV fDefaultFOVCameraGLOB 			EndIf		EndIf	Else		RemoveMe	EndIfEnd
...should let you zoom in to whatever value you want. You'd probably want it on an object script like an unplayable armor so it will respond quickly enough. Not sure about SetcameraFOV just yet, but Con_SetCameraFOV let you also determine the http://en.wikipedia.org/wiki/Dolly_zoom.



Hehe that's exactly the solution I told him in IM, and that's not what he wants.
User avatar
He got the
 
Posts: 3399
Joined: Sat Nov 17, 2007 12:19 pm

Post » Fri May 27, 2011 8:00 am

Hehe that's exactly the solution I told him in IM, and that's not what he wants.
Doh! I'm at a loss trying to figure out what they do want. *scratches head and re-re-reads the OP* o_0
User avatar
N3T4
 
Posts: 3428
Joined: Wed Aug 08, 2007 8:36 pm

Post » Fri May 27, 2011 10:10 am

Doh! I'm at a loss trying to figure out what they do want. *scratches head and re-re-reads the OP* o_0

Well, when you have your weapon holstered, and you press zoom/block, you'll zoom in. What I initially wanted to accomplish was to allow changing zoom levels while doing so. setCameraFOV manipulates the non-zoomed FOV. The default for the zoomed FOV is 50, so i can setCamerFOV 40, but as soon as n press zoom/block it's 50 again. So if i wanted to use setCameraFOV, I'd have to unbind zoom/block whenever the weapon is holstered, and enable a script that uses setCameraFOV to fake the original zoom + add functionality to zoom in/out. That's a little more complicated than just using something like setZoomFOV X, so that's why i first wanted to ask if there's something like that i had missed.
User avatar
Jonathan Braz
 
Posts: 3459
Joined: Wed Aug 22, 2007 10:29 pm


Return to Fallout: New Vegas