Jump to content
Sign in to follow this  
JdB

Spinning optics

Recommended Posts

I am making a Makarov, but I have a problem with the optics. Once I look down the iron sights the view start spinning around, until I go to 1st person view again.

Here's the config:

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

class CfgPatches

{

class Mak

{

units[] = {Mak};

weapons[] = {Mak};

requiredVersion = 1.75;

};

};

class CfgModels

{

class Default

{

sectionsInherit=;

sections[]={};

};

class Weapon: Default{};

class Mak: Weapon{};

};

class CfgAmmo

{

class default {};

class BulletSingle : Default {};

class MakBase : Bulletsingle

{

hit=10;

indirectHit=0.9;

indirectHitRange=0.9;

visibleFire=9;

audibleFire=27;

visibleFireTime=2;

cartridge="FxCartridge";

minRange=0;

minRangeProbab=0.100000;

midRange=520;

midRangeProbab=0.700000;

maxRange=1000;

maxRangeProbab=0.040000;

tracerColor[]={0.900000,0.000000,0.000000,8.000000};

tracerColorR[]={0.900000,0.000000,0.000000,8.000000};

};

};

class CfgRecoils

{

//time, rear, up

Makrecoil[]= {0.050000,0.020000,"0.04*1.35",0.050000,0.010000,"0.01*0.5",0.050000,0.030000,"0.04*1.35",0.050000,0.020000,"0.02*0.5",0.050000,0.040000,"0.04*1.35",0.010000,0,0};

};

class CfgWeapons

{

class Default {};

class MGun: Default {};

class Riffle: Mgun {};

class HandGunBase: Riffle {};

class Mak: HandgunBase

{

scopeWeapon=2;

scopeMagazine=2;

model="\Mak\Mak.p3d";

picture="\TFW_30Ca4a6\ma4_w.paa";

optics = true;

opticsZoomMin=0.35;

opticsZoomMax=0.35;

displayName = "Makarov.";

displayNameMagazine = "Makarov Magazine";

shortNameMagazine = "MakMag";

modelOptics="\Mak\optika_TokarevT33.p3d";

magazines[]={"MakMag"};

count = 8;

weaponType=2;

magazineType = 32 * WeaponSlotItem;

multiplier=1;

magazineReloadTime=6;

burst=1;

dispersion=0.0017;

reloadMagazineSound[]={\Mak\Reload.wav,0.000316,1};

drySound[]={"Mak\empty.wav",0.000316,1};

modes[]={"Single"};

class Single {

ammo="MakBase";

multiplier=1;

burst=1;

displayName="Makarov";

reloadTime=0.1;

sound[]={"\Mak\fire01.wav",0.000316,1};

soundContinuous=0;

dispersion=0.01000;

aiDispersionCoefX=4.000000;

aiDispersionCoefY=3.000000;

ffCount=1;

recoil=riffleSingle;

autoFire=0;

aiRateOfFire=0.00000;

aiRateOfFireDistance=50;

useAction=0;

useActionTitle="";

};

};

class MakMag: Mak

{

picture="\TFW_30Ca4a6\ma4_a.paa";

scopeWeapon=0;

scopeMagazine=2;

};

};

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Land:AllVehicles{};

class Man:Land{};

class Soldier:Man{};

class SoldierEB:Soldier{};

class Mak: SoldierEB

{

displayName="Makarov 9x18";

fov=1.00; minFov=1.00; maxFov=1.00;

class default{}

class ViewPilotbase: default{};

class ViewPilot: ViewPilotBase

{

initAngleX=8; minAngleX=-40; maxAngleX=+45;

initAngleY=0; minAngleY=-125; maxAngleY=+125;

initFov=1.00; minFov=0.42; maxFov=1.00;

};

vehicleclass="Lt_HuNTeR";

weapons[]={"Mak","Binocular","Throw","Put"};

accuracy=14;

magazines[]={MakMag,MakMag,MakMag,MakMag,MakMag};

};

canHideBodies=1;

};

class CfgNonAIVehicles

{

class ProxyWeapon {};

class ProxyMak: ProxyWeapon {};

};

Share this post


Link to post
Share on other sites

N/m, moved the Memory Lod, and the problem is solved.

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  

×