Home   Help Search Login Register  

Author Topic: Question on Tank's config.cpp  (Read 780 times)

0 Members and 1 Guest are viewing this topic.

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Question on Tank's config.cpp
« on: 27 Jul 2003, 14:48:52 »
Hi folks,

two questions concerning the tank's config.cpp:

1. The standard BIS Tanks seem to have a very limited range in which they engage targets. For example if I set up targets on a very flat map, set the view distance to 2200 and try to engage the target myself (as a gunner) it's no problem (can see and kill the target). But if I let do the same the AI --> no chance. Those guys just sit and enjoy the day.

So the question is: What do need to change in config.cpp to enlarge the range of engagment?

2. The standard BIS Tanks can't go in a real "hull down" position, because the main gun can't be lowered enough. If you go in a "hull down" position behind a hill, the tube points to the sky.

Any chance to change that with an acceptable effort? Propably needs changes in the 3d model itself?

Hope anyone can help.

Thanks
Jens

P.S. Ah, and one more question, anybody ever thought about adding crew speech the the tank like "SABOT loaded", "On the way" etc.?
« Last Edit: 27 Jul 2003, 14:50:49 by jens198 »
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

Rubble_Maker

  • Guest
Re:Question on Tank's config.cpp
« Reply #1 on: 27 Jul 2003, 15:35:29 »
1. There's a bunch of config settings you can try; they all affect how far a unit can "see" (visual or via sensors):

      irScanRangeMin=4000;
      irScanRangeMax=8000;
      irScanToEyeFactor=1;

2. Change these classes:

      class TurretBase
      {
         gunAxis = "OsaHlavne";
         turretAxis = "OsaVeze";
         soundServo[]={Vehicles\gun_elevate,db-30,1.0};

         gunBeg = "usti hlavne";
         gunEnd = "konec hlavne";
         
         minElev=-4; maxElev=+20;
         minTurn=-360; maxTurn=+360;

         body = "OtocVez";
         gun = "OtocHlaven";
      };
      class Turret: TurretBase {}

      class ComTurret
      {
         turretAxis = "OsaVelitele";
         gunAxis = "OsaHlavneVelitele";
         soundServo[]={Vehicles\gun_elevate,db-70,1.2};
         
         gunBeg = "usti hlavne"; // currently ignored
         gunEnd = "konec hlavne";
         
         minElev=-4; maxElev=+20;
         minTurn=-360; maxTurn=+360;

         body = "OtocVelitele";
         gun = "OtocHlavenVelitele";
      };

You need to change the minElev/maxElev to set the maximum/minimum azimuth of the gun barrel.


Godd luck ;)