OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: brsseb on 10 Oct 2002, 15:48:16
-
Hi
Ive made a sniper rifle for ofp. The model is finished and Ive made a configfile. Now I want to modify the optic zooming for the rifle (ive inherited the m21 class)
But I dont understand the attributes that dealts with sniperrifle optics and the Commented Config files didnt offer much help. So could someone explain these propeties:
opticsZoomMin
opticsZoomMax
distanceZoomMin
distanceZoomMax
dispersion;
-
some info for you.
The value you put into those definitions (the scopevalue) can be derived from the following formula.
scopevalue=0.7*magnification value^-1
where the "maginification value" is the magnification level you want to achieve.
So a scopevalue of 0.35 will give you a mag level of x2
0.175 gives x4
1 gives x7
etc.
The min/Max is also reversed from what you would think them to be.
eg the M21 values:
opticsZoomMin=0.040000;
opticsZoomMax=0.120000;
distanceZoomMin=400
distanceZoomMax=80
the "min" actually refers to the higher magnification level
the 0.04 = x17.5 magnification
the 0.12 = x5.8 magnification
the distancezoommin/max you use to center the scope.
SelectThis