Home   Help Search Login Register  

Author Topic: Why can't they see me?  (Read 1233 times)

0 Members and 1 Guest are viewing this topic.

Offline Jay

  • Members
  • *
  • I'm a llama!
Why can't they see me?
« on: 21 Jan 2004, 20:36:27 »
I made this config.cpp for a tank a long time ago and everything seemed to be fine, untill i noticed, that my tank isn't getting hit at all. It seems like the enemy AI is blind to my tank. In the beginning it was fun but now ............ I just wanna get shot at too  :'( ! The problem must be in the config.cpp

Here it is:

// 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 CanSeeRadar    1
#define CanSeeEye    2
#define CanSeeOptics    4
#define CanSeeEar    8
#define CanSeeCompass    16
#define CanSeeAll    31

class CfgPatches
{
   class M60A3TTS
   {
        units[] = {M60A3TTS};
        weapons[] = {"SHELL105new","Heat105new","m73"};
   requiredVersion=1.30;
   };
};


class CfgAmmo
{
  class Default {};
  class Shell: Default {};
  class Shell73: Shell {};
  class Shell100: shell73 {};
  class Shell105new: Shell100
  {
      explosive=0;
         hit=2000;
         indirectHit=4;
         indirectHitRange=0.500000;
         cost=200;
         irLock=1;
         tracerColor[]={0.800000,1.000000,0.100000,0.600000};
         minRange=20;
         minRangeProbab=0.900000;
         midRange=1500;
         midRangeProbab=0.950000;
         maxRange=7000;
         axRangeProbab=1.000000;
  };
  class Heat: Shell {};
  class Heat73: Heat {};
  class Heat100: Heat73 {};
  class Heat105new: Heat73
  {
         hit=900;
         indirectHit=150;
         indirectHitRange=10.000000;
         cost=1000;
        tracerColor[]={0.800000,1.000000,0.100000,0.600000};
         minRange=20;
         minRangeProbab=0.900000;
         midRange=1000;
         midRangeProbab=0.950000;
         maxRange=5000;
         axRangeProbab=1.000000;
  };
  class BulletSingle: Default {};
  class Bullet7_6: BulletSingle {};
  class 308WINmg: Bulletsingle
  {
      airLock=true;
      hit=12.5;
         tracerColor[]={0.800000,0.90000,0.100000,0.600000};
         minRange=1;
         minRangeProbab=1.000000;
         midRange=600;
         midRangeProbab=0.500000;
         maxRange=1200;
         maxRangeProbab=0.350000;
  };
};

class CfgWeapons
{
  class Default {};
  class Shell73: Default {};
  class Shell105: Shell73 {};
  class Shell105new:shell105
  {
         ammo="Shell105new";
         count=60;
         displayName="APDS-T";
         displayNameMagazine="APDS-T";
         shortNameMagazine="APDS-T";
         initSpeed=1800;
         reloadTime=2.000000;
         sound[]={"Weapons\gun105",10.000000,1};
         reloadSound[]={"Weapons\missload",0.000316,1};
  };
  class Heat105: Shell73{};
  class Heat105new: shell105
  {
         ammo="Heat105new";
         count=60;
         displayName="HEAT-T";
         displayNameMagazine="HEAT-T";
         shortNameMagazine="HEAT-T";
         initSpeed=1800;
         nameSound="heat";
         sound[]={"Weapons\gun105",10.000000,1};
         reloadSound[]={"Weapons\missload",0.000316,1};
  };
 class gun73: Default{};
 class Gun105: Gun73{};
 class Gun105new:Gun105
   {
         sound[]={"Weapons\gun105",10.000000,1};
         reloadSound[]={"Weapons\missload",0.000316,1};
         magazines[]={"shell105new","heat105new"};
   };
  class MGun: Default {};
  class MachineGun7_6: MGun {};
  class MachineGun12_7: MachineGun7_6 {};
  class M73: MachineGun7_6
  {
      ammo=308winmg;
      count=100;
      reloadTime=0.11;
         displayName="M73";
         displayNameMagazine="M73";
      sound[]={"\M60A3 TTS\m73.wss",db10,1};
      initSpeed=853.44;
      flash=gunfire;
      flashSize=0.9;
            soundContinuous=0;
      dispersion=0.001100;
      maxLeadSpeed=853.44
      aiDispersionCoefX=5;
      ffMagnitude=0.5;
      ffFrequency=11;
      ffCount=6;
      magazineReloadTime=2.380;
      reloadMagazineSound[]={"weapons\m16load",db-70,1};
      recoil=mgunBurst3;
      aiRateOfFire=0.11;
      aiRateOfFireDistance=0;
      autoFire = true;
      optics = true;
      uiPicture = ismg;
  };
};

class CfgVehicles
{
        class All {};
        class AllVehicles: All {};
        class Land: AllVehicles {};
        class LandVehicle: Land {};
        class Tank: LandVehicle {};
        class M60 : Tank {};
        class M60A3TTS: M60
        {
//      wheelCircumference=2.513000;
      wheelCircumference=8.513000;
                scope=2;
                crew="maf_crew1cda";
                displayName="M60A3 TTS";
                vehicleClass="JTec";
                armor=6000;
                picture="\M60A3 TTS\iabrams.paa";
                side=1;
                nameSound="M60";
                accuracy=1.000000;
                cost=4000;
                maxSpeed=100;
                model="\M60A3 TTS\M60A3TTS.p3d";

soundEnviron[]={"\M60A3 TTS\m1treads.ogg",1,1};
soundEngine[]={"\M60A3 TTS\m1engine.ogg",0.5,2};

weapons[]={"Gun105new","m73"};
         magazines[]={"SHELL105new","Heat105new","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73","m73"};
      irScanRange=3000;
      irScanGround=3000;
      fuelCapacity=700;
      gunnerCanSee = 31;
      driverCanSee = 31;
      commanderCanSee = 31;
};
};
};

Offline ScouseJedi

  • Members
  • *
Re:Why can't they see me?
« Reply #1 on: 21 Jan 2004, 22:23:52 »
Thats a lot of M73 mags you have?

Is there a zamerny vertex in your memory LOD - thats what the AI actually shoots at
'The truth is a beautiful and terrible thing, and should therefore be treated with great caution.'
Albus Dumbledore

Offline Jay

  • Members
  • *
  • I'm a llama!
Re:Why can't they see me?
« Reply #2 on: 22 Jan 2004, 00:19:37 »
Correct me if I'm wrong but the zamerny vertex in the memory LOD should be in the p3d model right ?
Well I'm using SIG's M60.p3d that it self doesnt seem to have this problem. But could the name change from
SIG_M60.p3d to M60A3TTS.p3d change anything? Also SIG's M60 has alot of class Hit stuff
that i havent added in the config.cpp.  Maybe this could be the cause of my problem ?

Oh the M73 is actually used as my tanks AA capability and it eats alot of rounds.

Offline ScouseJedi

  • Members
  • *
Re:Why can't they see me?
« Reply #3 on: 22 Jan 2004, 21:14:46 »
Try lowering the armour value - atm it is 15 times more armour than the BIS M1A1. I don't think there are any weapons (LGB?) that can hurt your tank.

You do have the Hit values - they are included because you inherit the config from teh M60A3TTS
'The truth is a beautiful and terrible thing, and should therefore be treated with great caution.'
Albus Dumbledore

Offline Jay

  • Members
  • *
  • I'm a llama!
Re:Why can't they see me?
« Reply #4 on: 22 Jan 2004, 23:15:18 »
Thanks man you nailed it.
No wonder no one shot me, the armor was 6000 ;D