#define BULLET_HIDE(x,from,count) class Bullet##x\ {\ type="hide";\ source="revolving";\ sourceAddress="mirror";\ selection=bullet##x;\ minValue=-1.000000;\ maxValue= 0.000000;\ hideValue=((count+x-from-2)/count)+0.00001;\ }; #define BULLET_HIDE_2nd(x,from,count) class Bullet_2##x\ {\ type="hide";\ source="revolving_2";\ sourceAddress="mirror";\ selection=bullet##x##_2;\ minValue=-1.000000;\ maxValue= 0.000000;\ hideValue=((count+x-from-2)/count)+0.00001;\ }; #define BULLET_HIDE_3rd(x,from,count) class Bullet_3##x\ {\ type="hide";\ source="revolving_3";\ sourceAddress="mirror";\ selection=bullet##x##_3;\ minValue=-1.000000;\ maxValue= 0.000000;\ hideValue=((count+x-from-2)/count)+0.00001;\ }; #define ADD_COMPONENT(component) \ class Add##component \ { \ selection = z_##component; \ source = Add##component; \ type = hide; \ sourceAddress = mirror; \ minValue = -1; \ maxValue = 0; \ hideValue = 0.5; \ }; class CfgSkeletons { class Default { isDiscrete = 1; skeletonInherit = ""; skeletonBones[] = {}; }; class Vehicle : Default {}; class ej_Helicopter: Vehicle { skeletonInherit="Vehicle"; skeletonBones[]= { "velka vrtule dive","", "mala vrtule dive","", "main rotor", "velka vrtule dive", "tail rotor", "mala vrtule dive", "otocvez","", "otochlaven","otocvez", "alt","", "alt2","", "nm_alt","", "nm_alt2","", "SlingLoad","", "mph","", "mph2","", "vert_speed","", "vert_speed2","", "rpm","", "rpm2","", "horizont","", "horizont2","", "compass","", "compass2","", "hodinova","", "hodinova2","", "minutova","", "minutova2","", "damageHide","", "Lights_green","", "positionlights","", "gear_1","", "gear_2","", "gear_3","", }; }; class ej_UH60M_skeleton: ej_Helicopter { skeletonInherit="ej_Helicopter"; isDiscrete=0; skeletonBones[]= { "gear_1","", "gear_2","", "gear_3","", "door1","", "door2","", "stick_pilot","", "stick_copilot","", "lever_pilot","", "lever_copilot","", "throttle_pilot","lever_pilot", "throttle_switch_pilot","lever_pilot", "display_off","", "horizont1_bank","", "horizont1_pitch","", "horizont2pilot","", "horizont2pilot_b","", "horizont3stred","", "horizont3stred_b","", "fuel","", "elevator","", "displays","", "compass3","", "compass4","", "otocvez_1","", "otochlaven_1","otocvez_1", "gatling_2","otochlaven_1", "gatling_1","otochlaven", "turret","", "gun","turret", "rocketB1","", "rocketB2","", "rocketB3","", "rocketB4","", "rocketB5","", "rocketB6","", "rocketB7","", "rocketB8","", "rocketB9","", "rocketB10","", "rocketB11","", "rocketB12","", "rocketB13","", "rocketB14","", "rocketB15","", "rocketB16","", "rocketB17","", "rocketB18","", "rocketB19","", "rocketB20","", "rocketB21","", "rocketB22","", "rocketB23","", "rocketB24","", "HF1","", "HF2","", "HF3","", "HF4","", "HF5","", "HF6","", "HF7","", "HF8","", "HF9","", "HF10","", "HF11","", "HF12","", "HF13","", "HF14","", "HF15","", "HF16","", "OtocHlavne","", "muzzleFlash","", "Civilian_hide","", "PositionLights","", "copip","", "copip1","", "copip2","", "main_trav","", "main_elev","main_trav", "tads_trav","", "tads_elev","tads_trav", "pnvs_trav","", }; }; }; class Rotation { type = "rotation"; memory = 1; minValue = 0; maxValue = 1; angle0 = 0; angle1 = 1; }; class CfgModels { class Default { sectionsInherit=""; sections[] = {}; skeletonName = ""; }; class Vehicle: Default { sections[] = { "cislo", "grupa", "side", "sektor", "clan", "clan_sign", "podsvit pristroju", "poskozeni", "L svetlo", "P svetlo", "zasleh" }; }; class ej_Helicopter: Vehicle { htMin = 60; // Minimum half-cooling time (in seconds) htMax = 1800; // Maximum half-cooling time (in seconds) afMax = 200; // Maximum temperature in case the model is alive (in celsius) mfMax = 100; // Maximum temperature when the model is moving (in celsius) mFact = 0; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)). tBody = 0; // Metabolism temperature of the model (in celsius) sectionsInherit="Vehicle"; sections[]= { "gear1", "gear2", "gear3", "sklo predni p", "sklo predni l", "main rotor blur", "main rotor static", "tail rotor blur", "tail rotor static", "zasleh_1", "motor", "elektronika", "munice", "zbran", "vez", "trup", "clan", "clan_sign", "glass1", "glass2", "glass3", "glass4", "glass5", "glass6", "podsvit pristroju", "camo1", "camo2", "camo3", }; skeletonName="ej_Helicopter"; class Animations { class Rotor_destructX { type="rotationX"; source="damage"; selection="main rotor"; axis="velka osa"; animPeriod=0; minValue=0.99; maxValue=1; angle0=0; angle1="rad -20"; }; class Rotor_destructY:Rotor_destructX { type="rotationY"; angle1="rad +40"; }; class rotordive_destructX:Rotor_destructX { selection="rotordive"; angle1="rad -5"; }; class rotordive_destructY:rotordive_destructX { type="rotationY"; angle1="rad -15"; }; class rotordive_destructZ:rotordive_destructX { type="rotationZ"; angle1="rad -5"; }; class rotor_static_dive_destructX:Rotor_destructX { selection="rotor static dive"; angle1="rad 5"; }; class rotor_static_dive_destructY:rotor_static_dive_destructX { type="rotationY"; angle1="rad -15"; }; class rotor_static_dive_destructZ:rotor_static_dive_destructX { type="rotationZ"; angle1="rad -5"; }; class mala_vrtule_destructY:Rotor_destructX { type="rotationY"; axis="mala osa"; selection="tail rotor"; angle1="rad 10"; }; class mala_vrtule_destructZ:mala_vrtule_destructY { type="rotationZ"; angle1="rad 25"; }; // destruct BASE END class damageHide { type="hide"; source="damage"; selection="damageHide"; }; class IndicatorAltBaro: Rotation { source="altBaro"; sourceAddress="loop"; selection="alt"; axis="axis_alt"; memory=0; maxValue=360; angle1="rad 360"; }; class IndicatorAltBaro2: IndicatorAltBaro { selection="alt2"; axis="axis_alt2"; }; class IndicatorAltRadar: Rotation { source="altRadar"; selection="nm_alt"; axis="axis_nm_alt"; memory="false"; maxValue=61; angle1="rad 360"; }; class IndicatorAltRadar2: IndicatorAltRadar { selection="nm_alt2"; axis="axis_nm_alt2"; }; class IndicatorSpeed: Rotation { source="speed"; selection="mph"; axis="axis_mph"; memory="false"; maxValue=125; angle1="rad 320"; }; class IndicatorSpeed2: IndicatorSpeed { selection="mph2"; axis="axis_mph2"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear_1"; axis="wheel_1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear_2"; axis="wheel_2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class gear3 { type="translation"; source="altSurface"; selection="gear_3"; axis="wheel_3_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class IndicatorVertSpeed: Rotation { source="vertSpeed"; selection="vert_speed"; axis="axis_vert_speed"; minValue=-30; maxValue=30; angle1="rad 274"; }; class IndicatorVertSpeed2: IndicatorVertSpeed { selection="vert_speed2"; axis="axis_vert_speed2"; }; class IndicatorRPM: Rotation { source="rpm"; selection="rpm"; axis="axis_rpm"; memory="false"; maxValue=-12; angle1="rad 260"; }; class IndicatorRPM2: IndicatorRPM { selection="rpm2"; axis="axis_rpm2"; }; class IndicatorCompass: Rotation { source="direction"; selection="compass"; axis="axis_compass"; memory="false"; minValue=-3.141593; maxValue=3.141593; angle1="rad -360"; }; class IndicatorCompass2: IndicatorCompass { selection="compass2"; axis="axis_compass2"; }; class WatchHour: Rotation { source="clockHour"; selection="hodinova"; axis="axis_time"; memory="false"; angle1="rad -360"; }; class WatchHour2: WatchHour { selection="hodinova2"; axis="axis_time2"; }; class WatchMinute: Rotation { source="clockMinute"; selection="minutova"; axis="axis_time"; memory="false"; angle1="rad -360"; }; class WatchMinute2: WatchMinute { selection="minutova2"; axis="axis_time2"; }; class HRotor: Rotation { source="rotorH"; selection="main rotor"; axis="velka osa"; angle1="2 * 3.1415926536"; }; class VRotor: Rotation { source="rotorV"; selection="tail rotor"; axis="mala osa"; angle1="2 * 3.1415926536"; }; class HorizonBank { type="rotationZ"; source="horizonBank"; selection="horizont"; axis="axis_horizont"; memory="false"; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class HorizonDive { type="rotationX"; source="horizonDive"; selection="horizont"; axis="axis_horizont"; memory=0; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizon2Bank: HorizonBank { selection="horizont2"; axis="axis_horizont2"; }; class Horizon2Dive: HorizonDive { selection="horizont2"; axis="axis_horizont2"; }; }; }; class ej_UH60M: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint" }; class Animations: Animations { //------------------------------------- BUDIKY -------------------------------------- class display_on { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class display_off { type="hide"; source="rpm"; selection="PilotMFD"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont_1"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont_1b"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont_2"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont_2"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont_2b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; //------------------------------------- GUN -------------------------------------- class MainTurret { type="rotationY"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class MainGun: MainTurret { type="rotationX"; source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; }; class Turret_2: MainTurret { source="Turret_2"; selection="OtocVez_1"; axis="OsaVeze_1"; }; class Gun_2: MainGun { source="Gun_2"; selection="OtocHlaven_1"; axis="OsaHlavne_1"; }; /*class MachineGun_1: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="Gatling_1"; }; class MachineGun_2: MachineGun_1 { selection="gatling_2"; axis="gatling_2_axis"; source="Gatling_2"; };*/ class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class wheel_front_Damper { type = "translation"; source = "altRadar"; selection = "wheel_front"; axis = "damper_axis"; memory = 1; minValue = 0; maxValue = 0.10; offset0 = 0.00; offset1 = -0.10; }; class wheel_left_Damper: wheel_front_Damper { selection = "wheel_left"; }; class wheel_right_Damper: wheel_front_Damper { selection = "wheel_right"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ammo_belt_rotation { type="rotation"; selection="ammo_belt"; source="ReloadAnim"; axis="ammo_belt_axis"; memory=1; sourceAddress="loop"; minValue=0; maxValue=1; angle0=0.000000; angle1=7.5*3.14159265358/180; }; class feedtray_cover_up { type="rotation"; source="reloadMagazine"; selection="feedtray_cover"; axis="feedtray_cover_axis"; memory=1; minValue=0.000000; maxValue=0.0500000; angle0=0.000000; angle1=1.570796; }; class feedtray_cover_down:feedtray_cover_up { minValue=0.950000; maxValue=1.000000; angle0=0.000000; angle1=-1.570796; }; class Turret_shake:ammo_belt_rotation { type="translation"; sourceAddress="mirror"; selection="OtocHlaven_Shake"; axis="osaveze"; offset0=0; offset1=-0.002; minValue=0.0; maxValue=0.05; }; class Turret_shake_aside:Turret_shake { axis="osahlavne"; maxValue=0.05*1.3; offset0=0; offset1=-0.02; }; class Magazine_hide { type="hide"; source="reloadMagazine"; sourceAddress="mirror"; selection="magazine"; minValue=0.0; maxValue=0.5; hideValue=0.56; }; BULLET_HIDE(001,8,100) BULLET_HIDE(002,8,100) BULLET_HIDE(003,8,100) BULLET_HIDE(004,8,100) BULLET_HIDE(005,8,100) BULLET_HIDE(006,8,100) BULLET_HIDE(007,8,100) BULLET_HIDE(008,8,100) class Bolt_recoil { type="translation"; selection="bolt"; source="ReloadAnim"; axis="recoil_axis"; memory=1; sourceAddress="mirror"; minValue=0; maxValue=0.45; offset0=0; offset1=-0.2; }; class Bolt_reload_begin:Bolt_recoil { type="translation"; sourceAddress="clamp"; source="reloadMagazine"; minValue=0.00000; maxValue=0.0200000; }; class Bolt_reload_end:bolt_reload_begin { minValue=0.050000; maxValue=0.060000; offset0=0; offset1=0.2; }; class ammo_belt_rotation_2 { type="rotation"; selection="ammo_belt_2"; source="ReloadAnim_2"; axis="ammo_belt_axis_2"; memory=1; sourceAddress="loop"; minValue=0; maxValue=1; angle0=0.000000; angle1=7.5*3.14159265358/180; }; class feedtray_cover_up_2 { type="rotation"; source="reloadMagazine_2"; selection="feedtray_cover_2"; axis="feedtray_cover_axis_2"; memory=1; minValue=0.000000; maxValue=0.0500000; angle0=0.000000; angle1=1.570796; }; class feedtray_cover_down_2:feedtray_cover_up_2 { minValue=0.950000; maxValue=1.000000; angle0=0.000000; angle1=-1.570796; }; class Turret_shake_2:ammo_belt_rotation_2 { type="translation"; sourceAddress="mirror"; selection="OtocHlaven_1_Shake"; axis="osaveze"; offset0=0; offset1=-0.002; minValue=0.0; maxValue=0.05; }; class Turret_shake_aside_2:Turret_shake_2 { axis="osahlavne_1"; maxValue=0.05*1.3; offset0=0; offset1=-0.02; }; class Magazine_hide_2 { type="hide"; source="reloadMagazine_2"; sourceAddress="mirror"; selection="magazine_2"; minValue=0.0; maxValue=0.5; hideValue=0.56; }; BULLET_HIDE_2nd(001,8,100) BULLET_HIDE_2nd(002,8,100) BULLET_HIDE_2nd(003,8,100) BULLET_HIDE_2nd(004,8,100) BULLET_HIDE_2nd(005,8,100) BULLET_HIDE_2nd(006,8,100) BULLET_HIDE_2nd(007,8,100) BULLET_HIDE_2nd(008,8,100) class Bolt_recoil_2 { type="translation"; selection="bolt_2"; source="ReloadAnim_2"; axis="recoil_axis_2"; memory=1; sourceAddress="mirror"; minValue=0; maxValue=0.45; offset0=0; offset1=-0.2; }; class Bolt_reload_begin_2:Bolt_recoil_2 { type="translation"; sourceAddress="clamp"; source="reloadMagazine_2"; minValue=0.00000; maxValue=0.0200000; }; class Bolt_reload_end_2:bolt_reload_begin_2 { minValue=0.050000; maxValue=0.060000; offset0=0; offset1=0.2; }; }; }; class ej_MH60S: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { //------------------------------------- BUDIKY -------------------------------------- class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class wheel_front_Damper { type = "translation"; source = "altRadar"; selection = "wheel_front"; axis = "damper_axis"; memory = 1; minValue = 0; maxValue = 0.10; offset0 = 0.00; offset1 = -0.10; }; class wheel_left_Damper: wheel_front_Damper { selection = "wheel_left"; }; class wheel_right_Damper: wheel_front_Damper { selection = "wheel_right"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; //------------------------------------- GUN -------------------------------------- class MainTurret { type="rotationY"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class MainGun: MainTurret { type="rotationX"; source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; }; class Turret_2: MainTurret { source="Turret_2"; selection="OtocVez_1"; axis="OsaVeze_1"; }; class Gun_2: MainGun { source="Gun_2"; selection="OtocHlaven_1"; axis="OsaHlavne_1"; }; /*class MachineGun_1: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="Gatling_1"; }; class MachineGun_2: MachineGun_1 { selection="gatling_2"; axis="gatling_2_axis"; source="Gatling_2"; };*/ class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; ///*** movement of pilot and copilot sticks ***/// #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; }; }; class ej_MH60SI: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { //------------------------------------- BUDIKY -------------------------------------- class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; //------------------------------------- GUN -------------------------------------- class MainTurret { type="rotationY"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class MainGun: MainTurret { type="rotationX"; source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; }; class Turret_2: MainTurret { source="Turret_2"; selection="OtocVez_1"; axis="OsaVeze_1"; }; class Gun_2: MainGun { source="Gun_2"; selection="OtocHlaven_1"; axis="OsaHlavne_1"; }; /*class MachineGun_1: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="Gatling_1"; }; class MachineGun_2: MachineGun_1 { selection="gatling_2"; axis="gatling_2_axis"; source="Gatling_2"; };*/ class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; ///*** movement of pilot and copilot sticks ***/// #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; }; }; class ej_MH60SI2: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class MainTurret { type="rotationY"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class MainGun: MainTurret { type="rotationX"; source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; }; class Turret_2: MainTurret { source="Turret_2"; selection="OtocVez_1"; axis="OsaVeze_1"; }; class Gun_2: MainGun { source="Gun_2"; selection="OtocHlaven_1"; axis="OsaHlavne_1"; }; /*class MachineGun_1: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="Gatling_1"; }; class MachineGun_2: MachineGun_1 { selection="gatling_2"; axis="gatling_2_axis"; source="Gatling_2"; };*/ class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; class hidePG_1 { type = "hide"; selection = "rocketB1"; animPeriod=0; source="Missiles_revolving"; sourceAddress="mirror"; minValue=-1.000000; maxValue= 0.000000; hideValue=(11/12)+0.0000001; }; class hidePG_2: hidePG_1 { selection = "rocketB2"; hideValue=(10/12)+0.0000001; }; class hidePG_3: hidePG_1 { selection = "rocketB3"; hideValue=(9/12)+0.0000001; }; class hidePG_4: hidePG_1 { selection = "rocketB4"; hideValue=(8/12)+0.0000001; }; class hidePG_5: hidePG_1 { selection = "rocketB5"; hideValue=(7/12)+0.0000001; }; class hidePG_6: hidePG_1 { selection = "rocketB6"; hideValue=(6/12)+0.0000001; }; class hidePG_7: hidePG_1 { selection = "rocketB7"; hideValue=(5/12)+0.0000001; }; class hidePG_8: hidePG_1 { selection = "rocketB8"; hideValue=(4/12)+0.0000001; }; class hidePG_9: hidePG_1 { selection = "rocketB9"; hideValue=(3/12)+0.0000001; }; class hidePG_10: hidePG_1 { selection = "rocketB10"; hideValue=(2/12)+0.0000001; }; class hidePG_11: hidePG_1 { selection = "rocketB11"; hideValue=(1/12)+0.0000001; }; class hidePG_12: hidePG_1 { selection = "rocketB12"; hideValue=(0/12)+0.0000001; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; }; }; class ej_MH60SI3: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class MainTurret { type="rotationY"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class MainGun: MainTurret { type="rotationX"; source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; }; class Turret_2: MainTurret { source="Turret_2"; selection="OtocVez_1"; axis="OsaVeze_1"; }; class Gun_2: MainGun { source="Gun_2"; selection="OtocHlaven_1"; axis="OsaHlavne_1"; }; /*class MachineGun_1: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="Gatling_1"; }; class MachineGun_2: MachineGun_1 { selection="gatling_2"; axis="gatling_2_axis"; source="Gatling_2"; };*/ class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; class hidePG_1 { type = "hide"; selection = "rocketB1"; animPeriod=0; source="Missiles_revolving"; sourceAddress="mirror"; minValue=-1.000000; maxValue= 0.000000; hideValue=(11/12)+0.0000001; }; class hidePG_2: hidePG_1 { selection = "rocketB2"; hideValue=(10/12)+0.0000001; }; class hidePG_3: hidePG_1 { selection = "rocketB3"; hideValue=(9/12)+0.0000001; }; class hidePG_4: hidePG_1 { selection = "rocketB4"; hideValue=(8/12)+0.0000001; }; class hidePG_5: hidePG_1 { selection = "rocketB5"; hideValue=(7/12)+0.0000001; }; class hidePG_6: hidePG_1 { selection = "rocketB6"; hideValue=(6/12)+0.0000001; }; class hidePG_7: hidePG_1 { selection = "rocketB7"; hideValue=(5/12)+0.0000001; }; class hidePG_8: hidePG_1 { selection = "rocketB8"; hideValue=(4/12)+0.0000001; }; class hidePG_9: hidePG_1 { selection = "rocketB9"; hideValue=(3/12)+0.0000001; }; class hidePG_10: hidePG_1 { selection = "rocketB10"; hideValue=(2/12)+0.0000001; }; class hidePG_11: hidePG_1 { selection = "rocketB11"; hideValue=(1/12)+0.0000001; }; class hidePG_12: hidePG_1 { selection = "rocketB12"; hideValue=(0/12)+0.0000001; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; }; }; class ej_MH60SI4: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class MainTurret { type="rotationY"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class MainGun: MainTurret { type="rotationX"; source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; }; class Turret_2: MainTurret { source="Turret_2"; selection="OtocVez_1"; axis="OsaVeze_1"; }; class Gun_2: MainGun { source="Gun_2"; selection="OtocHlaven_1"; axis="OsaHlavne_1"; }; /*class MachineGun_1: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="Gatling_1"; }; class MachineGun_2: MachineGun_1 { selection="gatling_2"; axis="gatling_2_axis"; source="Gatling_2"; };*/ class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; }; }; class ej_MH60MDAP: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class hidePG_1 { type = "hide"; selection = "rocketB1"; animPeriod=0; source="Missiles_revolving"; sourceAddress="mirror"; minValue=-1.000000; maxValue= 0.000000; hideValue=(11/12)+0.0000001; }; class hidePG_2: hidePG_1 { selection = "rocketB2"; hideValue=(10/12)+0.0000001; }; class hidePG_3: hidePG_1 { selection = "rocketB3"; hideValue=(9/12)+0.0000001; }; class hidePG_4: hidePG_1 { selection = "rocketB4"; hideValue=(8/12)+0.0000001; }; class hidePG_5: hidePG_1 { selection = "rocketB5"; hideValue=(7/12)+0.0000001; }; class hidePG_6: hidePG_1 { selection = "rocketB6"; hideValue=(6/12)+0.0000001; }; class hidePG_7: hidePG_1 { selection = "rocketB7"; hideValue=(5/12)+0.0000001; }; class hidePG_8: hidePG_1 { selection = "rocketB8"; hideValue=(4/12)+0.0000001; }; class hidePG_9: hidePG_1 { selection = "rocketB9"; hideValue=(3/12)+0.0000001; }; class hidePG_10: hidePG_1 { selection = "rocketB10"; hideValue=(2/12)+0.0000001; }; class hidePG_11: hidePG_1 { selection = "rocketB11"; hideValue=(1/12)+0.0000001; }; class hidePG_12: hidePG_1 { selection = "rocketB12"; hideValue=(0/12)+0.0000001; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; }; }; class ej_UH60M_MEV: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint" }; class Animations: Animations { //------------------------------------- BUDIKY -------------------------------------- class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; //------------------------------------ LIGHTS ------------------------------------ class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; }; }; class ej_UH60M_U: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint" }; class Animations: Animations { //------------------------------------- BUDIKY -------------------------------------- class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; }; }; class ej_UH60M_UT: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint" }; class Animations: Animations { //------------------------------------- BUDIKY -------------------------------------- class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; }; }; class ej_MH60M: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint" }; class Animations: Animations { //------------------------------------- BUDIKY -------------------------------------- class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; //------------------------------------- GUN -------------------------------------- class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; ///*** movement of pilot and copilot sticks ***/// #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; }; }; class ej_MH60L: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint" }; class Animations: Animations { //------------------------------------- BUDIKY -------------------------------------- class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; //------------------------------------- GUN -------------------------------------- class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; ///*** movement of pilot and copilot sticks ***/// #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; }; }; class ej_MH60MDAP4: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class hidePG_1 { type = "hide"; selection = "rocketB1"; animPeriod=0; source="Missiles_revolving"; sourceAddress="mirror"; minValue=-1.000000; maxValue= 0.000000; hideValue=(11/12)+0.0000001; }; class hidePG_2: hidePG_1 { selection = "rocketB2"; hideValue=(10/12)+0.0000001; }; class hidePG_3: hidePG_1 { selection = "rocketB3"; hideValue=(9/12)+0.0000001; }; class hidePG_4: hidePG_1 { selection = "rocketB4"; hideValue=(8/12)+0.0000001; }; class hidePG_5: hidePG_1 { selection = "rocketB5"; hideValue=(7/12)+0.0000001; }; class hidePG_6: hidePG_1 { selection = "rocketB6"; hideValue=(6/12)+0.0000001; }; class hidePG_7: hidePG_1 { selection = "rocketB7"; hideValue=(5/12)+0.0000001; }; class hidePG_8: hidePG_1 { selection = "rocketB8"; hideValue=(4/12)+0.0000001; }; class hidePG_9: hidePG_1 { selection = "rocketB9"; hideValue=(3/12)+0.0000001; }; class hidePG_10: hidePG_1 { selection = "rocketB10"; hideValue=(2/12)+0.0000001; }; class hidePG_11: hidePG_1 { selection = "rocketB11"; hideValue=(1/12)+0.0000001; }; class hidePG_12: hidePG_1 { selection = "rocketB12"; hideValue=(0/12)+0.0000001; }; class hideHF_1: hidePG_1 { selection = "HF1"; hideValue=(3/4)+0.0000001; }; class hideHF_2: hidePG_1 { selection = "HF2"; hideValue=(2/4)+0.0000001; }; class hideHF_3: hidePG_1 { selection = "HF3"; hideValue=(1/4)+0.0000001; }; class hideHF_4: hidePG_1 { selection = "HF4"; hideValue=(0/4)+0.0000001; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; }; }; class ej_MH60MDAP8H: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; class hidePG_1 { type = "hide"; selection = "rocketB1"; animPeriod=0; source="Missiles_revolving"; sourceAddress="mirror"; minValue=-1.000000; maxValue= 0.000000; hideValue=(23/24)+0.0000001; }; class hidePG_2: hidePG_1 { selection = "rocketB2"; hideValue=(22/24)+0.0000001; }; class hidePG_3: hidePG_1 { selection = "rocketB3"; hideValue=(21/24)+0.0000001; }; class hidePG_4: hidePG_1 { selection = "rocketB4"; hideValue=(20/24)+0.0000001; }; class hidePG_5: hidePG_1 { selection = "rocketB5"; hideValue=(19/24)+0.0000001; }; class hidePG_6: hidePG_1 { selection = "rocketB6"; hideValue=(18/24)+0.0000001; }; class hidePG_7: hidePG_1 { selection = "rocketB7"; hideValue=(17/24)+0.0000001; }; class hidePG_8: hidePG_1 { selection = "rocketB8"; hideValue=(16/24)+0.0000001; }; class hidePG_9: hidePG_1 { selection = "rocketB9"; hideValue=(15/24)+0.0000001; }; class hidePG_10: hidePG_1 { selection = "rocketB10"; hideValue=(14/24)+0.0000001; }; class hidePG_11: hidePG_1 { selection = "rocketB11"; hideValue=(13/24)+0.0000001; }; class hidePG_12: hidePG_1 { selection = "rocketB12"; hideValue=(12/24)+0.0000001; }; class hidePG_13: hidePG_1 { selection = "rocketB13"; hideValue=(11/24)+0.0000001; }; class hidePG_14: hidePG_1 { selection = "rocketB14"; hideValue=(10/24)+0.0000001; }; class hidePG_15: hidePG_1 { selection = "rocketB15"; hideValue=(9/24)+0.0000001; }; class hidePG_16: hidePG_1 { selection = "rocketB16"; hideValue=(8/24)+0.0000001; }; class hidePG_17: hidePG_1 { selection = "rocketB17"; hideValue=(7/24)+0.0000001; }; class hidePG_18: hidePG_1 { selection = "rocketB18"; hideValue=(6/24)+0.0000001; }; class hidePG_19: hidePG_1 { selection = "rocketB19"; hideValue=(5/24)+0.0000001; }; class hidePG_20: hidePG_1 { selection = "rocketB20"; hideValue=(4/24)+0.0000001; }; class hidePG_21: hidePG_1 { selection = "rocketB21"; hideValue=(3/24)+0.0000001; }; class hidePG_22: hidePG_1 { selection = "rocketB22"; hideValue=(2/24)+0.0000001; }; class hidePG_23: hidePG_1 { selection = "rocketB23"; hideValue=(1/24)+0.0000001; }; class hidePG_24: hidePG_1 { selection = "rocketB24"; hideValue=(0/24)+0.0000001; }; class hideHF_1: hidePG_1 { selection = "HF1"; hideValue=(7/8)+0.0000001; }; class hideHF_2: hidePG_1 { selection = "HF2"; hideValue=(6/8)+0.0000001; }; class hideHF_3: hidePG_1 { selection = "HF3"; hideValue=(5/8)+0.0000001; }; class hideHF_4: hidePG_1 { selection = "HF4"; hideValue=(4/8)+0.0000001; }; class hideHF_5: hidePG_1 { selection = "HF5"; hideValue=(3/8)+0.0000001; }; class hideHF_6: hidePG_1 { selection = "HF1"; hideValue=(2/8)+0.0000001; }; class hideHF_7: hidePG_1 { selection = "HF7"; hideValue=(1/8)+0.0000001; }; class hideHF_8: hidePG_1 { selection = "HF8"; hideValue=(0/8)+0.0000001; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; }; }; class ej_MH60MDAP16H: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class hideHF_1 { type = "hide"; selection = "HF1"; animPeriod=0; source="Missiles_revolving"; sourceAddress="mirror"; minValue=-1.000000; maxValue= 0.000000; hideValue=(15/16)+0.0000001; }; class hideHF_2: hideHF_1 { selection = "HF2"; hideValue=(14/16)+0.0000001; }; class hideHF_3: hideHF_1 { selection = "HF3"; hideValue=(13/16)+0.0000001; }; class hideHF_4: hideHF_1 { selection = "HF4"; hideValue=(12/16)+0.0000001; }; class hideHF_5: hideHF_1 { selection = "HF5"; hideValue=(11/16)+0.0000001; }; class hideHF_6: hideHF_1 { selection = "HF6"; hideValue=(10/16)+0.0000001; }; class hideHF_7: hideHF_1 { selection = "HF7"; hideValue=(9/16)+0.0000001; }; class hideHF_8: hideHF_1 { selection = "HF8"; hideValue=(8/16)+0.0000001; }; class hideHF_9: hideHF_1 { selection = "HF9"; hideValue=(7/16)+0.0000001; }; class hideHF_10: hideHF_1 { selection = "HF10"; hideValue=(6/16)+0.0000001; }; class hideHF_11: hideHF_1 { selection = "HF11"; hideValue=(5/16)+0.0000001; }; class hideHF_12: hideHF_1 { selection = "HF12"; hideValue=(4/16)+0.0000001; }; class hideHF_13: hideHF_1 { selection = "HF13"; hideValue=(3/16)+0.0000001; }; class hideHF_14: hideHF_1 { selection = "HF14"; hideValue=(2/8)+0.0000001; }; class hideHF_15: hideHF_1 { selection = "HF15"; hideValue=(1/16)+0.0000001; }; class hideHF_16: hideHF_1 { selection = "HF16"; hideValue=(0/16)+0.0000001; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; }; }; class ej_AH64D: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_Helicopter"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1= 180; }; class IndicatorRPM: IndicatorRPM { angle1="rad 235"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad 235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class MainTurret { type = "rotation"; source = "mainTurret"; selection = "main_trav"; axis = "main_trav_axis"; animPeriod = 0; memory = 1; minValue = "rad -360"; maxValue = "rad +360"; angle0 = "rad -360"; angle1 = "rad +360"; }; class MainGun { type = "rotation"; source = "mainGun"; selection = "main_elev"; axis = "main_elev_axis"; animPeriod = 0; memory = 1; minValue = "rad -360"; maxValue = "rad +360"; angle0 = "rad -360"; angle1 = "rad +360"; }; class TADSTurret { type = "rotation"; source = "mainTurret"; selection = "tads_trav"; axis = "tads_trav_axis"; animPeriod = 0; memory = 1; minValue = "rad -360"; maxValue = "rad +360"; angle0 = "rad -360"; angle1 = "rad +360"; }; class TADSElev { type = "rotation"; source = "mainGun"; selection = "tads_elev"; axis = "tads_elev_axis"; animPeriod = 0; memory = 1; minValue = "rad -360"; maxValue = "rad +360"; angle0 = "rad -360"; angle1 = "rad +360"; }; class PNVSTurret { type = "rotation"; source = "mainTurret"; selection = "pnvs_trav"; axis = "pnvs_trav_axis"; animPeriod = 0; memory = 1; minValue = "rad -360"; maxValue = "rad +360"; angle0 = "rad -360"; angle1 = "rad +360"; }; class RacksElev { type = "rotation"; source = "mainGun"; selection = "rack_elev"; axis = "rack_elev_axis"; animPeriod = 0; memory = 1; minValue = "rad -15"; maxValue = "rad 4.9"; angle0 = "rad -15"; angle1 = "rad 4.9"; }; }; }; //DuctedHelos class ej_HelicopterDucted: Vehicle { htMin = 60; // Minimum half-cooling time (in seconds) htMax = 1800; // Maximum half-cooling time (in seconds) afMax = 200; // Maximum temperature in case the model is alive (in celsius) mfMax = 100; // Maximum temperature when the model is moving (in celsius) mFact = 0; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)). tBody = 0; // Metabolism temperature of the model (in celsius) sectionsInherit="Vehicle"; sections[]= { "gear1", "gear2", "sklo predni p", "sklo predni l", "main rotor blur", "main rotor static", "tail rotor blur", "tail rotor static", "zasleh_1", "motor", "elektronika", "munice", "zbran", "vez", "trup", "clan", "clan_sign", "glass1", "glass2", "glass3", "glass4", "glass5", "glass6", "podsvit pristroju", "camo1", "camo2", "camo3", }; skeletonName="ej_Helicopter"; class Animations { class Rotor_destructX { type="rotationX"; source="damage"; selection="main rotor"; axis="velka osa"; animPeriod=0; minValue=0.99; maxValue=1; angle0=0; angle1="rad -20"; }; class Rotor_destructY:Rotor_destructX { type="rotationY"; angle1="rad +40"; }; class rotordive_destructX:Rotor_destructX { selection="rotordive"; angle1="rad -5"; }; class rotordive_destructY:rotordive_destructX { type="rotationY"; angle1="rad -15"; }; class rotordive_destructZ:rotordive_destructX { type="rotationZ"; angle1="rad -5"; }; class rotor_static_dive_destructX:Rotor_destructX { selection="rotor static dive"; angle1="rad 5"; }; class rotor_static_dive_destructY:rotor_static_dive_destructX { type="rotationY"; angle1="rad -15"; }; class rotor_static_dive_destructZ:rotor_static_dive_destructX { type="rotationZ"; angle1="rad -5"; }; class mala_vrtule_destructY:Rotor_destructX { type="rotationY"; axis="mala osa"; selection="tail rotor"; angle1="rad 10"; }; class mala_vrtule_destructZ:mala_vrtule_destructY { type="rotationZ"; angle1="rad 25"; }; // destruct BASE END class damageHide { type="hide"; source="damage"; selection="damageHide"; }; class IndicatorAltBaro: Rotation { source="altBaro"; sourceAddress="loop"; selection="alt"; axis="axis_alt"; memory=0; maxValue=304; angle1="rad -360"; }; class IndicatorAltBaro2: IndicatorAltBaro { selection="alt2"; axis="axis_alt2"; }; class IndicatorAltRadar: Rotation { source="altRadar"; selection="nm_alt"; axis="axis_nm_alt"; memory="false"; maxValue=61; angle1="rad -180"; }; class IndicatorAltRadar2: IndicatorAltRadar { selection="nm_alt2"; axis="axis_nm_alt2"; }; class IndicatorSpeed: Rotation { source="speed"; selection="mph"; axis="axis_mph"; memory="false"; maxValue=125; angle1="rad -320"; }; class IndicatorSpeed2: IndicatorSpeed { selection="mph2"; axis="axis_mph2"; }; class IndicatorVertSpeed: Rotation { source="vertSpeed"; selection="vert_speed"; axis="axis_vert_speed"; minValue=-30; maxValue=30; angle1="rad -300"; }; class IndicatorVertSpeed2: IndicatorVertSpeed { selection="vert_speed2"; axis="axis_vert_speed2"; }; class IndicatorRPM: Rotation { source="rpm"; selection="rpm"; axis="axis_rpm"; memory="false"; maxValue=12; angle1="rad -320"; }; class IndicatorRPM2: IndicatorRPM { selection="rpm2"; axis="axis_rpm2"; }; class IndicatorCompass: Rotation { source="direction"; selection="compass"; axis="axis_compass"; memory="false"; minValue=-3.141593; maxValue=3.141593; angle1="rad -360"; }; class IndicatorCompass2: IndicatorCompass { selection="compass2"; axis="axis_compass2"; }; class WatchHour: Rotation { source="clockHour"; selection="hodinova"; axis="axis_time"; memory="false"; angle1="rad -360"; }; class WatchHour2: WatchHour { selection="hodinova2"; axis="axis_time2"; }; class WatchMinute: Rotation { source="clockMinute"; selection="minutova"; axis="axis_time"; memory="false"; angle1="rad -360"; }; class WatchMinute2: WatchMinute { selection="minutova2"; axis="axis_time2"; }; class HRotor: Rotation { source="rotorH"; selection="main rotor"; axis="velka osa"; angle1="0 * 3.1415926536"; }; class VRotor: Rotation { source="rotorV"; selection="tail rotor"; axis="mala osa"; angle1="0 * 3.1415926536"; }; class HorizonBank { type="rotationZ"; source="horizonBank"; selection="horizont"; axis="axis_horizont"; memory="false"; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class HorizonDive { type="rotationX"; source="horizonDive"; selection="horizont"; axis="axis_horizont"; memory=0; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizon2Bank: HorizonBank { selection="horizont2"; axis="axis_horizont2"; }; class Horizon2Dive: HorizonDive { selection="horizont2"; axis="axis_horizont2"; }; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; }; }; class ej_UH92: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_HelicopterDucted"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "elektronika", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", "copip","", "copip1","", "copip2","", }; class Animations: Animations { class FormationLights : Rotation { type="hide"; source="user"; selection="Lights_green"; minValue = 0.0; maxValue = 1.0; HideValue = 0.5; }; class display_on: Rotation { type="hide"; source="rpm"; selection="display_off"; minValue=-0.5; maxValue=0.5; hidevalue=0.9; sourceAddress="clamp"; }; class copip { type="hide"; source="HideSlingFeed"; selection="copip"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip1 { type="hide"; source="HidePilotMFD"; selection="copip1"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip2 { type="hide"; source="HideGunMFD"; selection="copip2"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorRPM: IndicatorRPM { angle1="rad -350"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad -235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1=-5.1; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class rotorTilt { selection="Mainrotordive"; source="rpm"; axis="MainTilt"; type="translation"; memory=1; minValue=0.000000; maxValue=12.0000000; offset0=0.60000; offset1=-0.500000; }; class TailTilt { selection="Tailrotordive"; source="rpm"; axis="TailTilt"; type="translation"; memory=1; minValue=0.000000; maxValue=12.0000000; offset0=0.60000; offset1=-0.500000; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; }; }; class ej_UH92_RWG: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_HelicopterDucted"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "elektronika", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", "copip","", "copip1","", "copip2","", }; class Animations: Animations { class FormationLights : Rotation { type="hide"; source="user"; selection="Lights_green"; minValue = 0.0; maxValue = 1.0; HideValue = 0.5; }; class display_on: Rotation { type="hide"; source="rpm"; selection="display_off"; minValue=-0.5; maxValue=0.5; hidevalue=0.9; sourceAddress="clamp"; }; class copip { type="hide"; source="HideSlingFeed"; selection="copip"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip1 { type="hide"; source="HidePilotMFD"; selection="copip1"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip2 { type="hide"; source="HideGunMFD"; selection="copip2"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorRPM: IndicatorRPM { angle1="rad -350"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad -235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1=-5.1; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class rotorTilt { selection="rotordive"; source="rpm"; axis="velka osa"; type="translation"; memory=1; minValue=0.000000; maxValue=12.0000000; offset0=0.60000; offset1=-0.500000; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; }; }; class ej_MH92: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_HelicopterDucted"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "elektronika", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", "copip","", "copip1","", "copip2","", }; class Animations: Animations { class FormationLights : Rotation { type="hide"; source="user"; selection="Lights_green"; minValue = 0.0; maxValue = 1.0; HideValue = 0.5; }; class display_on: Rotation { type="hide"; source="rpm"; selection="display_off"; minValue=-0.5; maxValue=0.5; hidevalue=0.9; sourceAddress="clamp"; }; class copip { type="hide"; source="HideSlingFeed"; selection="copip"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip1 { type="hide"; source="HidePilotMFD"; selection="copip1"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip2 { type="hide"; source="HideGunMFD"; selection="copip2"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorRPM: IndicatorRPM { angle1="rad -350"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad -235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1=-5.1; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class rotorTilt { selection="rotordive"; source="rpm"; axis="velka osa"; type="translation"; memory=1; minValue=0.000000; maxValue=12.0000000; offset0=0.60000; offset1=-0.500000; }; class RotorHDive { selection="velka vrtule"; axis="predni osa naklonu"; type="rotationX"; source="horizonDive"; minValue=-0.500000; maxValue=0.500000; angle0="rad -4"; angle1="rad 4"; animPeriod=0; }; class RotorHBank { selection="velka vrtule"; axis="predni osa naklonu"; type="rotationZ"; source="horizonBank"; minValue=-0.500000; maxValue=0.500000; angle0="rad 10"; angle1="rad -10"; animPeriod=0; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; }; }; class ej_S94: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_HelicopterDucted"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "elektronika", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", "light_front_hide", "copip","", "copip1","" }; class Animations: Animations { class display_on: Rotation { type="hide"; source="rpm"; selection="display_off"; minValue=-0.5; maxValue=0.5; hidevalue=0.9; sourceAddress="clamp"; }; class copip { type="hide"; source="HideSlingFeed"; selection="copip"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorRPM: IndicatorRPM { angle1="rad -350"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad -235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1=-5.1; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class rotorTilt { selection="rotordive"; source="rpm"; axis="velka osa"; type="translation"; memory=1; minValue=0.000000; maxValue=12.0000000; offset0=0.60000; offset1=-0.500000; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; }; }; class ej_S94U: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_HelicopterDucted"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "elektronika", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", "light_front_hide", "copip","", "copip1","" }; class Animations: Animations { class display_on: Rotation { type="hide"; source="rpm"; selection="display_off"; minValue=-0.5; maxValue=0.5; hidevalue=0.9; sourceAddress="clamp"; }; class copip { type="hide"; source="HideSlingFeed"; selection="copip"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorRPM: IndicatorRPM { angle1="rad -350"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad -235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1=-5.1; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class rotorTilt { selection="rotordive"; source="rpm"; axis="velka osa"; type="translation"; memory=1; minValue=0.000000; maxValue=12.0000000; offset0=0.60000; offset1=-0.500000; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; //use ammo count as phase for animation sourceAddress="loop"; //loop when phase out of bounds selection="muzzleFlash"; //selection we want to rotate axis=""; //no own axis - center of rotation is computed from selection centerFirstVertex=true; //use first vertex of selection as center of rotation minValue=0; maxValue=4; //rotation angle will be 360/4 = 90 degrees angle0="rad 0"; angle1="rad 360"; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; }; }; class ej_MH92DAP: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_HelicopterDucted"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", "copip","", "copip1","", "copip2","" }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class IndicatorRPM: IndicatorRPM { angle1="rad -350"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad -235"; }; class copip { type="hide"; source="HideSlingFeed"; selection="copip"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip1 { type="hide"; source="HidePilotMFD"; selection="copip1"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip2 { type="hide"; source="HideGunMFD"; selection="copip2"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1=-5.1; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class door1 { type="translation"; axis="doorX_axis"; animPeriod=1; source="LDoor"; selection="door1"; offset0=0; offset1=1.00; minValue=0; maxValue=0.05; }; class door1_posunZ: door1 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class door2 { type="translation"; axis="doorX_axis"; animPeriod=1; source="RDoor"; selection="door2"; offset0=0; offset1=1.0; minValue=0; maxValue=-0.05; }; class door2_posunZ: door2 { axis="doorZ_axis"; offset0=0; offset1=1.4; minValue=0; maxValue=1; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class FormationLights : Rotation { type="hide"; source="user"; selection="Lights_green"; minValue = 0.0; maxValue = 1.0; HideValue = 0.5; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; class hidePG_1 { type = "hide"; selection = "rocketB1"; animPeriod=0; source="Missiles_revolving"; sourceAddress="mirror"; minValue=-1.000000; maxValue= 0.000000; hideValue=(23/24)+0.0000001; }; class hidePG_2: hidePG_1 { selection = "rocketB2"; hideValue=(22/24)+0.0000001; }; class hidePG_3: hidePG_1 { selection = "rocketB3"; hideValue=(21/24)+0.0000001; }; class hidePG_4: hidePG_1 { selection = "rocketB4"; hideValue=(20/24)+0.0000001; }; class hidePG_5: hidePG_1 { selection = "rocketB5"; hideValue=(19/24)+0.0000001; }; class hidePG_6: hidePG_1 { selection = "rocketB6"; hideValue=(18/24)+0.0000001; }; class hidePG_7: hidePG_1 { selection = "rocketB7"; hideValue=(17/24)+0.0000001; }; class hidePG_8: hidePG_1 { selection = "rocketB8"; hideValue=(16/24)+0.0000001; }; class hidePG_9: hidePG_1 { selection = "rocketB9"; hideValue=(15/24)+0.0000001; }; class hidePG_10: hidePG_1 { selection = "rocketB10"; hideValue=(14/24)+0.0000001; }; class hidePG_11: hidePG_1 { selection = "rocketB11"; hideValue=(13/24)+0.0000001; }; class hidePG_12: hidePG_1 { selection = "rocketB12"; hideValue=(12/24)+0.0000001; }; class hidePG_13: hidePG_1 { selection = "rocketB13"; hideValue=(11/24)+0.0000001; }; class hidePG_14: hidePG_1 { selection = "rocketB14"; hideValue=(10/24)+0.0000001; }; class hidePG_15: hidePG_1 { selection = "rocketB15"; hideValue=(9/24)+0.0000001; }; class hidePG_16: hidePG_1 { selection = "rocketB16"; hideValue=(8/24)+0.0000001; }; class hidePG_17: hidePG_1 { selection = "rocketB17"; hideValue=(7/24)+0.0000001; }; class hidePG_18: hidePG_1 { selection = "rocketB18"; hideValue=(6/24)+0.0000001; }; class hidePG_19: hidePG_1 { selection = "rocketB19"; hideValue=(5/24)+0.0000001; }; class hidePG_20: hidePG_1 { selection = "rocketB20"; hideValue=(4/24)+0.0000001; }; class hidePG_21: hidePG_1 { selection = "rocketB21"; hideValue=(3/24)+0.0000001; }; class hidePG_22: hidePG_1 { selection = "rocketB22"; hideValue=(2/24)+0.0000001; }; class hidePG_23: hidePG_1 { selection = "rocketB23"; hideValue=(1/24)+0.0000001; }; class hidePG_24: hidePG_1 { selection = "rocketB24"; hideValue=(0/24)+0.0000001; }; class hideHF_1: hidePG_1 { selection = "HF1"; hideValue=(7/8)+0.0000001; }; class hideHF_2: hidePG_1 { selection = "HF2"; hideValue=(6/8)+0.0000001; }; class hideHF_3: hidePG_1 { selection = "HF3"; hideValue=(5/8)+0.0000001; }; class hideHF_4: hidePG_1 { selection = "HF4"; hideValue=(4/8)+0.0000001; }; class hideHF_5: hidePG_1 { selection = "HF5"; hideValue=(3/8)+0.0000001; }; class hideHF_6: hidePG_1 { selection = "HF1"; hideValue=(2/8)+0.0000001; }; class hideHF_7: hidePG_1 { selection = "HF7"; hideValue=(1/8)+0.0000001; }; class hideHF_8: hidePG_1 { selection = "HF8"; hideValue=(0/8)+0.0000001; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; }; }; class ej_MH92DAP2: ej_Helicopter { skeletonName="ej_UH60M_skeleton"; sectionsInherit="ej_HelicopterDucted"; sections[]= { "zbytek", "camo1", "camo2", "camo3", "muzzleFlash", "Light_L", "Light_R", "Light_L_hitpoint", "Light_R_hitpoint", "copip","", "copip1","", "copip2","", }; class Animations: Animations { class display_on //hides display_off selection { type="hide"; source="rpm"; selection="display_off"; minValue=-0.8; maxValue=0.2; hidevalue=0.9; sourceAddress="clamp"; }; class Horizont1_Bank { type="rotation"; source="horizonBank"; selection="horizont1_bank"; axis="axis_horizont1_bank"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad +360"; angle1="rad -360"; }; class copip { type="hide"; source="HideSlingFeed"; selection="copip"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip1 { type="hide"; source="HidePilotMFD"; selection="copip1"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class copip2 { type="hide"; source="HideGunMFD"; selection="copip2"; maxValue=1; minValue=0; hideValue=0; unhideValue=1; }; class FormationLights : Rotation { type="hide"; source="user"; selection="Lights_green"; minValue = 0.0; maxValue = 1.0; HideValue = 0.5; }; class Horizont1_Pitch { type="rotation"; source="horizonDive"; selection="horizont1_pitch"; axis="axis_horizont1_pitch"; memory=1; minValue=-6.283190; maxValue=6.283190; angle0=-6.283190; angle1=6.283190; }; class Horizont2_Dive { type="translation"; source="horizonDive"; selection="horizont2pilot"; axis="axis_horizont2vert"; memory=1; minValue=-1.000000; maxValue=1.000000; offset0=-0.30000; offset1=0.30000; }; class Horizont2_Bank { type="rotation"; source="horizonBank"; selection="horizont2pilot"; axis="axis_horizont2pilot"; memory=1; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class IndicatorRPM: IndicatorRPM { angle1="rad -350"; }; class IndicatorRPM2: IndicatorRPM2 { angle1="rad -235"; }; class Horizon2_Bank_B: Horizont2_Bank { selection="horizont2pilot_b"; }; class Horizont3_Dive: Horizont2_Dive { selection="horizont3stred"; axis="axis_horizont3vert"; }; class Horizont3_Bank: Horizont2_Bank { selection="horizont3stred"; axis="axis_horizont3stred"; }; class Horizon3_Bank_B: Horizont3_Bank { selection="horizont3stred_b"; }; class IndicatorFuel: Rotation { source="Fuel"; selection="fuel"; axis="axis_fuel"; memory=1; minValue=0.000000; maxValue=1.000000; angle0=0.000000; angle1=-5.1; }; class Monitors_on { type = "hide"; source = "rpm"; selection = "displays"; sourceAddress = "mirror"; minValue = -1.5; maxValue = 0; hideValue = 0.99; }; class IndicatorCompass3: IndicatorCompass { selection="compass3"; axis="axis_compass3"; }; class IndicatorCompass4: IndicatorCompass { selection="compass4"; axis="axis_compass4"; }; //------------------------------------- BUDIKY END -------------------------------------- class elevator: Rotation { source="speed"; selection="elevator"; axis="elevator_axis"; minValue=42; maxValue=10; angle0=-0.523599; angle1=0.000000; }; class PositionLights { type = hide; source = collisionLights; selection = "PositionLights"; minValue = 0.0; maxValue = 1.0; hideValue = 0.0; unHideValue = 0.5; }; class CollisionLight_Red_blinking: PositionLights { source = CollisionLightRed_source; selection = "CollisionLight_Red"; }; class CollisionLight_White_blinking: PositionLights { source = CollisionLightWhite_source; selection = "CollisionLight_White"; }; class gear1 { type="rotation"; source="altSurface"; selection="gear1"; axis="gear1_axis"; memory=1; minValue=0.000000; maxValue=0.300000; angle0=0; angle1=-0.4; }; class gear2 { type="translation"; source="altSurface"; selection="gear2"; axis="gear2_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=-0.4; }; class MainTurret { type="rotation"; source="mainTurret"; selection="OtocVez"; axis="OsaVeze"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Turret_2: MainTurret { source="Turret_2"; selection="otocvez_1"; axis="OsaVeze_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MainGun: MainTurret { source="mainGun"; selection="OtocHlaven"; axis="OsaHlavne"; angle0="rad (-360)"; angle1="rad (+360)"; }; class Gun_2: MainGun { source="Gun_2"; selection="otochlaven_1"; axis="OsaHlavne_1"; angle0="rad (-360)"; angle1="rad (+360)"; }; class MachineGun: Rotation { selection="gatling_1"; axis="gatling_1_axis"; angle1="-600 * 3.141592654"; source="gatling_1"; }; class MachineGun_1: MachineGun { selection="gatling_2"; axis="gatling_2_axis"; source="gatling_2"; }; class otocvez_damage:damageHide { selection="otocvez"; }; class otocvez_1_damage: otocvez_damage { selection="otocvez_1"; }; class muzzleFlashROT { type="rotationZ"; source="Cannon_End"; sourceAddress="loop"; selection="muzzleFlash"; axis=""; centerFirstVertex=true; minValue=0; maxValue=4; angle0="rad 0"; angle1="rad 360"; }; class hidePG_1 { type = "hide"; selection = "rocketB1"; animPeriod=0; source="Missiles_revolving"; sourceAddress="mirror"; minValue=-1.000000; maxValue= 0.000000; hideValue=(11/12)+0.0000001; }; class hidePG_2: hidePG_1 { selection = "rocketB2"; hideValue=(10/12)+0.0000001; }; class hidePG_3: hidePG_1 { selection = "rocketB3"; hideValue=(9/12)+0.0000001; }; class hidePG_4: hidePG_1 { selection = "rocketB4"; hideValue=(8/12)+0.0000001; }; class hidePG_5: hidePG_1 { selection = "rocketB5"; hideValue=(7/12)+0.0000001; }; class hidePG_6: hidePG_1 { selection = "rocketB6"; hideValue=(6/12)+0.0000001; }; class hidePG_7: hidePG_1 { selection = "rocketB7"; hideValue=(5/12)+0.0000001; }; class hidePG_8: hidePG_1 { selection = "rocketB8"; hideValue=(4/12)+0.0000001; }; class hidePG_9: hidePG_1 { selection = "rocketB9"; hideValue=(3/12)+0.0000001; }; class hidePG_10: hidePG_1 { selection = "rocketB10"; hideValue=(2/12)+0.0000001; }; class hidePG_11: hidePG_1 { selection = "rocketB11"; hideValue=(1/12)+0.0000001; }; class hidePG_12: hidePG_1 { selection = "rocketB12"; hideValue=(0/12)+0.0000001; }; class hideHF_1: hidePG_1 { selection = "HF1"; hideValue=(3/4)+0.0000001; }; class hideHF_2: hidePG_1 { selection = "HF2"; hideValue=(2/4)+0.0000001; }; class hideHF_3: hidePG_1 { selection = "HF3"; hideValue=(1/4)+0.0000001; }; class hideHF_4: hidePG_1 { selection = "HF4"; hideValue=(0/4)+0.0000001; }; #define STICK_ANGLE (rad 8) class stick_pilot_dive_01 // cyclic { type = "rotationX"; source = "cyclicForward"; axis = "stick_pilot_joint"; selection = "stick_pilot"; minValue = -0.499999; maxValue = 0.499999; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_dive_02: stick_pilot_dive_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_03: stick_pilot_dive_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_dive_04: stick_pilot_dive_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_dive_05: stick_pilot_dive_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_01: stick_pilot_dive_01 { type = "rotationZ"; source = "cyclicAside"; angle0 = STICK_ANGLE / 3; angle1 = - STICK_ANGLE / 3; }; class stick_pilot_bank_02: stick_pilot_bank_01 {minValue = -0.849999; maxValue = -0.5; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_03: stick_pilot_bank_01 {minValue = -1; maxValue = -0.85; angle0 = STICK_ANGLE / 3; angle1 = 0;}; class stick_pilot_bank_04: stick_pilot_bank_01 {minValue = 0.5; maxValue = 0.849999; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_pilot_bank_05: stick_pilot_bank_01 {minValue = 0.85; maxValue = 1; angle0 = 0; angle1 = - STICK_ANGLE / 3;}; class stick_copilot_dive01: stick_pilot_dive_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive02: stick_pilot_dive_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive03: stick_pilot_dive_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive04: stick_pilot_dive_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_dive05: stick_pilot_dive_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank01: stick_pilot_bank_01 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank02: stick_pilot_bank_02 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank03: stick_pilot_bank_03 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank04: stick_pilot_bank_04 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class stick_copilot_bank05: stick_pilot_bank_05 {selection = "stick_copilot"; axis = "stick_copilot_joint";}; class lever_pilot: rotation { source = "collectiveRTD"; selection = "lever_pilot"; axis = "lever_pilot_axis"; angle0 = "rad -3"; angle1 = "rad 12"; }; class lever_copilot: lever_pilot {selection = "lever_copilot"; axis = "lever_copilot_axis";}; class ObsTurret { type="rotationY"; source="ObsTurret"; selection="turret"; axis="turret_axis"; animPeriod=0; minValue="rad -360"; maxValue="rad +360"; angle0="rad -360"; angle1="rad +360"; }; class ObsGun:ObsTurret { type="rotationX"; source="ObsGun"; selection="gun"; axis="gun_axis"; }; class FWheel { type="rotation"; source="gear"; selection="predni kolo"; axis="osa predniho kola"; minValue=-1; maxValue=1; angle0="rad -104.4"; angle1="rad 104.4"; }; class LWheel: FWheel { selection="levy kolo"; axis="osa leveho kola"; angle0="rad -81"; angle1="rad 81"; }; class RWheel: LWheel { selection="pravy kolo"; axis="osa praveho kola"; }; class FWheelRot { type="rotationX"; source="wheel"; selection="predni kolo rot"; axis="predni kolo rot"; memory="false"; minValue=0; maxValue=2; sourceAddress="loop"; angle0=0; angle1="-rad 360"; }; class LWheelRot: FWheelRot { selection="levy kolo rot"; axis="levy kolo rot"; minValue=0; maxValue=2.300000; }; class RWheelRot: LWheelRot { selection="pravy kolo rot"; axis="pravy kolo rot"; }; }; }; };