Jump to content
Sign in to follow this  
hamis

Tank weapons shoot straight ahead

Recommended Posts

So,i have replaced T72 wit RHS_T64.Otherwise it works fine but this weapons prob.Here is my config(tracked.pbo):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class T72: Tank

{

 scope = 2;

 model = "\RHS_T64\RHS_T64B.p3d";

 selectionLeftOffset = "pasanimL";

 selectionRightOffset = "pasanimP";

 sectionsInherit = "";

 sections[] = {"N1","N2","N3","-1","-2","zbytek","pas_P","pas_L","pravy zadni","pasanimL","pasanimP","levy zadni","L svetlo","P svetlo","RWHR_1","RWHR_2","RWHR_3","RWHR_4","RWHR_5","RWHR_6","RWHL_1","RWHL_2","RWHL_3","RWHL_4","RWHL_5","RWHL_6","RETR_1","RETR_2","RETR_3","RETR_4","RETR_5","RETL_1","RETL_2","RETL_3","RETL_4","RETL_5","DRIVL","DRIVR","SUSL_1","SUSL_2","SUSL_3","SUSL_4","SUSL_5","SUSL_6","SUSL_7","SUSL_8","SUSL_9","SUSL_10","SUSL_11","SUSR_1","SUSR_2","SUSR_3","SUSR_4","SUSR_5","SUSR_6","SUSR_7","SUSR_8","SUSR_9","SUSR_10","SUSR_11","Mainturret","Maingun","com_coppula","com_gun","Hatch_gunner","Hatch_driver","Hatch_commander","IR_Search","com_IR_Search"};

 //model = "\T72_era_custom\pir_smurfcT72ERA1";

 picture = "\ca\tracked\Data\ico\t72_CA.paa";

 Icon = "\Ca\tracked\Data\map_ico\icomap_t72_CA.paa";

 mapSize = 12;

 displayName = "$STR_DN_T72";

 hiddenSelections[] = {"n1","n2","n3"};

//hiddenSelections[] = {"1_co_cust","2_co_cust","3_co_cust","num1","num2","num3"};

 side = 0;

 crew = "SoldierECrew";

 nameSound = "t72";

 accuracy = 0.8;

 //hiddenSelections[] = {"pruh"};

 armor = 690;

 damageResistance = 0.00544;

 cost = 1000000;

 class HitHull

 {

  armor = 0.85;

  material = 55;

  name = "telo";

  visual = "telo";

  passThrough = 1;

 };

 maxSpeed = 60;

 typicalCargo[] = {"SoldierECrew","SoldierECrew","SoldierECrew"};

 soundEngine[] = {"\ca\Tracked\Data\Sound\T72",0.8,1};

 soundEnviron[] = {"\ca\Tracked\Data\Sound\M1A1_treads3",7,0.9};

 soundGetOut[] = {"\ca\Tracked\Data\Sound\tank_door",0.01,1};

 soundGetIn[] = {"\ca\Tracked\Data\Sound\tank_door",0.01,1};

 forceHideDriver = 1;

 driverForceOptics = 1;

 driverAction = "T72_DriverOut";

 driverInAction = "T72_Driver";

 class Exhausts

 {

  class Exhaust1

  {

   position = "vyfuk start";

   direction = "vyfuk konec";

   effect = "ExhaustsEffectBig";

  };

 };

 type = 1;

 threat[] = {0.9,0.8,0.2};

 class Turrets: Turrets

 {

  class MainTurret: MainTurret

  {

   gunnerAction = "T72_GunnerOut";

   gunnerInAction = "T72_Gunner";

   weapons[] = {"D81","PKT"};

   magazines[] = {"23Rnd_125mmSABOT_T72","22Rnd_125mmHE_T72","2000Rnd_762x54_PKT"};

   soundServo[] = {"\ca\Weapons\Data\Sound\gun_elevate2",0.001,1};

   gunnerOpticsModel = "\ca\Tracked\optika_T72_gunner";

   gunnerOutOpticsModel = "\ca\weapons\optika_empty";

   minElev = -6;

   maxElev = 14;

   initElev = 0;

   class ViewOptics

   {

    initAngleX = 0;

    minAngleX = -30;

    maxAngleX = 30;

    initAngleY = 0;

    minAngleY = -100;

    maxAngleY = 100;

    initFov = 0.166;

    minFov = 0.025;

    maxFov = 0.333;

   };

   class Turrets: Turrets

   {

    class CommanderOptics: CommanderOptics

    {

     weapons[] = {"DSHKM"};

     magazines[] = {"50Rnd_127x107_DSHKM","50Rnd_127x107_DSHKM","50Rnd_127x107_DSHKM","50Rnd_127x107_DSHKM"};

     gunBeg = "gun_muzzle";

     gunEnd = "gun_chamber";

     body = "ObsTurret";

     gun = "ObsGun";

     gunnerAction = "T72_CommanderOut";

     gunnerInAction = "T72_Commander";

     minElev = -25;

     maxElev = 60;

     initElev = 0;

     minTurn = -360;

     maxTurn = 360;

     initTurn = 0;

     gunnerOpticsModel = "\ca\Tracked\optika_T72_commander";

     soundServo[] = {"\ca\Weapons\Data\Sound\gun_elevate2",0.000316228,1};

     outGunnerMayFire = 1;

     inGunnerMayFire = 1;

    };

   };

  };

 };

Share this post


Link to post
Share on other sites

I had a problem with optics not following the turret and this was due to the gunnerview memory point not being properly included in the turret selection in O2

Maybe you have something like that...

I'm just learning, so take it with a grain of salt...

Share this post


Link to post
Share on other sites

I don't think so,because then i select any RHS tanks in editor they work.Also then replacing with smurf T72 everything works. huh.gif

Share this post


Link to post
Share on other sites

it may be down to RHS using their own, non standard names, to define the turret selections, which is both defined in the model.cfg and the config.cpp (in the turrets class).

The game, via the config, is expecting to find the selection name as defined in class Tank, I believe, and it isn't finding the same name thus the turrets don't work.

You'll have to ask RHS what their turret names are, and then redefine them in the turret class (Body and Gun entries)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×