class CfgPatches
{
 class bwc_puma330
 {
  units[] = {"bwc_puma330_c","bwc_puma330_l","bwc_oryx"};
  weapons[] = {};
  requiredVersion = 1;
  requiredAddons[] = {"bwc_Weapons","bwc_pilots"};
  version = 1;
 };
};

class CfgAmmo
{
 class Default;
 class BulletCore;
 class BulletBase;
 class bwc_puma330_762mm: BulletBase
 {
  sounds1[] = {"\bwc_puma330\data\snd\hit_ground1.wss",0.031623,1};
  sounds2[] = {"\bwc_puma330\data\snd\hit_ground2.wss",0.031623,1};
  sounds3[] = {"\bwc_puma330\data\snd\hit_ground3.wss",0.031623,1};
  sounds4[] = {"\bwc_puma330\data\snd\hit_ground4.wss",0.031623,1};
  sounds5[] = {"\bwc_puma330\data\snd\hit_ground5.wss",0.031623,1};
  sounds6[] = {"\bwc_puma330\data\snd\hit_ground6.wss",0.031623,1};
  sounds7[] = {"\bwc_puma330\data\snd\hit_ground7.wss",0.031623,1};
  sounds8[] = {"\bwc_puma330\data\snd\hit_ground8.wss",0.031623,1};
  soundsMan1[] = {"\bwc_puma330\data\snd\hit_man1.wss",0.012589,1};
  soundsMan2[] = {"\bwc_puma330\data\snd\hit_man2.wss",0.012589,1};
  soundsMan3[] = {"\bwc_puma330\data\snd\hit_man3.wss",0.012589,1};
  soundsMan4[] = {"\bwc_puma330\data\snd\hit_man4.wss",0.012589,1};
  soundsMan5[] = {"\bwc_puma330\data\snd\hit_man5.wss",0.012589,1};
  soundsMan6[] = {"\bwc_puma330\data\snd\hit_man6.wss",0.012589,1};
  soundsArmor1[] = {"\bwc_puma330\data\snd\hit_metal1.wss",0.031623,1};
  soundsArmor2[] = {"\bwc_puma330\data\snd\hit_metal2.wss",0.031623,1};
  soundsArmor3[] = {"\bwc_puma330\data\snd\hit_metal3.wss",0.031623,1};
  soundsArmor4[] = {"\bwc_puma330\data\snd\hit_metal4.wss",0.031623,1};
  soundsArmor5[] = {"\bwc_puma330\data\snd\hit_metal5.wss",0.031623,1};
  soundsArmor6[] = {"\bwc_puma330\data\snd\hit_metal6.wss",0.031623,1};
  soundsArmor7[] = {"\bwc_puma330\data\snd\hit_metal7.wss",0.031623,1};
  soundsArmor8[] = {"\bwc_puma330\data\snd\hit_metal8.wss",0.031623,1};
  soundsBuilding1[] = {"\bwc_puma330\data\snd\ric1.wss",0.031623,1};
  soundsBuilding2[] = {"\bwc_puma330\data\snd\ric2.wss",0.031623,1};
  soundsBuilding3[] = {"\bwc_puma330\data\snd\ric3.wss",0.031623,1};
  soundsBuilding4[] = {"\bwc_puma330\data\snd\ric4.wss",0.031623,1};
  soundsBuilding5[] = {"\bwc_puma330\data\snd\ric5.wss",0.031623,1};
  soundsBuilding6[] = {"\bwc_puma330\data\snd\ric6.wss",0.031623,1};
  soundsBuilding7[] = {"\bwc_puma330\data\snd\ric7.wss",0.031623,1};
  soundsBuilding8[] = {"\bwc_puma330\data\snd\ric8.wss",0.031623,1};
  soundsBuilding9[] = {"\bwc_puma330\data\snd\ric9.wss",0.031623,1};
  soundsBuilding10[] = {"\bwc_puma330\data\snd\ric10.wss",0.031623,1};
  soundsBuilding11[] = {"\bwc_puma330\data\snd\ric11.wss",0.031623,1};
  soundsBuilding12[] = {"\bwc_puma330\data\snd\ric12.wss",0.031623,1};
  soundsBuilding13[] = {"\bwc_puma330\data\snd\ric13.wss",0.031623,1};
  soundfly1[] = {"\bwc_puma330\data\snd\fly1.wss",0.031623,1};
  soundfly2[] = {"\bwc_puma330\data\snd\fly2.wss",0.031623,1};
  soundfly3[] = {"\bwc_puma330\data\snd\fly3.wss",0.031623,1};
  soundfly4[] = {"\bwc_puma330\data\snd\fly4.wss",0.031623,1};
  soundfly5[] = {"\bwc_puma330\data\snd\fly5.wss",0.031623,1};
  soundfly[] = {"soundfly1",0.2,"soundfly2",0.2,"soundfly3",0.2,"soundfly4",0.2,"soundfly5",0.2};
  hitGround[] = {"sounds1",0.125,"sounds2",0.125,"sounds3",0.125,"sounds4",0.125,"sounds5",0.125,"sounds6",0.125,"sounds7",0.125,"sounds8",0.125};
  hitMan[] = {"soundsMan1",0.166667,"soundsMan2",0.166667,"soundsMan3",0.166667,"soundsMan4",0.166667,"soundsMan5",0.166667,"soundsMan6",0.166667};
  hitArmor[] = {"soundsArmor1",0.125,"soundsArmor2",0.125,"soundsArmor3",0.125,"soundsArmor4",0.125,"soundsArmor5",0.125,"soundsArmor6",0.125,"soundsArmor7",0.125,"soundsArmor8",0.125};
  hitBuilding[] = {"soundsBuilding1",0.076,"soundsBuilding2",0.076,"soundsBuilding3",0.076,"soundsBuilding4",0.076,"soundsBuilding5",0.076,"soundsBuilding6",0.076,"soundsBuilding7",0.076,"soundsBuilding8",0.076,"soundsBuilding10",0.076,"soundsBuilding11",0.076,"soundsBuilding12",0.076,"soundsBuilding13",0.076};
  hit = 9.5;
  indirectHit = 1;
  indirectHitRange = 0.01;
  explosive = 0;
  tracerColor[] = {0.8,0.1,0.1,0.04};
  tracerColorR[] = {0.8,0.1,0.1,0.04};
  cost = 2;
  minRange = 10;
  minRangeProbab = 0.75;
  midRange = 250;
  midRangeProbab = 0.55;
  maxRange = 900;
  maxRangeProbab = 0.025;
 };
};
class CfgMagazines
{
 class Default;
 class CA_Magazine: Default
 {
  scope = 1;
  value = 1;
  displayName = "";
  model = "\ca\weapons\mag_univ.p3d";
  picture = "";
  modelSpecial = "";
  useAction = 0;
  useActionTitle = "";
  reloadAction = "ManActReloadMagazine";
  ammo = "";
  count = 30;
  type = 256;
  initSpeed = 900;
  selectionFireAnim = "zasleh";
  nameSound = "";
  maxLeadSpeed = 23;
 };
 class VehicleMagazine: CA_Magazine
 {
  type = "VSoft";
  reloadAction = "";
 };
 class bwc_puma330_lmgmag: VehicleMagazine
 {
  displayName = "FNMAG 7.62mm";
  displayNameMagazine = "FNMAG";
  shortNameMagazine = "FNMAG";
  count = 500;
  ammo = "bwc_puma330_762mm";
  multiplier = 1;
  burst = 2;
  soundContinuous = 0;
  reloadTime = 0.009;
  dispersion = 0.001;
 };
};
class CfgWeapons
{
 class Default;
 class PistolCore;
 class RifleCore;
 class MGunCore;
 class bwc_puma330_lmg: MGunCore
 {
  scope = 2;
  displayName = "FNMAG 7.62mm";
  displayNameMagazine = "FNMAG";
  shortNameMagazine = "FNMAG";
  magazineReloadTime = 4;
  autoReload = 1;
  count = 500;
  ammo = "bwc_puma330_762mm";
  multiplier = 1;
  magazines[] = {"bwc_puma330_lmgmag"};
  burst = 2;
  autoFire = 1;
  sound[] = {"\bwc_puma330\data\snd\lmg_burst.ogg",10,1};
  reloadMagazineSound[] = {"\bwc_puma330\data\snd\lmg_reload.ogg",15,1};
  soundContinuous = 0;
  reloadTime = 0.075;
  dispersion = 0.004;
  minRange = 20;
  minRangeProbab = 0.6;
  midRange = 250;
  midRangeProbab = 0.58;
  maxRange = 900;
  maxRangeProbab = 0.04;
  aiDispersionCoefY = 7;
  aiDispersionCoefX = 7;
  maxLeadSpeed = 600;
  showToPlayer = 1;
 };
};
class CfgVehicleClasses
{
 class bwc_air
 {
  displayName = "Bush Wars - Air";
 };
};
class CfgSounds
{
 class puma330_door
 {
  sound[] = {"\bwc_puma330\data\snd\door.ogg",1,1};
  name = "BWC: Puma Door";
  titles[] = {};
 };
 class puma330_wench
 {
  sound[] = {"\bwc_puma330\data\snd\wench.ogg",1,1};
  name = "BWC: Puma Wench";
  titles[] = {};
 };
 class puma330_gear
 {
  sound[] = {"\bwc_puma330\data\snd\gear.ogg",1,1};
  name = "BWC: Puma Gear";
  titles[] = {};
 };
};

