Home   Help Search Login Register  

Author Topic: config prob  (Read 1001 times)

0 Members and 1 Guest are viewing this topic.

Humvee

  • Guest
config prob
« on: 03 Jan 2004, 22:52:33 »
I have a little prob with my config file....
it's for a 30 cal machine gun in a bunker...
when I go ingame.... the game crashes back to desktop without any error message..... or the bunker doesn't show up while playing...
here's the config

Code: [Select]
// 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


#define CanSeeRadar 1
#define CanSeeRye 2
#define CanSeeOptics 4
#define CanSeeEar 8
#define CanSeeCompass 16
#define CanSeeRadarC CanSeeRadar+CanSeeCompass
#define CanSeeAll 31

class CfgPatches
{
   class 30cal
   {
      units[] = {30cal};
      requiredVersion = 1.01;
   };

};

class CfgAmmo
{
   class Default {};
   class BulletSingle : Default {};
   class 30calAmmo: BulletSingle {
      hit=10;indirectHit=0.1;indirectHitRange=0.1;
      minRange=20;minRangeProbab=0.80;
      midRange=500;midRangeProbab=0.95;
      maxRange=3000;maxRangeProbab=0.05;
      cost=30;
   };
};

class CfgWeapons
{
   class Default{};
   class MGun: Default{};
   class MachineGun7_6: MGun{};
   class MachineGun12_7: MachineGun7_6{};
   class Browning: MachineGun12_7{};
   class 30cal: Browning
   {
         ammo=30calAmmo;
         displayName="30 Cal";
         displayNameMagazine="30 Cal";
         shortNameMagazine="30 Cal";
         count=100;
         initSpeed=600;
         reloadTime=0.10000;
         magazineReloadTime=6;
         dispersion=0.0015;
         sound[]={"\bdmfoxhole\30cal.wav",db0,1};
         reloadSound[]={"weapons2\M16dry",0.010000,1};      
                   soundContinuous=0;
         maxLeadSpeed=865;


      aiRateOfFire=0.001; // delay between shots at given distance
      aiRateOfFireDistance=1000; // at shorter distance delay goes lineary to zero
   };

};

class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land: AllVehicles{};
   class LandVehicle: Land{};
   class Tank: LandVehicle{};  
   class APC: Tank{};
   class M113:APC{};
   class M2StaticMG: M113{};
   class 30cal: M2StaticMG
   {
         displayName="30 Cal";
                   picture="im113";
                   model="\bdmfoxhole\bunkhole.p3d";
         cost=15000;
         weapons[]={"30cal"};
         magazines[]={"30cal","30cal","30cal"};
              side=1;
         crew="SoldierGB";
         armor=60;
         armorStructural=20.000000;
         icon="kulomet.paa";
         gunnerAction="LyingToBinocLying";
         gunnerInAction="LyingToBinocLying";
         //modelOptics="optika_PK";
        
      class Turret
      {
         gunAxis = "osahlavne";
         turretAxis = "osaveze";
         soundServo[]={Vehicles\gun_elevate2,db-30,1.0};

         gunBeg = "usti hlavne";
         gunEnd = "konec hlavne";
         
         body = "OtocVez";
         gun = "OtocHlaven";

         minElev=-30;
         maxElev=+30;
         minTurn=-60;
         maxTurn=+60;
      };
   };


};

class CfgNonAIVehicles
{
   class ProxyWeapon{};
   class Proxy30cal: ProxyWeapon{};
};
thanks in advance......
greets
Humvee

Offline ScouseJedi

  • Members
  • *
Re:config prob
« Reply #1 on: 04 Jan 2004, 00:56:00 »
OK Im not an expert but

1. Get rid of nonAIVehicles
2. 30cal in your weapons should not be the same as 30cal in vehicles - call one 30cal_w or something.

Try that for starters

:)
'The truth is a beautiful and terrible thing, and should therefore be treated with great caution.'
Albus Dumbledore

Humvee

  • Guest
Re:config prob
« Reply #2 on: 16 Jan 2004, 11:06:23 »
 ok I solved it ... it was a problem in the memory lod................
 :-\ :-\ :-\ :-\ :-\
nothing to do with the config file..........
greets Humvee