Home   Help Search Login Register  

Author Topic: some config.cpp problems  (Read 983 times)

0 Members and 1 Guest are viewing this topic.

charunks

  • Guest
some config.cpp problems
« on: 02 Jan 2004, 21:05:54 »
Hi all,

I can' t seem to get my addon ingame. It doesn' t show up in the editor.
My addons is just a turret ( allthough I think it needs to be declared as a tank)

here' s my config.cpp file
Quote
#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

class CfgPatches
{
   class east_turret
   {
   units[] = {east_turret};
   weapons[] = {Gun125};
   requiredVersion = 1.10;
   };
   
};

class CfgAmmo {};

class CfgWeapons
{
   class Default {};
   class Gun125 : Default {};

};

class CfgVehicles
{
    class All {};
   class AllVehicles: All {};
   class Land: AllVehicles {};
   class LandVehicle: Land {};
   class Tank: LandVehicle {};
   class M60: Tank {};
   class T72: M60{};
   class east_turret : T72
   {

   displayName="Turret East";
   side=TEast;
   armor=200;
   cost=1000000;
   model="\east_turret\turreteast.p3d";
   maxspeed=0;
   vehicleclass="armored"
   gunnerIsCommander=1;
   hasCommander=0;
   hasDriver=1;
   hasGunner=0;
   driverIsGunner=1;
   namesound="Tank";
   camouflage=7;
   fuelCapacity=0;
   nightVision=1;
   irScanRange = 2000;
   irScanGround = 2000;
   gunnerCanSee = CanSeeOptics+CanSeeEar+CanSeeCompass+CanSeeRadar;
   type=Armor;
   CanFloat=false;
   unitInfoType="UnitInfoAirplane";
   class TransportMagazines {};

                weapons[]={Gun125};
                magazines[]={ Heat125 };
    };

};

Could someone tell me what I did wrong?

thnx!