Jump to content
Sign in to follow this  
zxxxrhs

Vehicle optics zoom?

Recommended Posts

Yes.

It's in the config under InitFoV, MinFoV and MaxFoV where FoV means Field of View - the smaller the number, the more zoomed-in it is.

Share this post


Link to post
Share on other sites

Where should I place it?

I tried directly in the class and it didn't change anything. The same with pasting in a modified ViewGunnerBase and ViewOpticsBase classes.

Share this post


Link to post
Share on other sites

A tank. I'm trying to disable zooming in and out.

Share this post


Link to post
Share on other sites

The game engine doesn't make use of the ...Base definitions, but rather the ViewOptics, ViewPilot, etc that are derived from them. Hence if you add

class ViewPilot:ViewPilotBase {};

class ViewGunner:ViewGunnerBase{};

etc.

after where you've changed the ...Base, that ought to work.

For instance, I've just tried the following added to the main config after M60 tank

	class Test_M60:M60
	{
	displayName="No-Zoom M60";

	class ViewOptics:ViewOpticsBase		// from Tank class
		{
		initFov=0.3;
// minFov=0.07;
// maxFov=0.35;
	minFov=0.3;
	maxFov=0.3;
		};

	};

That prevents zooming in or out ONLY when viewing through a position's optics. It seemingly applies to all positions: driver, gunner and commander. You can still zoom in/out when in normal first-person view (when you can also turn your head with the numpad).

Share this post


Link to post
Share on other sites

I had to copy the whole ViewOpticsBase class and rename it to ViewOptics because it claimed that the ViewOpticsBase class isn't defined or something. Now it works.

Thanks a lot!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×