class CfgVehicles
{
 class All{};
 class AllVehicles: All{};
 class Air: AllVehicles{};
 class Helicopter: Air
 {
  class NewTurret;
  class AnimationSources;
  class ViewPilot;
 };
 class bwc_puma330: Helicopter
 {  
  scope = 0;
  mapSize = 20;
  type = 2;
  side = 1;
  armor = 40;
  cost = 10000000;
  damageResistance = 0.00242;
  vehicleClass = "bwc_air";
  irScanRangeMin = 500;
  crew = "bwc_helipilot";
  driverInAction = "AH6_Pilot";
  driverAction = "AH6_Pilot";
  accuracy = 0.3;
  camouflage = 60;
  fuelCapacity = 1000;
  initCargoAngleY = 10;
  minCargoAngleY = -60;
  maxCargoAngleY = 120;
  maxSpeed = 290;
  nameSound = "chopper";
  simulation = "helicopter";
  enableSweep = 0;
  DriverCanSee = "1+2+8+32";
  supplyRadius = 2.5;
  memoryPointsGetInDriver = "pos_driver";
  memoryPointsGetInDriverDir = "pos_driver_dir";
  memoryPointsGetInCargo = "pos_cargo";
  memoryPointsGetInCargoDir = "pos_cargo_dir";
  castDriverShadow = 1;
  castCargoShadow = 1;
  audible = 50;
  insideSoundCoef = 0.4;
  soundEngine[] = {"\bwc_puma330\data\snd\puma_fx.ogg",15.6228,1};
  soundGetIn[] = {"\bwc_puma330\data\snd\in.ogg",1,1};
  soundGetOut[] = {"\bwc_puma330\data\snd\out.ogg",1,1};
  soundLandCrash[] = {"\bwc_puma330\data\snd\crashland.ogg",30,1};
  soundCrash[] = {"\bwc_puma330\data\snd\crash.ogg",10,1};
  selectionHRotorStill = "velka vrtule staticka";
  selectionHRotorMove = "velka vrtule blur";
  selectionVRotorStill = "mala vrtule staticka";
  selectionVRotorMove = "mala vrtule blur";
  mainRotorSpeed = 1;
  backRotorSpeed = 1;
  minMainRotorDive = 9;
  maxMainRotorDive = -14;
  neutralMainRotorDive = 4;
  weapons[] = {};
  magazines[] = {};
  transportMaxMagazines = 150;
  transportMaxWeapons = 30;
  hiddenselections[] = {"num1","num2","roundel"};
  class HitLGlass
  {
   armor = 0.7;
   material = 51;
   name = "sklo predni L";
   visual = "sklo predni L";
   passThrough = 0;
  };
  class HitRGlass
  {
   armor = 0.7;
   material = 51;
   name = "sklo predni P";
   visual = "sklo predni P";
   passThrough = 0;
  };
  dammageHalf[] = {"\bwc_puma330\data\puma_glass_ca.paa","\bwc_puma330\data\puma_glassbr1_ca.paa"};
  dammageFull[] = {"\bwc_puma330\data\puma_glass_ca.paa","\bwc_puma330\data\puma_glassbr2_ca.paa"};
  class Damage
  {
   tex[] = {};
   mat[] = {"bwc_puma330\data\mat\puma1.rvmat","bwc_puma330\data\mat\puma1.rvmat","bwc_puma330\data\mat\puma1_destruct.rvmat","bwc_puma330\data\mat\puma2.rvmat","bwc_puma330\data\mat\puma2.rvmat","bwc_puma330\data\mat\puma2_destruct.rvmat","bwc_puma330\data\mat\puma_panel.rvmat","bwc_puma330\data\mat\puma_panel.rvmat","bwc_puma330\data\mat\puma_panel_destruct.rvmat","bwc_puma330\data\mat\puma_seat.rvmat","bwc_puma330\data\mat\puma_seat.rvmat","bwc_puma330\data\mat\puma_seat_destruct.rvmat"};
  };
 };
 class bwc_puma330_l: bwc_puma330
 {
  scope = 2;
  model = "\bwc_puma330\bwc_puma330_l";
  displayName = "Puma 330L (FNMAG)";
  picture = "\bwc_puma330\data\ico\pumal_pic.paa";
  icon = "\bwc_puma330\data\ico\puma_ico.paa";
  cargoAction[] = {"AH6_Pilot","UH60_Cargo02","UH60_Cargo02"};
  typicalCargo[] = {"soldierWPilot","SoldierWAT","SoldierWAT"};
  transportSoldier = 13;
  supplyRadius = 2.5;
  threat[] = {0.7,1,0.4};
  accuracy = 0.3;
  class Library
  {
   libTextDesc = "$STR_BWC_LIB_puma_l";
  };
  class Turrets
  {
   class MainTurret: NewTurret
   {
    startEngine = 0;
    outGunnerMayFire = 1;
    commanding = -1;
    primaryGunner = 1;
    gunnerName = "Puma Gunner";
    memoryPointsGetInGunner = "pos_gunner";
    memoryPointsGetInGunnerDir = "pos_gunner_dir";
    memoryPointGun = "machinegun";
    memoryPointGunnerOptics = "gunnerview";
    selectionFireAnim = "zasleh";
    castGunnerShadow = 1;
    viewGunnerShadow = 1;
    gunnerAction = "UH60_Cargo02";
    gunnerInAction = "UH60_Cargo02";
    weapons[] = {"bwc_puma330_lmg"};
    magazines[] = {"bwc_puma330_lmgmag","bwc_puma330_lmgmag","bwc_puma330_lmgmag","bwc_puma330_lmgmag","bwc_puma330_lmgmag"};
    gunnerOpticsModel = "\ca\weapons\optika_empty";
    gunnerForceOptics = 0;
    gunBeg = "usti hlavne";
    gunEnd = "konec hlavne";
    minElev = -120;
    maxElev = 10;
    initElev = 0;
    minTurn = 40;
    maxTurn = 130;
    initTurn = 90;
    class ViewOptics
    {
     initAngleX = 0;
     minAngleX = -30;
     maxAngleX = 30;
     initAngleY = 0;
     minAngleY = -100;
     maxAngleY = 100;
     initFov = 0.6;
     minFov = 0.6;
     maxFov = 0.5;
    };
    class ViewGunner
    {
     initAngleX = 4;
     minAngleX = -100;
     maxAngleX = 35;
     initAngleY = 90;
     minAngleY = 15;
     maxAngleY = 140;
     initFov = 0.7;
     minFov = 0.42;
     maxFov = 0.85;
    };
   };
  };
  class AnimationSources: AnimationSources
  {
   class puma330_doors
   {
    source = "user";
    animPeriod = 2;
    initPhase = 0;
   };
   class puma330_gear
   {
    source = "user";
    animPeriod = 2;
    initPhase = 0;
   };
   class ammo_belt_rotation
   {
    source = "reload";
    weapon = "bwc_puma330_lmg";
   };
  };
  class UserActions
  {
   /*class LowerLandingGear
   {
    displayName="Gear Down";
    position="gear";
    radius=1
    onlyForplayer = 1;
    condition="this animationPhase ""gear_F"" >= 0.5 and player in this"; 
    statement="this animate [""gear_F"", 0]; this animate [""gear_R"", 0];this say [""puma330_gear"", 0];";
   };
   class RaiseLandingGear
   {
    displayName="Gear Up";
    position="gear";
    radius=1
    onlyForplayer = 1;
    condition="this animationPhase ""gear_F"" < 0.5 and player in this";
    statement="this animate [""gear_F"", 1]; this animate [""gear_R"", 1];this say [""puma330_gear"", 1];";
   };*/
   class closedoorr
   {
    displayName = "Close Door";
    position = "door_r";
    radius = 3;
    onlyForplayer = 0;
    condition = "this animationPhase ""door_r"" >= 0.5";
    statement = "this animate [""door_r"", 0];this say [""puma330_door"", 0];";
   };
   class opendoorr
   {
    displayName = "Open Door";
    position = "door_r";
    radius = 3;
    onlyForplayer = 0;
    condition = "this animationPhase ""door_r"" < 0.5 ";
    statement = "this animate [""door_r"", 1];this say [""puma330_door"", 1];";
   };
  };
  class EventHandlers
  {
   init = "[_this select 0] exec ""\bwc_puma330\data\scr\number.sqs"";[_this select 0] exec ""\bwc_puma330\data\scr\door_auto.sqs""";
  };
 };

