Home   Help Search Login Register  

Author Topic: Delta Force m4 Need help!!!!!  (Read 1177 times)

0 Members and 1 Guest are viewing this topic.

NavySeal

  • Guest
Delta Force m4 Need help!!!!!
« on: 16 Dec 2002, 06:48:50 »
hello all i ahve benn workin on this thing all day and i can figure out wht is wrong!! please help me wiht this cpp

// some basic defines
#define TEast 1
#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 FLPM4A1
   {
      units[] = {DeltaM4};
      weapons[] = {DeltaM4};
      requiredVersion = 1.75;
   };
};


///CfgModels definitions
class CfgModels
{
   class Default{};
   class Weapon: Default{};
   class DeltaM4: Weapon{};
};

///Ammo definitions;
class CfgAmmo
{
   class Default{};
   class BulletSingle: Default{};
   class BulletSingleW: BulletSingle{};
   class FLP_BulletSilencedSingleW: BulletSingleW
   {
      indirectHitRange=0.100000;
      visibleFire=0.035000;
      audibleFire=0.035000;
      visibleFireTime=2;
      tracerColor[]={0,0,0,0.050000};
      tracerColorR[]={0,0,0,0.050000};
   };

   class BulletBurst: BulletSingle{};
   class BulletFullAuto: BulletBurst{};
   class BulletFullAutoW: BulletFullAuto{};
   class FLP_BulletSilencedFullAutoW: BulletFullAutoW
   {
      indirectHitRange=0.100000;
      visibleFire=0.050000;
      audibleFire=0.050000;
      visibleFireTime=2;
      tracerColor[]={0,0,0,0.050000};
      tracerColorR[]={0,0,0,0.050000};
   };
};

///Weapon definitions;
class CfgWeapons
{
   class Default   {};
   class MGun: Default {};
   class Riffle: MGun {};


   ///DeltaM4 basic;
   class DeltaM4: Riffle
   {
      scopeWeapon=2;
      scopeMagazine=0;
      displayName="M4A1";
      model="\DeltaM4.p3d";
      modelOptics="optika_m16";
      picture="\FLP_M4A1\weapics\w_m4a1.paa";
      optics=true;
      opticsZoomMin=0.35;
      opticsZoomMax=0.35;
      magazines[]={M4mag};
      reloadMagazineSound[]={"\FLP_M4A1\sound\m4a1_reload.wav",1.000000,1};
      modes[]={"Single","FullAuto"};
      class Single
      {
         ammo="BulletSingleW";
         multiplier=1;
         burst=1;

         displayName="M4A1 Semi";

         dispersion=0.002000;
         sound[]={"\FLP_M4A1\sound\m4a1.wav",1.000000,1};
         soundContinuous=0;
         reloadTime=0.150000;
         ffCount=1;
         recoil="riffleSingle";
         autoFire=0;
         aiRateOfFire=5.000000;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
      };
      class FullAuto
      {
         ammo="BulletFullAutoW";
         multiplier=1;
         burst=1;

         displayName="M4A1 Auto";

         dispersion=0.004000;
         sound[]={"\FLP_M4A1\sound\m4a1.wav",1.000000,1};
         soundContinuous=0;
         reloadTime=0.100000;
         ffCount=100;
         recoil="riffleBurst3";
         autoFire=1;
         aiRateOfFire=5.000000;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
      };
   };


///Soldier definitions;
class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class DeltaM4:SoldierWB
   
   {
   model="mc saboteurday.p3d";
   displayName="Us DeltaForce (M4)";
   weapons[]={"DeltaM4","Binocular","NVGoggles","Throw","Put"};
   magazines[]={M4mag,M4mag,M4mag,M4mag,M4mag,M4mag,M4mag,M4mag,HandGrenade,HandGrenade,HandGrenade,SmokeShell};
   };


class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class DeltaM4d: ProxyWeapon {};
};

what the problem is. it isnt showing up in my editor menu! do you know why?  the model file name is DeltaM4, so you know

STGN

  • Guest
Re:Delta Force m4 Need help!!!!!
« Reply #1 on: 16 Dec 2002, 10:49:26 »
Have you seen if it has {} errorsthe is tool which can do that but I cant remember whats it is called.
STGN

NavySeal

  • Guest
Re:Delta Force m4 Need help!!!!!
« Reply #2 on: 16 Dec 2002, 17:44:30 »
i'll check but does anyone else know what is wrong with it?