Jump to content
Sign in to follow this  
mr.peanut

Commander optic view not rotating.

Recommended Posts

I am trying to tweak the Everon Cartel submarine. I gave the gunner's optics to the commander, and moved the gunner to a spare seat beside the driver. I wanted the commander to have the periscope view. However, now the optics view for the commander show the periscope view, but it can not rotate. What I have I done wrong?

class ECL_KL42o_dummy: BoatW
{   
.
.
.
  hasGunner=1;
  hasCommander=1;
  commanderisgunner=0;   
  driverIsCommander=0;
  driverCanSee=CanSeeAll;
  gunnerCanSee = CanSeeAll;
  commanderCanSee = CanSeeAll;
  gunnerhasoptics=0;
  commanderhasoptics=1;
  commanderOpticsModel = "\ECL_KL42o\periscope.p3d";
  fuelCapacity=100;
  secondaryExplosion=-1;
  nightVision=false;
  commanderinAction = "manactcargo"; 
  commanderAction ="ManActM1A1Commander";
  gunnerinAction = "manactcargo"; 
  gunnerAction ="ManActM1A1Gunner";
  driverAction="ManActJeepDriver";
  cargoAction[]={"ManActCargo"};
.
.
.
class TurretBase
{
  gunAxis="osa hlavne";
  turretAxis="osa veze";
  gunBeg="usti hlavne";
  gunEnd="konec hlavne";
  soundServo[]={"ECL_KL42o\s.wav",0.001000,1.000000}; 
  minElev=0;
  maxElev=0;
  minTurn=-180;
  maxTurn=180;
  body="OtocVez";
  gun="OtocHlaven";
};
class Turret: TurretBase {};
weapons[] = {CoC_ShkvalLauncherSUB};
magazines[]={CoC_ShkvalLauncherSUB};

class ViewCommanderBase
{
  initAngleX=0; minAngleX=-8; maxAngleX=11;
  initAngleY=0; minAngleY=-360; maxAngleY=360;
  initFov=1.0; minFov=0.52; maxFov=1.25;
};

flashSize=0; 
optics = 1;
burst=0;

class ViewOpticsBase{};
class ViewOptics: ViewOpticsBase
{
  initAngleX=0; minAngleX=-8; maxAngleX=11;
  initAngleY=0; minAngleY=-360; maxAngleY=360;
  initFov=1.0; minFov=0.52; maxFov=1.25;
};

Share this post


Link to post
Share on other sites

Okay, is it because for boats only the gunner has a view axis?

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  

×