 class bwc_puma330_c: bwc_puma330
 {
  scope = 2;
  model = "\bwc_puma330\bwc_puma330_c";
  displayName = "Puma 330C (CASEVAC)";
  picture = "\bwc_puma330\data\ico\pumac_pic.paa";
  icon = "\bwc_puma330\data\ico\puma_ico.paa";
  attendant = true;
  threat[] = {0.5,0.5,0.6};
  accuracy = 0.4;
  hasGunner = 0;
  gunnerUsesPilotView = 1;
 cargoAction[] = {"AH6_Pilot","BMP2_Cargo04", "BMP2_Cargo04","MH6_Cargo01","MH6_Cargo02","MH6_Cargo02","MH6_Cargo03","UH60_Cargo02","UH60_Cargo02","UH60_Cargo02","UH60_Cargo02"};
  cargoIsCoDriver[] = {1,0,0,0,0,0,0,0,0,0,0};
  transportSoldier = 11;
  hideWeaponsCargo = false;
  typicalCargo[] = {"SoldierWPilot","SoldierWPilot","SoldierWAT","SoldierWAT"};
  enableSweep = 0;
  weapons[] = {};
  magazines[] = {};
  class Turrets{};
  class Library
  {
   libTextDesc = "$STR_BWC_LIB_puma_c";
  };
  class Reflectors
  {
   class Left
   {
    color[] = {0.8,0.8,1,1};
    ambient[] = {0.07,0.07,0.07,1};
    position = "L svetlo";
    direction = "konec L svetla";
    hitpoint = "L svetlo";
    selection = "L svetlo";
    size = 0.5;
    brightness = 1;
   };
  };
  class AnimationSources: AnimationSources
  {
   class puma330_gear
   {
    source = "user";
    animPeriod = 2;
    initPhase = 0;
   };
  };
  /*
  class UserActions
  {
   class LowerLandingGear
   {
    displayName="Gear Down";
    position="gear";
    radius=1
    onlyForplayer = 1;
    condition="this animationPhase ""gear_F"" >= 0.5 and player in this"; 
    statement="this animate [""gear_F"", 0]; this animate [""gear_R"", 0];this say [""puma330_gear"", 0];";
   };
   class RaiseLandingGear
   {
    displayName="Gear Up";
    position="gear";
    radius=1
    onlyForplayer = 1;
    condition="this animationPhase ""gear_F"" < 0.5 and player in this";
    statement="this animate [""gear_F"", 1]; this animate [""gear_R"", 1];this say [""puma330_gear"", 1];";
   };
  };
  */
  class EventHandlers
  {
   init = "[_this select 0] exec ""\bwc_puma330\data\scr\number.sqs"";[_this select 0] exec ""\bwc_puma330\data\scr\gear_auto.sqs""";
  };
 };

