Home   Help Search Login Register  

Author Topic: Thanks for the help....  (Read 1510 times)

0 Members and 1 Guest are viewing this topic.

KyleSarnik

  • Guest
Thanks for the help....
« on: 06 Sep 2003, 21:47:45 »
[shadow=red,left,300]HELP![/shadow]

I cant get the 30 Mag to work:

Code: [Select]
class CfgPatches
{
        class KS_MP5K
        {
           units[]={};
           weapons[]={KS_MP5K};
           requiredVersion=1.850000;
           requiredAddons[]={BIS_Weaponpack,BIS_Resistance};
        };
};

class CfgModels
{
        class Default {};
        class Weapon: Default {};
        class KS_MP5K: Weapon {};
};


class CfgRecoils
{
        KS_MP5Recoil[]={0.01,0.01,0.05,0.05,0,0};
};

class CfgAmmo
{
        class Default {};
        class BulletSingle: Default {};
        class KS_MP5_15: BulletSingle
        {
           hit=7;
           indirectHit=1;
           indirectHitRange=0.050000;  
           minRange=1;
           minRangeProbab=0.100000;
           midRange=50;
           midRangeProbab=0.900000;
           maxRange=100;
           maxRangeProbab=0.050000;
           cartridge="FxCartridgeSmall";      
        };
};

class CfgWeapons
{
        class Default {};
        class MGun: Default {};
        class Riffle: MGun {};
        class HandGunBase: Riffle {};
// The weapon
        class KS_MP5K: HandGunBase
        {
           access=2;
           scopeWeapon=2;
           scopeMagazine=0;
           weaponType=2;
           autoReload=0;
           model="\KS_MP5K\MP5K.p3d";
      modelOptics="optika_hk";
           picture="\KS_MP5K\mp5k.paa";
           uiPicture="\misc\iPistole.paa";
           displayName="MP5KA4";
           modes[]={"Single","Burst","FullAuto"};
           magazines[]={"KS_MP5_15Mag","KS_MP5_30Mag"};
        };

// The magazine
        class KS_MP5_15Mag: HandGunBase
        {
           scopeWeapon=0;
           scopeMagazine=2;
           dexterity=2;
//           picture="\KS_MP5K\mp5kmag.paa";
           picture="\KS_MP5K\mp5kmag.paa";
           displayNameMagazine="MP5 15 Mag";
                 shortNameMagazine="MP5 15 Mag";
           magazineType=32;
           count=15;
           initSpeed=490;
           reloadTime=0.070000;
           magazineReloadTime=1.2;
           drySound[]={"weapons\M16dry",0.003162,1};
           modes[]={"Single","Burst","FullAuto"};
           class Single
           {
              ammo=KS_MP5_15;
              multiplier=1;
              burst=1;
              displayName="MP5";
              dispersion=0.002400;
              sound[]={"\KS_MP5K\fire.wav",0.131623,0.95000};
              soundContinuous=0;
              reloadTime=0.100000;
              ffCount=1;
              recoil=KS_MP5Recoil;
              autoFire=0;
              aiRateOfFire=0.700000;
              aiRateOfFireDistance=50;
              useAction=0;
              useActionTitle="";
           };
           class Burst
           {
              ammo=KS_MP5_15;
              multiplier=1;
              burst=3;
              displayName="MP5 Burst";
              dispersion=0.002400;
              sound[]={"\KS_MP5K\burst.wav",0.131623,0.95000};
              soundContinuous=0;
              reloadTime=0.050000;
              ffCount=1;
              recoil=KS_MP5Recoil;
              autoFire=0;
              aiRateOfFire=1.000000;
              aiRateOfFireDistance=50;
              useAction=0;
              useActionTitle="";
           };
           class FullAuto
           {
              ammo=KS_MP5_15;
              multiplier=1;
              burst=1;
              displayName="MP5 Full Auto";
              dispersion=0.002400;
              sound[]={"\KS_MP5K\fire.wav",0.131623,0.95000};
              soundContinuous=0;
              reloadTime=0.065000;
              ffCount=1;
              recoil=KS_MP5Recoil;
              autoFire=true;
              aiRateOfFire=1.000000;
              aiRateOfFireDistance=50;
              useAction=0;
              useActionTitle="";
           };
        class KS_MP5_30Mag: HandGunBase
        {
           scopeWeapon=0;
           scopeMagazine=2;
           dexterity=2;
//           picture="\KS_MP5K\mp5kmag.paa";
           picture="\KS_MP5K\mp5kmag.paa";
           displayNameMagazine="MP5 30 Mag";
                 shortNameMagazine="MP5 30 Mag";
           magazineType=32;
           count=30;
           initSpeed=490;
           reloadTime=0.070000;
           magazineReloadTime=1.2;
           drySound[]={"weapons\M16dry",0.003162,1};
           modes[]={"Single","Burst","FullAuto"};
           class Single
           {
              ammo=KS_MP5_15;
              multiplier=1;
              burst=1;
              displayName="MP5";
              dispersion=0.002400;
              sound[]={"\KS_MP5K\fire.wav",0.131623,0.95000};
              soundContinuous=0;
              reloadTime=0.100000;
              ffCount=1;
              recoil=KS_MP5Recoil;
              autoFire=0;
              aiRateOfFire=0.700000;
              aiRateOfFireDistance=50;
              useAction=0;
              useActionTitle="";
           };
           class Burst
           {
              ammo=KS_MP5_15;
              multiplier=1;
              burst=3;
              displayName="MP5 Burst";
              dispersion=0.002400;
              sound[]={"\KS_MP5K\burst.wav",0.131623,0.95000};
              soundContinuous=0;
              reloadTime=0.050000;
              ffCount=1;
              recoil=KS_MP5Recoil;
              autoFire=0;
              aiRateOfFire=1.000000;
              aiRateOfFireDistance=50;
              useAction=0;
              useActionTitle="";
           };
           class FullAuto
           {
              ammo=KS_MP5_15;
              multiplier=1;
              burst=1;
              displayName="MP5 Full Auto";
              dispersion=0.002400;
              sound[]={"\KS_MP5K\fire.wav",0.131623,0.95000};
              soundContinuous=0;
              reloadTime=0.065000;
              ffCount=1;
              recoil=KS_MP5Recoil;
              autoFire=true;
              aiRateOfFire=1.000000;
              aiRateOfFireDistance=50;
              useAction=0;
              useActionTitle="";
           };
};

Plz :help: me!!!
« Last Edit: 18 Sep 2003, 04:04:31 by KyleSarnik »

Cpl. Vagabond

