News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Altering FOV when zoomed in

Started by VGames, November 28, 2015, 06:29:57 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

VGames

I've noticed that I am unable to make a weapon change the field of vision while zoomed in. It's like the command:


sys.setcvar( "g_fov", WHATEVERYOUWANTTHISTOBE );


does not work at all while zoomed in with the BUTTON_ZOOM key. Do any of you know where in the SDK this can be turned off so that I can change the FOV no matter if I'm currently zoomed in or not?
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

The Happy Friar

There's a way to do it from the .def I think.  Can't remember what it is, I might of saw it in the code & used it.

VGames

Are u saying there's a way to disable this issue in the def or are u referring to the zoomFov definition that u can add a weapons def to set the fov when zoomed in? I know about that one already.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

VGames

I've set this up with different buttons so I'm good to go now. Thanks for the help.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

The Happy Friar

I looked up in the GPL code.  using "zoomFOV" "#" (listed in weapon.h) in the weapon def should define a specific zoom per weapon.  But if you don't define for every weapon then when you zoom in with a weapon w/o zoom defined it uses the last value. 

IE the machine gun zooms in to 20.  You use machine gun & zoom in.  Then you switch to fists.  It has no zoom defined. If you zoom in then it zooms in to 20.

VGames

That's good to know. Did not realize it worked like that. Thanks for the heads up.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500