 class bwc_oryx: bwc_puma330
 {
  scope = 2;
  model = "\bwc_puma330\bwc_oryx";
  displayName = "Atlas Oryx";
  picture = "\bwc_puma330\data\ico\pumac_pic.paa";
  icon = "\bwc_puma330\data\ico\puma_ico.paa";
  attendant = true;
  threat[] = {0.5,0.5,0.6};
  accuracy = 0.4;
  hasGunner = 0;
  gunnerUsesPilotView = 1;
  cargoAction[] = {"AH6_Pilot","UH60_Cargo02","UH60_Cargo02"};
  cargoIsCoDriver[] = {1,0,0,0,0,0,0,0,0,0,0};
  transportSoldier = 13;
  hideWeaponsCargo = false;
  typicalCargo[] = {"SoldierWPilot","SoldierWPilot","SoldierWAT","SoldierWAT"};
  enableSweep = 0;
  weapons[] = {};
  magazines[] = {};
  class Turrets{};
  class Library
  {
   libTextDesc = "$STR_BWC_LIB_oryx";
  };
  class Damage
  {
   tex[] = {};
   mat[] = {"bwc_puma330\data\mat\oryx.rvmat","bwc_puma330\data\mat\oryx.rvmat","bwc_puma330\data\mat\oryx_destruct.rvmat","bwc_puma330\data\mat\puma2.rvmat","bwc_puma330\data\mat\puma2.rvmat","bwc_puma330\data\mat\puma2_destruct.rvmat","bwc_puma330\data\mat\puma_panel.rvmat","bwc_puma330\data\mat\puma_panel.rvmat","bwc_puma330\data\mat\puma_panel_destruct.rvmat","bwc_puma330\data\mat\puma_seat.rvmat","bwc_puma330\data\mat\puma_seat.rvmat","bwc_puma330\data\mat\puma_seat_destruct.rvmat","bwc_puma330\data\mat\oryx_wench.rvmat","bwc_puma330\data\mat\oryx_wench.rvmat","bwc_puma330\data\mat\oryx_wench_destruct.rvmat"};
  };
  class Reflectors
  {
   class Left
   {
    color[] = {0.8,0.8,1,1};
    ambient[] = {0.07,0.07,0.07,1};
    position = "L svetlo";
    direction = "konec L svetla";
    hitpoint = "L svetlo";
    selection = "L svetlo";
    size = 0.5;
    brightness = 1;
   };
   class Right
   {
    color[] = {0.8,0.8,1,1};
    ambient[] = {0.07,0.07,0.07,1};
    position = "P svetlo";
    direction = "konec P svetla";
    hitpoint = "P svetlo";
    selection = "P svetlo";
    size = 0.5;
    brightness = 1;
   };
  };
  class AnimationSources: AnimationSources
  {
   class puma330_doors
   {
    source = "user";
    animPeriod = 2;
    initPhase = 0;
   };
   class puma330_gear
   {
    source = "user";
    animPeriod = 1;
    initPhase = 0;
   };
   class puma330_wench
   {
    source = "user";
    animPeriod = 0.5;
    initPhase = 0;
   };
  };
  
