Home   Help Search Login Register  

Author Topic: Problem with CPP file, please help  (Read 1057 times)

0 Members and 1 Guest are viewing this topic.

qwertyuio

  • Guest
Problem with CPP file, please help
« on: 04 Apr 2003, 19:11:58 »
This is the cpp

// 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 morita_1
   {
      units[] = {soldiermorita};
      weapons[] = {morita_1};
      requiredVersion = 1.01;
   };
};

class CfgAmmo
{
   
   class default {};
       class BulletSingle:Default{};
   class moritamag:BulletSingle
        {hit=95;
   indirecthit=69;
   indirecthitrange=2.5;};
   
    class moritashell : BulletSingle
   {hit=200;
   indirecthit=170;
   indirecthitrange=2.5;};
};

class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierEB:Soldier{};
        class soldiermorita:soldierEB{
        displayName="Morita Soldier";
   weapons[]={morita_1};
   magazines[]=

{moritamag,moritamag,moritamag,moritamag,moritamag,moritamag,moritashell,moritashell,moritashell,moritashell};
   
   };
}

class CfgWeapons
{
   class Default   {};
   class MGun: Default {};
   class Riffle: MGun {};
        class morita_1: Riffle
   {
      displayName = Morita;
      displayNameMagazine = Morita Mag;
      shortNameMagazine = Morita Mag;
               
                scopeWeapon = public;
      scopeMagazine = public;
         model="\morita\mor.p3d";
      modelOptics="\data3d\optika_m16.p3d";
      picture="\morita\m_kozlice2.paa";
      optics = true;
      opticsZoomMin=0.35; //was 0.21
      opticsZoomMax=0.50;
                drySound[]={"\weapons\M16dry",db-40,1};   // empty magazine
                 
      modes[]={"Single","Fullauto","shotgun"};
      
        class single
        {
                ammo = moritamag;
      count = 30;
      multiplier=1;
      burst=1;
      dispersion=0.0000002;
      
                sound[]={\morita\moritaend,db0,2};
      reloadMagazineSound[]={\weapons\m16_load,db-70,1};
      displayName = Morita;

      soundContinuous=false;
      reloadTime=0.05;
      ffCount=1;
      recoil=0.00000000000001;
      recoilFixed=riffleSingleFixed;
      autoFire = false;
      aiRateOfFire=0.1; // delay between shots at given distance
      aiRateOfFireDistance=500; // at shorter distance delay goes lineary to zero

      useAction = false;
      useActionTitle = "";
   };

   class fullauto
        {
                ammo = moritamag;
      count = 30;
      multiplier=1;
      burst=1;
      dispersion=0.0000002;
      
                sound[]={\morita\moritaend,db0,2};
      reloadMagazineSound[]={\weapons\m16_load,db-70,1};
      displayName = Morita Auto;

      soundContinuous=true;
      reloadTime=0.05;
      ffCount=1;
      recoil=0.00000000000001;
      recoilFixed=riffleSingleFixed;
      autoFire = true;
      aiRateOfFire=0.1; // delay between shots at given distance
      aiRateOfFireDistance=500; // at shorter distance delay goes lineary to zero

      useAction = false;
      useActionTitle = "";
   };
       
        class shotgun
   {
      
      displayName = Morita Shell;
      
      ammo = moritashell;    
      count = 30;
      multiplier=1;
      burst=1;
      dispersion=0.00000001;
      sound[]={\morita\moritaend2,db0,1};
      reloadMagazineSound[]={\weapons\m16_load,db-70,1};
      
      soundContinuous=false;
      reloadTime=0.9;
      magazineReloadTime=1;   
      ffCount=1;
      recoil=0.000001;
      recoilFixed=0.00000001;
      autoFire = false;
      aiRateOfFire=5.0; // delay between shots at given distance
      aiRateOfFireDistance=500; // at shorter distance delay goes lineary to zero

      useAction = false;
      useActionTitle = "";
   };

       

   
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class Proxymorita_1: ProxyWeapon {};
};


When I start OFP it comes up with No entry 'config.bin/cfgweapons.moritamag'

And when I try to use it in the mission editor, it says No entry model.special'

Please help because I need this cpp quite urgently.

Thank you

nero12

  • Guest
Re:Problem with CPP file, please help
« Reply #1 on: 05 Apr 2003, 06:19:52 »
Communicate with me on Email and icq I know in what a problem
nero12@mail.ru
icq 173250341
« Last Edit: 05 Apr 2003, 06:37:17 by nero12 »

qwertyuio

  • Guest
Re:Problem with CPP file, please help
« Reply #2 on: 05 Apr 2003, 15:46:45 »
It's OK I fixed it myself.

Thanks anyway though.