  class AH64: Helicopter
  {
    picture = CurrentPath\data\ico\iAH64.paa;
    icon = "\ca\air\data\map_ico\icomap_ah1z_ca.paa";
    crew = SoldierWPilot;
    scope = 2;
    side = 1;
    mapSize = 13;
    displayName = $STR_DN_AH64;
    nameSound = "apache";
    accuracy = 0.30;
    driverAction = "AH1Z_Pilot";
    memoryPointsGetInDriver = "pos_driver";
    memoryPointsGetInDriverDir = "pos_driver_dir";
    maxSpeed = 296;
    soundEngine[] = {"\ca\air\Data\Sound\AH64_engine_v2.wss", db+10, 1};
    soundGetIn[] = {"\ca\air\Data\Sound\heli_door1",0.1,1};
    soundGetOut[] = {"\ca\air\Data\Sound\heli_door1",0.1,1};
    armor = 80;
    cost = 10000000;
    model = CurrentPath\Apac.p3d;
    laserScanner = true;
    rotorBig = apach_vrtule;
    rotorBigBlend = apach_vrtule;
    rotorSmall = apach_vrtulka;
    rotorSmallBlend = apach_vrtule2;
    typicalCargo[] = {"SoldierWPilot","SoldierWPilot"};
    type = VAir;
    //threat[] VSoft, VArmor, VAir
    threat[] = {0.3, 1, 0.8};
    dammageHalf[] = {CurrentPath\data\apach_in_skla.paa,CurrentPath\data\apach_in_sklac.paa};
    dammageFull[] = {CurrentPath\data\apach_in_skla.paa,CurrentPath\data\apach_in_sklac.paa};
    class MFD
    {
      class AH64HUD: AirplaneHUD
      {
        #define Pos0Center 0.23
        class Pos10VectorAH64: Pos10Vector
        {
          pos0[]={0.5,Pos0Center};
          pos10[]={0.5+0.54,Pos0Center+0.52};
        };
        class Bones: Bones
        {
          class AGLMove1: AGLMove1  {};
          class AGLMove2: AGLMove2  {};
          class ASLMove1: ASLMove1  {};
          class ASLMove2: ASLMove2  {};
          class VertSpeed: VertSpeed  {};
          class SpdMove2: SpdMove2
          {
            min = -6;
            max = 100;
          };
          class TargetDistanceMissile: TargetDistanceMissile  {};
          class TargetDistanceMGun: TargetDistanceMGun  {};
          class WeaponAim: Pos10VectorAH64
          {
            source=weapon;
          };
          class Target: Pos10VectorAH64
          {
            source=target;
          };
          class Level0: Pos10VectorAH64
          {
            type=horizon;
            angle=0;
          };
          class LevelP5: Level0 {angle=+5;};
          class LevelM5: Level0 {angle=-5;};
          class LevelP10: Level0 {angle=+10;};
          class LevelM10: Level0 {angle=-10;};
          class LevelP15: Level0 {angle=+15;};
          class LevelM15: Level0 {angle=-15;};
          class PlaneW: PlaneW
          {
            pos[]={0.5,Pos0Center};
          };
        };
        class Draw: Draw
        {
          alpha=1;
          class Altitude: Altitude  {};
          class DimmedBase: DimmedBase
          {
            alpha=1;
          };
          class Speed: Speed  {};
          class SpeedNumber: SpeedNumber  {};
          class PlaneW: PlaneW
          {
            class LineHL: LineHL  {};
          };
          class MGun: MGun
          {
            class Circle: Circle  {};
          };
          class Missile: Missile
          {
            class Circle: Circle  {};
            class Target: Target  {};
          };
          class Horizont: Horizont
          {
            class Dimmed: Dimmed
            {
              class Level0: Level0
              {
                alpha=1;
              };
            };
            class LevelP5: LevelP5  {};
            class LevelM5: LevelM5  {};
            class LevelP10: LevelP10  {};
            class LevelM10: LevelM10  {};
            class LevelP15: LevelP15  {};
            class LevelM15: LevelM15  {};
          };
        };
      };
    };
    class Turrets: Turrets
    {
      class MainTurret: Mainturret
      {
        soundServo[]= {};
        gunBeg = "usti hlavne";
        gunEnd = "konec hlavne";
        weapons[] = {"MachineGun30W","HellfireLauncherApach","ZuniLauncher38"};
        magazines[] =
{"MachineGun30W","HellfireLauncherApach","ZuniLauncher38"};
        minElev = -60;
        maxElev = 11;
        initElev = 0;
        minTurn = -86;
        maxTurn = 86;
        initTurn = 0;
        gunnerOpticsModel = "\ca\air\optika_AH1Z";
        gunnerOutOpticsShowCursor = 1;
        gunnerOpticsShowCursor = 1;
        gunnerAction = "AH1Z_Gunner";
        gunnerInAction = "AH1Z_Gunner";
        primary = 1;
        memoryPointsGetInGunner = "pos_gunner";
        memoryPointsGetInGunnerDir = "pos_gunner_dir";
        body = "MainTurret";
        gun = "MainGun";
        class ViewOptics
        {
          initAngleX = 0;
          minAngleX = -30;
          maxAngleX = 30;
          initAngleY = 0;
          minAngleY = -100;
          maxAngleY = 100;
          initFov = 0.42;
          minFov = 0.22;
          maxFov = 0.64;
        };
      };
    };
  };