Home   Help Search Login Register  

Author Topic: good buddies?  (Read 1104 times)

0 Members and 1 Guest are viewing this topic.

Comrade Joe

  • Guest
good buddies?
« on: 08 Feb 2005, 10:29:11 »
I recently started to learn how to make vehicle addons with custom weapons. So far, I've made a BRDM2 and a BRDM3 based on the original res one.  Yesterday, I finished working on a TR-58 (a romanian tank, kinda like a T-62) so I wanted to test it. I placed an AI TR-58(east) and an AI M60 (west) facing eachother at a distance of about 200m one from the other. Surprize! Even though my tank unloads all it's got at it's enemy, the M60 completely ignores my tank. This does not happen to my BRDMs. I've checked the config.cpp  and the problem doesn't seem to be with the accuracy, threat nor with the camo. I've tried and I've tried , but I can't figure-out what the problem is.  ???

This is how my config.cpp looks like
--------------------------------------------

#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 Tr58
     {
         units[] = {Tr58};
         weapons[] = {};
         requiredVersion = 1.30;
     };
};

class CfgVehicles
{
     class All {};
     class AllVehicles: All {};
     class Land: AllVehicles {};
     class LandVehicle: Land {};
     class Tank: LandVehicle {};

    
     class Tr58: TANK
   {
      displayName="TR-58";
      nameSound="tank";   

      picture=\TR58\guer_01.paa;
      crew = SoldierECrew;
      scope=public;
      side=0;

      type=VArmor;
      //threat[] VSoft, VArmor, VAir
      threat[]={3.6, 3.6, 3.3};

      accuracy=0.60;

// Comandant ********************************
      hasCommander = false;

      //Sofer**************************************
      driverIsCommander=false;
      castDriverShadow = false;
      

// Gunner *************************************
      gunnerUsesPilotView = false;
      castGunnerShadow = false;
                gunnerIsCommander=true;
      
   
// Cargo **************************************
      transportSoldier = 0;
      typicalCargo[]={};
      castCargoShadow = false;

// Caracteristici ******************************
      fuelCapacity=240;
      maxSpeed = 145;
      armor=370;
      cost=999900;
                camouflage=5


      formationX=10;
      formationZ=20;

// Echipament *********************************
      weapons[]={"heat125","throw","Machinegun12_7"};
      magazines[]={"heat125","throw","Machinegun12_7"};
                tracerColor[]={0.000000,0.000000,1.000000,1.000000};

// Sunete**************************************
   
      soundEngine[]={\tr58\MOTOR.ogg,db+0,1};
      

      model=\TR58\TR58.p3d;
   

      driverCanSee=CanSeeEye+CanSeeEar;
      irTarget = true;   
      irScanRange = 36000;
      irScanGround = true;

   };

};


-----------------------------------------------------------------------
« Last Edit: 08 Feb 2005, 16:07:29 by Comrade Joe »

Offline oyman

  • Members
  • *
  • king of pings
Re:good buddies?
« Reply #1 on: 08 Feb 2005, 21:16:43 »
havent spotted any probelms but why do you have the throw weapon on the tank for
Code: [Select]
     weapons[]={"heat125","throw","Machinegun12_7"};
      magazines[]={"heat125","throw","Machinegun12_7"};