Home   Help Search Login Register  

Author Topic: USP SOCOM Recoil problem  (Read 1038 times)

0 Members and 1 Guest are viewing this topic.

Offline SpecOp9

  • Members
  • *
USP SOCOM Recoil problem
« on: 26 Jul 2003, 23:24:38 »
I do believe I have set everything up correctly.

However once I fire the weapon I get an error message

No Entry 'config.bin/CfgRecoils.USP_SOCOMRecoil'.]


Here is my Config CPP


Quote
class CfgPatches
{
   class USP_SOCOM
   {
      units[]={};
      weapons[]={"USP_SOCOM"};
      requiredVersion=1.7500000;
   };
   class OfficerUSP_SOCOM
   {
      units[]={};
      weapons[]={};
      requiredversion=1.750000;
   };
};

class CfgModels
{

   class default {};
   class Weapon: default {}
   class USP_SOCOM: Weapon {};
};



class CfgAmmo
{
    class default {};
   class BulletSingle: default {};
   class USP_SOCOMAmmo: BulletSingle
    {
      access=2;
      hit=7;
      indirectHit=1;
      indirectHitRange=0.050000;
      visibleFire=14;
      audibleFire=100;
      visibleFireTime=2;
      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 {};
   class USP_SOCOMBase: HandGunBase
   {
      access=2;
      scopeWeapon=0;
      scopeMagazine=0;
      dexterity=2;
      model="\USP_SOCOM\USP_SOCOM.p3d";
      modelOptics="\O\Guns\optika_CZ75";
      picture="\USP_SOCOM\USP SOCOM1.pac";
      optics=1;
      opticsZoommin=0.350000;
      opticsZoomMax=0.350000;
      distanceZoomMin=300;
      distanceZoomMax=300;
      displayName="USP SOCOM";
      displayNameMagazine="USP_SOCOM mag";
      shortNameMagazine="USP_SOCOMmag";
      weaponType=2;
      magazineType=32;
      count=15;
      reloadTime=0.050000;
      magazineReloadTime=1.2;
      drySound[]={"weapons\M16dry"};
      magazines[]={"USP_SOCOMMag"};
      modes[]={"Single"};
      class Single
      {
         ammo="USP_SOCOMAmmo";
         multiplier=1;
         burst=1;
         displayName="USP SOCOM";
         dispersion=0.002400;
         initSpeed=369
         sound[]={"\USP_SOCOM\usp1.wav",1.000000,1};
         soundContinuous=0;
         reloadTime=0.200000;
         ffCount=1;
         recoil="USP_SOCOMRecoil";
         autoFire=0;
         aiRateOfFire=0.500000;
         aiRateOfFireDistance=50;
         useAction=0;
         useActionTitle="";
      };
   };
   class USP_SOCOMMag: USP_SOCOMBase
   {
      scopeMagazine=2;
      picture="\O\Guns\zasobnik.paa";
   };
   class USP_SOCOM: USP_SOCOMBase
   {
      scopeWeapon=2;
      magazines[]={"USP_SOCOMMag"};
      uiPicture="\misc\ipistole.paa";
   };
};

class CfgVehicles
{
   class All{};
   class AllVehicles : All{};
   class Land: AllVehicles{};
   class Man : Land{};
   class Soldier : Man{};

   class SoldierWB : Soldier{};
   class OfficerW : SoldierWB{};

   class OfficerUSP_SOCOM : OfficerW
   {
      displayName="Officer (USP SOCOM)";
      weapons[]={"G36a","Throw","Put","USP_SOCOM","Binocular"};
      magazines[]={"G36amag","G36amag","G36amag","G36amag","HandGrenade","HandGrenade","HandGrenade","HandGrenade","SmokeShell","SmokeShell","USP_SOCOMmag","USP_SOCOMMag","USP_SOCOMMag","USP_SOCOMMag"};
   };
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxyUSP_SOCOMBase : ProxyWeapon {};
};




I was planning on releasing the Addon today, so if anybody could please help me ASAP that would be great!
With all those Multiplayer maps in the pending list...
Somebody is gonna get a heart artak ;) lol!!!!!

Offline KTottE

  • Former Staff
  • ****
Re:USP SOCOM Recoil problem
« Reply #1 on: 26 Jul 2003, 23:38:43 »
You don't have a CfgRecoil's class to define your recoils.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline SpecOp9

  • Members
  • *
Re:USP SOCOM Recoil problem
« Reply #2 on: 26 Jul 2003, 23:45:44 »
Ahhhhh

BINGO, thats my problem, THANX!  I'll go fix that up
With all those Multiplayer maps in the pending list...
Somebody is gonna get a heart artak ;) lol!!!!!

Offline SpecOp9

  • Members
  • *
Re:USP SOCOM Recoil problem
« Reply #3 on: 26 Jul 2003, 23:50:58 »
Damn,

I add this right?

Quote
class CfgRecoils
{
   USP_SOCOM[]={0.01,0.01,0.1,0.1,0,0};
};


I still get the same error message  :(


---------------

Found the problem,

Forgot to add "Recoil" at the end of USP_SOCOM

Thanx!
« Last Edit: 26 Jul 2003, 23:53:50 by SpecOp9 [RN] »
With all those Multiplayer maps in the pending list...
Somebody is gonna get a heart artak ;) lol!!!!!

Offline KTottE

  • Former Staff
  • ****
Re:USP SOCOM Recoil problem
« Reply #4 on: 27 Jul 2003, 00:03:59 »
recoil="USP_SOCOMRecoil";

Change that or change USP_SOCOM[]={0.01,0.01,0.1,0.1,0,0}; to
USP_SOCOMRecoil[]={0.01,0.01,0.1,0.1,0,0};
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"