  • Guest
Re:Different Mags in one config....
« Reply #1 on: 06 Sep 2003, 22:57:56 »
come on ppl, help him

KyleSarnik

  • Guest
Re:Different Mags in one config....
« Reply #2 on: 07 Sep 2003, 18:15:00 »
Oh I forgot to say this... The error I get is:

Quote
No entry 'config.bin/CfgWeapons.KS_MP5_30Mag'.

Offline Noon416

  • Old Bugger
  • Former Staff
  • ****
Re:HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
« Reply #3 on: 09 Sep 2003, 03:47:53 »
KyleSarnik,

The key to any forum is patience, these are not "instant fix" areas...

You only started the thread 2 days ago, and 4 of the 5 replies are your own. ::)

Give it time. Check back in 3-4 days, you might have an answer.

But I guarantee that if you keep posting "Thats sad that noone can help me" posts, then you're going to turn people away from helping instead.
And thats not what you want to do...
"If a man talks in the woods and no woman hears him, is he still wrong?"

KyleSarnik

  • Guest
Re:HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
« Reply #4 on: 12 Sep 2003, 02:02:10 »
Sorry about that... your right its just that its been keeping me from releasing this addon and is real anoying.... So if you do see something wrong with it and can help me plz do so   ;)

BUNTRO

  • Guest
Re:HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
« Reply #5 on: 12 Sep 2003, 05:22:10 »
Here is the CPP i wrote for a silenced MP5 that i made a while ago.  you can look at the coding and make comparisons.  It is written for version 1.46....so it is pretty old, but hopefully it will help you get an understanding and fix your problems...

BUNTRO :beat:

//Heckler & Koch MP5 redone by BUNTRO (BUN)
//Sounds and pictures!
//Basic info on the weapon
//Manufacturer: Heckler and Koch (Germany)
//Length (collapsed stock): 19.29 inches
//Length (stock extended): 25.98 inches
//Weight: 7.44 pounds (w/30rd mag)
//Bore diameter: 9mm
//Maximum Effective Range: 328.1 feet
//Rate of Fire: 800 rounds per minute
//http://www.moreammo.com/HK.html


// some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot            0// dummy weapons
#define WeaponSlotPrimary      1// primary weapons
#define WeaponSlotSecondary   16// secondary weapons
#define WeaponSlotItem         256// items
#define WeaponSlotBinocular   4096// binocular
#define WeaponHardMounted      65536

