Jump to content
MrSanchez

Disabling A3 camera zoom out on high speeds in cars

Recommended Posts

So as the title states, is it even possible? I have this feeling that this may be hardcoded into the engine, I'd have no idea where to start.

I'd love to make an addon (i have somewhat experience) that disables this.

In case you don't know what I'm talking about, get into a car in ArmA 3 that goes > 150km and watch the camera zoom out to simulate Gforces/speed comprehension, I know it's more or less realistic but I'm not a fan of the feature and would like to turn it.

I doubt that any trace of this would be in the vehicle configs.

Anyone have any ideas?

Kind regards,

Sanchez

Share this post


Link to post
Share on other sites

1) Your thread belongs here http://forums.bistudio.com/forumdisplay.php?170-ARMA-3-ADDONS-Configs-amp-Scripting

2) One way to do it is by setting maxFov equal to initFov. Downside is you can't zoom out.

I don't know if this "feature" can be swithched off.

Disable zooming out for all cars:

class CfgVehicles
{
   class LandVehicle;
   class Car: LandVehicle
   {
       class ViewPilot;
   };
   class Car_F: Car
   {
       class ViewPilot: ViewPilot
       {
           initFov = 0.7;
           minFov = 0.25;
           maxFov = 0.7;
       };
   };
};

  • Like 1

Share this post


Link to post
Share on other sites
1) Your thread belongs here http://forums.bistudio.com/forumdisplay.php?170-ARMA-3-ADDONS-Configs-amp-Scripting

2) One way to do it is by setting maxFov equal to initFov. Downside is you can't zoom out.

I don't know if this "feature" can be swithched off.

Disable zooming out for all cars:

class CfgVehicles
{
   class LandVehicle;
   class Car: LandVehicle
   {
       class ViewPilot;
   };
   class Car_F: Car
   {
       class ViewPilot: ViewPilot
       {
           initFov = 0.7;
           minFov = 0.25;
           maxFov = 0.7;
       };
   };
};

I see, thanks for pointing me in a direction to where I can at least start.

And yes, you're right, the addons config section would've been a better place to post this, I just happen to spend a lot of time browsing this & the addons complete sections that I forget about the editing section.

Kind regards,

Sanchez

Share this post


Link to post
Share on other sites

The effect is hard coded and applied to the pilot view of all non-man vehicles (including aircraft, ships, etc). It creates a reasonable impression of movement due to acceleration in ground vehicles at low speed, but just plain sucks for aircraft and fast ground vehicles like the hatchback sport. Ideally the effect should be linked to actual acceleration/deceleration rather than speed.

The displayed Fov (config value) approximately equals:

displayedFov = initFov + ((speed/252) * (maxFov - initFov))

speed is a true 3D value in km/h. When speed is over 252 maxFov is displayed.

Edited by ceeeb

Share this post


Link to post
Share on other sites
The effect is hard coded and applied to the pilot view of all non-man vehicles (including aircraft, ships, etc). It creates a reasonable impression of movement due to acceleration in ground vehicles at low speed, but just plain sucks for aircraft and fast ground vehicles like the hatchback sport. Ideally the effect should be linked to actual acceleration/deceleration rather than speed.

The displayed Fov (config value) approximately equals:

displayedFov = initFov + ((speed/252) * (maxFov - initFov))

speed is a true 3D value in km/h. When speed is over 252 maxFov is displayed.

Yeah, I did some testing last night after I placed Blu3sman's code into a config. I was having difficulties seeing a difference, it looked like it somewhat reduced, but the effect was still clearly there.

Perhaps there's more luck posting this in the A3 suggestions section :/

Thanks for the help.

Kind regards,

Sanchez

Share this post


Link to post
Share on other sites

1) Your thread belongs here http://forums.bistudio.com/forumdisplay.php?170-ARMA-3-ADDONS-Configs-amp-Scripting

2) One way to do it is by setting maxFov equal to initFov. Downside is you can't zoom out.

I don't know if this "feature" can be swithched off.

Disable zooming out for all cars:

class CfgVehicles
{
class LandVehicle;
class Car: LandVehicle
{
class ViewPilot;
};
class Car_F: Car
{
class ViewPilot: ViewPilot
{
initFov = 0.7;
minFov = 0.25;
maxFov = 0.7;
};
};
};

Can you tell me where is this conig file to change initfov and maxfov ? Thank you

Share this post


Link to post
Share on other sites

you have to write your config that overwrites vanilla values. You should never alter original game files.

Share this post


Link to post
Share on other sites
On 3/27/2015 at 7:19 PM, blu3sman said:

1) Your thread belongs here http://forums.bistudio.com/forumdisplay.php?170-ARMA-3-ADDONS-Configs-amp-Scripting

2) One way to do it is by setting maxFov equal to initFov. Downside is you can't zoom out.

I don't know if this "feature" can be swithched off.

Disable zooming out for all cars:

 


class CfgVehicles
{
   class LandVehicle;
   class Car: LandVehicle
   {
       class ViewPilot;
   };
   class Car_F: Car
   {
       class ViewPilot: ViewPilot
       {
           initFov = 0.7;
           minFov = 0.25;
           maxFov = 0.7;
       };
   };
};
 

 

Hey Blu3man, I've been trying to adapt your method above to disable zooming out at speed in helicopters but with no success, this is the code in the config.bin of the PBO I made:

class CfgVehicles
{
	class Helicopter;
	class Helicopter_Base_F: Helicopter
	{
		class ViewPilot;
	};
	class Helicopter_Base_H: Helicopter_Base_F
	{
		class ViewPilot: ViewPilot
		{
			initFov = 0.7;
			minFov = 0.25;
			maxFov = 0.7;
		};
	};
};

Any ideas what I might be doing wrong here? The mod loads into the game fine but there is no notable change and I still get the zooming out at speed. Thanks in advance for any info, it'd be greatly appreciated.

 

EDIT: Just got it working exactly as I wan't, I just modified Head Range Plus - TrackIR Mod PBO code to cap all the maxfov's! No more unrealistic speed zoom!! :D

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

×