Home   Help Search Login Register  

Author Topic: config not working :(  (Read 1188 times)

0 Members and 1 Guest are viewing this topic.

HuNtA

  • Guest
config not working :(
« on: 02 Apr 2005, 22:14:49 »
can somebody please help me fix this config:
Code: [Select]
#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

#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot 0
#define WeaponSlotPrimary 1
#define WeaponSlotSecondary 16
#define WeaponSlotItem 256
#define WeaponSlotBinocular 4096
#define WeaponHardMounted 65536


class CfgPatches
{
   class DaveP_bolter
   {
      units[] = {};
      weapons[]={"DaveP_bolter","DaveP_bolt"};
      requiredVersion=1.75;
   };
};


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


class CfgRecoils
{
   boltSingle[]={0.0,0.0,0.0,0.0,0,0};
};

class CfgAmmo
{
   class Default {};
   class BulletSingle: Default{};
   class BulletBurst: BulletSingle{};
   class BulletFullAuto: BulletBurst{};
   class BulletBolter: BulletFullAuto
   {
      explosive=1;
      hit=2;
      indirectHit=1.0;
      indirectHitRange=0.1;
      minRange=0.5;
      minRangeProbab=0.25;
      midRange=70;
      midRangeProbab=0.5;
      maxRange=250;
      maxRangeProbab=0.1;
      visibleFire=25;
      audibleFire=25;
      visibleFireTime=5;
      cost=2.1;
      tracerColor[]={0.0,0.0,0.0,0.0};
      tracerColorR[]={0,0,0,0.0};
   };
};


class CfgWeapons
{
   class Default{};
   class MGun: Default{};
   class Riffle: MGun{};
   class DaveP_bolterBase: Riffle
   {
      access=2;
      scopeWeapon=0;
      scopeMagazine=0;
      valueWeapon=0;
      valueMagazine=1;
      model="\bolter\bolter.p3d";
      modelOptics="optika_m16";
      displayName="Bolter";
      displayNameMagazine="Bolter Magazine";
      shortNameMagazine="Bolter";
      drySound[]={"\bolter\dry.wav",0.0005,1};
      magazines[]={"DaveP_bolt"};
      modes[]={"Single","FullAuto"};
      class Single
      {
         ammo="BulletBolter";
         multiplier=1;
         burst=1;
         displayName="Bolter";
         dispersion=0.0;
         sound[]={"\bolter\fire.wav",0.1,1};
         soundContinuous=0;
         reloadTime=0.07;
         ffCount=1;
         recoil="bolterSingle";
         autoFire=0;
         aiRateOfFire=5.0;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
      };
      count=6;
      initSpeed=3000;
      dexterity=0.1;
   };
   class DaveP_bolt: DaveP_bolterBase
   {
      scopeWeapon=0;
      scopeMagazine=2;
      picture="\bolter\bolter.paa";
   };
};


class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class SoldierBolter: SoldierWB
   {
      displayName="Soldier (Bolter)";
      weapons[]={"DaveP_bolter","Throw","Put"};
      magazines[]={"DaveP_bolt","DaveP_bolt","DaveP_bolt"};
   };
};


class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class Proxymor : ProxyWeapon {};
   class Proxymorcarb : ProxyWeapon {};
};

the error is:
bolter\config.cpp/Cfgweapons/DaveP_bolterBase.DaveP_bolter: Undefined base class 'DaveP_bolterBase'

please also any other fixes, ect. would be helpful


Offline Plane

  • Members
  • *
  • You can call me my nickname "Plane"!
Re:config not working :(
« Reply #1 on: 06 Apr 2005, 11:59:49 »
change the following:
Code: [Select]
class CfgPatches
{
   class DaveP_bolter
   {
      units[] = {};
      weapons[]={"DaveP_bolter","DaveP_bolt"};
      requiredVersion=1.75;
   };
};
class CfgModels
{
   class Default{};
   class Weapon: Default {};
   class DaveP_bolter: Weapon {};
};
To:
Code: [Select]
class CfgPatches
{
   class DaveP_bolter
   {
      units[] = {};
      weapons[]={"DaveP_bolterBase"};
      requiredVersion=1.75;
   };
};
class CfgModels
{
   class Default{};
   class Weapon: Default {};
   class bolter: Weapon {};
};
Change the following:
Code: [Select]
class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class SoldierBolter: SoldierWB
   {
      displayName="Soldier (Bolter)";
      weapons[]={"DaveP_bolter","Throw","Put"};
      magazines[]={"DaveP_bolt","DaveP_bolt","DaveP_bolt"};
   };
};
class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class Proxymor : ProxyWeapon {};
   class Proxymorcarb : ProxyWeapon {};
};
To:
Code: [Select]
class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class SoldierBolter: SoldierWB
   {
      displayName="Soldier (Bolter)";
      weapons[]={"DaveP_bolterBase","Throw","Put"};
      magazines[]={"DaveP_bolt","DaveP_bolt","DaveP_bolt"};
   };
};


class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class Proxybolter : ProxyWeapon {};
};
The propeller is just a big fan in front of the plane used to keep the pilot cool. When it stops, you can actually watch the pilot start sweating.