class CfgPatches
{
   class BUNHKMP5
   {
      units[] = {};
      weapons[] = {BUNHKMP5};
      requiredVersion = 1.30;
   };
};

class CfgAmmo
{
   class Default {};
   class BulletSingle: Default{};
   class BUN9MMS: BulletSingle
   {
      hit= 8;
      indirectHit= 1;
      indirectHitRange= 0.40000;
      minRange=0.5;
      minRangeProbab=0.800000;
      midRange=50;
      midRangeProbab=0.350000;
      maxRange=109;
      maxRangeProbab=0.080000;
      visibleFire= 16;
      audibleFire= 16;
      visibleFireTime= 10;
   };
};

class CfgWeapons
{
   class Default {};
   class MGun: Default {};
   class Riffle: Mgun {};
   class BUNHKMP5: Riffle
   {
      scopeWeapon=2;
      scopeMagazine=0;
      model="\BUNHKMP5\BUNHKMP5.p3d";
      modelOptics="\BUNHKMP5\BUNHKMP5S.p3d";
      picture="\BUNHKMP5\BUN10.paa";
      displayName="MP5 NAVY";
      drySound[]={"\BUNHKMP5\BUNHKMP5D.wav",1.000000,1};
      reloadMagazineSound[]={"\BUNHKMP5\BUNHKMP5R.wav",0.010316,1};
      magazines[]={"BUNHKMP5mag"};
      flash="gunfire";
      flashSize=5;
      initSpeed=938;
      opticsFlare= true;
      modes[]= {"Single","Burst","Full"};
      class Single
      {
         ammo="BUN9MMS";
         multiplier=1;
         burst=1;
         displayName="SINGLE FIRE";
         dispersion=0.0002000;
         sound[]={"\BUNHKMP5\BUNHKMP5S.wav",1.000000,1};
         soundContinuous= 0;
         ffCount=1;
         reloadTime=0.100000;
         recoil="BUNHKMP5RE";
         autofire=0;
         aiRateOfFire=5.0000;
         aiRateOfFireDistance = 200;
         UseAction=0;
         useActionTitle="";
      };
      class Burst
      {
         ammo="BUN9MMS";
         multiplier=1;
         burst=3;
         displayName= "BURST FIRE";
         dispersion= 0.0004000;
         sound[]={"\BUNHKMP5\BUNHKMP5B.wav",1.000000,1};
         soundContinuous=0;
         reloadtime=0.10000;
         ffCount=3;
         recoil= "BUNHKMP5RE";
         autoFire=0;
         aiRateofFire= 5.0000;
         aiRateOfFireDistance= 200;
            useAction= 0;
         useActionTitle= "";
      };
      class Full
      {
         ammo="BUN9MMS";
         multiplier= 1;
         burst= 1;
         displayName= "FULL AUTO";
         dispersion=0.0008000;
         sound[]={"\BUNHKMP5\BUNHKMP5B.wav",1.000000,1};
         soundContinuous= 0;
         reloadTime= 0.100000;
         ffCount= 3;
         recoil= "BUNHKMP5RE";
         autoFire= 1;
         aiRateOfFire= 5.00000;
         aiRateOfFireDistance= 200;
         useAction = 0;
         useActionTitle= "";
      };
   };
   class BUNHKMP5mag: BUNHKMP5
   {
      scopeWeapon=0;
      scopeMagazine=2;
      displayNamgeMagazine="9mm";
      shortNameMagazine="9mm";
      picture="\BUNHKMP5\BUN11.paa";
   };
};

class CfgRecoils
{
   BUNHKMP5RE[]= {0.04, 0.015,0.030, 0.040,0,0};
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxyBUNHKMP5: ProxyWeapon {};
};


KyleSarnik

  • Guest
Re:HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
« Reply #6 on: 13 Sep 2003, 01:16:23 »
BUNTRO

That doesnt help me at all... I know how to write the config but the 30 round mag will not work.... So take another look at it...

BUNTRO

  • Guest
Re:HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
« Reply #7 on: 13 Sep 2003, 16:59:22 »
Check how many ending '};' you have.  It looks like you are missing one at the end.

KyleSarnik

  • Guest
Re:HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
« Reply #8 on: 18 Sep 2003, 02:25:13 »
Oh those damn }'s.... well it works now and thanks alot BUNTRO

BUNTRO

  • Guest
Re:Thanks for the help....
« Reply #9 on: 18 Sep 2003, 14:09:14 »
No problemo....let the admin know your problem is solved so he can mark it as such...

BUNTRO :beat: