OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: jens198 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.?
-
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 ;)