  class UserActions
  {
   class closedoorr
   {
    displayName = "Close Door";
    position = "door_r";
    radius = 3;
    onlyForplayer = 0;
    condition = "this animationPhase ""door_r"" >= 0.5";
    statement = "this animate [""door_r"", 0];this say [""puma330_door"", 0];";
   };
   class opendoorr
   {
    displayName = "Open Door";
    position = "door_r";
    radius = 3;
    onlyForplayer = 0;
    condition = "this animationPhase ""door_r"" < 0.5 ";
    statement = "this animate [""door_r"", 1];this say [""puma330_door"", 1];";
   };
   class closedoorl
   {
    displayName = "Close Door";
    position = "door_l";
    radius = 3;
    onlyForplayer = 0;
    condition = "this animationPhase ""door_l"" >= 0.5";
    statement = "this animate [""door_l"", 0];this say [""puma330_door"", 0];";
   };
   class opendoorl
   {
    displayName = "Open Door";
    position = "door_l";
    radius = 3;
    onlyForplayer = 0;
    condition = "this animationPhase ""door_l"" < 0.5 ";
    statement = "this animate [""door_l"", 1];this say [""puma330_door"", 1];";
   };
   class RaiseWench
   {
    displayName = "Raise Wench";
    position = "wench";
    radius = 5;
    onlyForplayer = 0;
    condition="(this animationPhase ""wench_extend"" < 0)&& (alive this)&&(player==(driver this))";	
    //condition = "this animationPhase ""wench_extend"" >= 0.5";
    statement = "this animate [""wench_extend"", 0];this say [""puma330_wench"", 0];";

    priority = 4.800000;
    showWindow = 1;
   };
   class LowerWench
   {
    displayName = "Lower Wench";
    position = "wench";
    radius = 5;
    onlyForplayer = 0;
    condition="(this animationPhase ""wench_extend"" == 0)&& (alive this)&&(player==(driver this))&&((getpos this select 2) > 15)";
    statement="this execvm ""\bwc_puma330\data\scr\wench.sqf"";";
    //condition = "this animationPhase ""wench_extend"" < 0.5 ";
    //statement = "this animate [""wench_extend"", 1];this say [""puma330_wench"", 1];";
    

    priority = 4.800000;
    showWindow = 1;
   };
  };
  
  class EventHandlers
  {
   init = "[_this select 0] exec ""\bwc_puma330\data\scr\number.sqs"";[_this select 0] exec ""\bwc_puma330\data\scr\gear_auto.sqs""";
  };
 };
};