class UH1_Base: Helicopter { class Turrets: Turrets { class MainTurret: MainTurret { class ViewOptics: ViewOptics {}; class Turrets: Turrets {}; }; class RightDoorGun: MainTurret { class Turrets: Turrets {}; }; class CoPilotObs: MainTurret { class Turrets: Turrets {}; }; }; }; class UH1Y_DZ: UH1_Base { scope = public; displayname = $STR_VEH_NAME_UH1Y; vehicleClass = "DayZ Epoch Vehicles"; crew = ""; typicalCargo[] = {}; class TransportMagazines{}; class TransportWeapons{}; commanderCanSee = 2+16+32; gunnerCanSee = 2+16+32; driverCanSee = 2+16+32; transportMaxWeapons = 10; transportMaxMagazines = 30; transportmaxbackpacks = 4; weapons[] = {"CMFlareLauncher"}; magazines[] = {"120Rnd_CMFlareMagazine"}; fuelCapacity = 1333; radartype = 0; supplyRadius = 2.6; class Turrets: Turrets { class MainTurret: MainTurret { //gunnerOpticsModel = "\ca\Weapons\optika_empty"; magazines[] = {"2000Rnd_762x51_M134"}; }; class RightDoorGun: RightDoorGun { //gunnerOpticsModel = "\ca\Weapons\optika_empty"; visionMode[] = {"Normal","NVG"}; magazines[] = {"2000Rnd_762x51_M134"}; }; class CoPilotObs: CoPilotObs { class OpticsIn { class Wide { opticsDisplayName = "W"; initAngleX = 0; minAngleX = -30; maxAngleX = 30; initAngleY = 0; minAngleY = -100; maxAngleY = 100; initFov = 0.466; minFov = 0.466; maxFov = 0.466; visionMode[] = {"Normal","NVG"}; thermalMode[] = {}; gunnerOpticsModel = "\ca\weapons\optika_SOFLAM"; }; class Medium: Wide { opticsDisplayName = "M"; initFov = 0.093; minFov = 0.093; maxFov = 0.093; gunnerOpticsModel = "\ca\weapons\optika_SOFLAM"; }; class Narrow: Wide { opticsDisplayName = "N"; gunnerOpticsModel = "\ca\weapons\optika_SOFLAM"; initFov = 0.029; minFov = 0.029; maxFov = 0.029; }; }; }; }; class DefaultEventhandlers; class EventHandlers: DefaultEventhandlers { killed = "_this call BIS_Effects_EH_Killed;"; engine = "if (_this select 1) then {(_this select 0) animate ['mainrotor_folded',1]; (_this select 0) animate ['mainrotor_unfolded',0];} else {_this select 0 setVariable ['engineOffTime',diag_tickTime,false];};"; //Unfold }; class UserActions { class HUDoff { displayName = $STR_AM_HUDON; displayNameDefault = $STR_AM_HUDON; priority = 0; position = "zamerny"; showWindow = 0; radius = 1; onlyForPlayer = 1; condition = "(player==driver this)and(this animationphase ""HUDAction"" !=1)"; statement = "this animate [""HUDAction"",1];this animate [""HUDAction_1"",1]"; }; class HUDon { displayName = $STR_AM_HUDOFF; displayNameDefault = $STR_AM_HUDOFF; priority = 0; position = "zamerny"; showWindow = 0; radius = 1; onlyForPlayer = 1; condition = "(player==driver this)and(this animationphase ""HUDAction"" !=0)"; statement = "this animate [""HUDAction"",0];this animate [""HUDAction_1"",0]"; }; class Fold { displayName = $STR_AM_PACK; displayNameDefault = $STR_AM_PACK; priority = 0; position = "zamerny"; showWindow = 0; radius = 1; onlyForPlayer = 1; condition = "!isEngineOn this && {player == driver this} && {this animationPhase 'mainrotor_unfolded' == 0} && {diag_tickTime - (this getVariable ['engineOffTime',0]) > 20}"; statement = "this animate ['mainrotor_folded',0]; this animate ['mainrotor_unfolded',1];"; }; class Unfold { displayName = $STR_AM_UNPACK; displayNameDefault = $STR_AM_UNPACK; priority = 0; position = "zamerny"; showWindow = 0; radius = 1; onlyForPlayer = 1; condition = "!isEngineOn this && {player == driver this} && {this animationPhase 'mainrotor_unfolded' == 1}"; statement = "this animate ['mainrotor_folded',1]; this animate ['mainrotor_unfolded',0];"; }; }; }; class UH1Y_DZE: UH1Y_DZ { class Turrets : Turrets { class MainTurret: MainTurret { //gunnerOpticsModel = "\ca\Weapons\optika_empty"; magazines[] = {}; }; class RightDoorGun: RightDoorGun { //gunnerOpticsModel = "\ca\Weapons\optika_empty"; visionMode[] = {"Normal","NVG"}; magazines[] = {}; }; class CoPilotObs: CoPilotObs { class OpticsIn { class Wide { opticsDisplayName = "W"; initAngleX = 0; minAngleX = -30; maxAngleX = 30; initAngleY = 0; minAngleY = -100; maxAngleY = 100; initFov = 0.466; minFov = 0.466; maxFov = 0.466; visionMode[] = {"Normal","NVG"}; thermalMode[] = {}; gunnerOpticsModel = "\ca\weapons\optika_SOFLAM"; }; class Medium: Wide { opticsDisplayName = "M"; initFov = 0.093; minFov = 0.093; maxFov = 0.093; gunnerOpticsModel = "\ca\weapons\optika_SOFLAM"; }; class Narrow: Wide { opticsDisplayName = "N"; gunnerOpticsModel = "\ca\weapons\optika_SOFLAM"; initFov = 0.029; minFov = 0.029; maxFov = 0.029; }; }; }; }; };