Jump to content
Sign in to follow this  
Victor_S.

AHHHH! Config problem.....

Recommended Posts

ok I made a custom grenade launcher and my config is not working.  When i start up ofp it gives me this

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Config:'{' after class mv203Muzzle : GrenadeLauncher

I looked at another addons config so im not sure whats wrong.

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

{

class CTunits

{

units[]={CT203};

weapons[]={};

requiredVersion=1.00000;

};

};

class CfgModels

{

class Default{};

class Weapon: Default{};

class mv203 : Weapon{};

};

class CfgRecoils

{

203Recoil[]={0.01,0.01,0.05,0.05,0,0};

};

class CfgAmmo

{

class default {};

class grenade: default {};

class 203: grenade

{

hit=20;indirectHit=18;indirectHitRange=7;

minRange=15;minRangeProbab=0.30;

midRange=80;midRangeProbab=0.55;

maxRange=150;maxRangeProbab=0.00;

model="\mv203\203.p3d";

cost=0.000000000000001;

soundHit[]={"\mv203\explosion.wav",db20,1};

soundFly[]={objects\noise,db-90,1};

soundEngine[]={,db-80,4};

visibleFire=2; // how much is visible when this weapon is fired

audibleFire=0.25;

visibleFireTime=0; // how long is it visible

};

};

class CfgWeapons

{

class Default {};

class GrenadeLauncher: Default {};

class mv203Mag: GrenadeLauncher

{

scopeWeapon = public;

scopeMagazine = public;

optics = true;

opticsZoomMin=0.35;

opticsZoomMax=0.35;

weaponType=WeaponNoSlot;

displayName="Mv203";

displayNameMagazine="203 Round";

shortNameMagazine="203";

count=30;

initSpeed=700;

magazineReloadTime=6;

picture="\mv203\mv203.pac";

muzzlePos="usti granatometu";

muzzleEnd="konec granatometu";

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

ammo="203";

multiplier=1;

burst=1;

dispersion=0.005000;

};

class mv203

{

scopeWeapon = public;

scopeMagazine = private;

weaponType = weaponSlotPrimary;

displayName = "mv203 launcher";

model="\mv203\mv203.p3d";

picture="\mv203\mv203.paa";

muzzles[]={mv203Muzzle);

class mv203Muzzle : GrenadeLauncher

{

reloadMagazineSound[]={"\mv203\Reload.wav",db-40,1};

magazines[]={mv203Mag};

sound[]={"\mv203\Fire.wav",0.131623,1};

soundContinuous=0;

reloadTime=0.100000;

ffCount=1;

recoil=203Recoil;

autoFire=0;

};

};

};

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Land:AllVehicles{};

class Man:Land{};

class Soldier:Man{};

class OfficerW:Soldier{};

class CT203: OfficerW

{

access=2

vehicleClass="CTunits";

displayName="CT203";

weapons[]={"Throw","Put","mv203","nade"};

magazines[]={"mv203Mag","mv203Mag","mv203Mag","mv203Mag","nade","nade"};

};

};

class CfgNonAIVehicles

{

class ProxyWeapon {};

class ProxyCT203 : ProxyWeapon {};

};

Pls help sad_o.gif

Share this post


Link to post
Share on other sites

in this part of code add a };

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

{

scopeWeapon = public;

scopeMagazine = private;

weaponType = weaponSlotPrimary;

displayName = "mv203 launcher";

model="\mv203\mv203.p3d";

picture="\mv203\mv203.paa";

muzzles[]={mv203Muzzle);

}; <---------------------- here

class mv203Muzzle : GrenadeLauncher

{

reloadMagazineSound[]={"\mv203\Reload.wav",db-40,1};

magazines[]={mv203Mag};

sound[]={"\mv203\Fire.wav",0.131623,1};

soundContinuous=0;

reloadTime=0.100000;

ffCount=1;

recoil=203Recoil;

autoFire=0;

};

};

};

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  

×