Jump to content
Sign in to follow this  
mr.g-c

How to change max zoom?

Recommended Posts

I can someone tell me where in the configs or model.cfg i can change the max. Zoom values?

I want to make the Cobra be able to zoom more when in gunner.

Regards, Christian

Share this post


Link to post
Share on other sites

initFov

minFov

maxFov

Share this post


Link to post
Share on other sites
initFov

minFov

maxFov

Great Thanks!

But where to put it in the config? In my turret-class or just in the vehicle class?

Share this post


Link to post
Share on other sites

in the turret class there is a sub class called view optics, place it there.

Init is the starting FOV, min is obviously the extent you can zoom out to, and max is zoom in extents.

0.7 is your standard walking around as a soldier FOV value.

Share this post


Link to post
Share on other sites

Thanks mate.

However i have a error.

This is the turret config (briefly)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class Turrets {

class MainTurret: NewTurret {

proxyType = CPGunner;

proxyIndex = 1;

body = "sensorTurret";

gun = "sensors";

startEngine = 0;

inGunnerMayFire = 1;

outGunnerMayFire = 1;

commanding = -1;

gunnerAction = "AH1Z_Gunner";

gunnerInAction = "AH1Z_Gunner";

primary = 1;

weapons[] = {M197};

magazines[] = {};

gunnerName="Camera Observer";

memoryPointsGetInGunner = "Pos_Gunner";

memoryPointsGetInGunnerDir = "Pos_Gunner_Dir";

memoryPointGun = "machinegun";

castGunnerShadow = 1;

viewGunnerShadow = 1;

gunnerForceOptics = 0;

minElev = -90;

maxElev = 20;

initElev = 0;

minTurn = -360;

maxTurn = 360;

initTurn = 0;

gunnerOpticsModel = "\ca\air\optika_AH1Z";

class HitTurret {

armor = 0.200000;

material = 51;

name = "vez";

visual = "vez";

passThrough = 0;

};

class HitGun {

armor = 0.200000;

material = 51;

name = "zbran";

visual = "zbran";

passThrough = 0;

};

class ViewOptics {

initFov = 0.700000;

minFov = 0.700000;

maxFov = 3.500000;

};

};

};

Then i get a error message with "no entry in config bla bla angle.x" or something like that....

Can is the config right or maybe broken?

Share this post


Link to post
Share on other sites

well, thats because you've only defined half the view optic. Once you declare a new viewoptics, you have to define every value it expects:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class ViewOptics

{

initAngleX = 25;

minAngleX = -89;

maxAngleX = 25;

initAngleY = 180;

minAngleY = -360;

maxAngleY = 360;

initFov = 0.175;

minFov = 0.175;

maxFov = 0.175;

};

That is a full view optic definition with 4x zoom

Share this post


Link to post
Share on other sites

no problem. I've just noticed you added 3.5 as your max FOV value... it doesnt quite work like that. I 'think' FOV uses values from 0-1 - 0 being the maximum zoom possible in ArmA, and 1 being the maximum fish eye effect possible (i.e. as much field of vision as possible). I've never really experiemented with the values if I'm honest.

A smaller FOV (field of vision) value equates to a greater zoom.

Share this post


Link to post
Share on other sites
no problem. I've just noticed you added 3.5 as your max FOV value... it doesnt quite work like that. I 'think' FOV uses values from 0-1 - 0 being the maximum zoom possible in ArmA, and 1 being the maximum fish eye effect possible (i.e. as much field of vision as possible). I've never really experiemented with the values if I'm honest.

A smaller FOV (field of vision) value equates to a greater zoom.

Yes thanks, already found that out.... i have it now changed appropriate how i like it... zomm is awesome wink_o.gif

Share this post


Link to post
Share on other sites

InitAngleY, is it possible to set this i.e. as a UH60 driver, so that the the pilot automatically looks a bit downward? With the current zoom level, the attitude indicator is never visible and the autosnap (annoying in y direction, good for x direction) brings it back out of view.

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  

×