Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 43.53 KB | None | 0 0
  1. #define TEast 0
  2. #define TWest 1
  3. #define TGuerrila 2
  4. #define TCivilian 3
  5. #define TSideUnknown 4
  6. #define TEnemy 5
  7. #define TFriendly 6
  8. #define TLogic 7
  9.  
  10. #define true 1
  11. #define false 0
  12.  
  13. #define private 0
  14. #define protected 1
  15. #define public 2
  16.  
  17. class CfgPatches
  18. {
  19.     class FIR_AV8B_F
  20.     {
  21.         units[] = {"SG_AV8B","SG_AV8B_NA"};
  22.         weapons[] = {};
  23.         requiredVersion = 1.0;
  24.         requiredAddons[] = {};
  25.     };
  26. };
  27.  
  28.  
  29. #include "gui.hpp"
  30. #include "effect.hpp"
  31.  
  32.  
  33.  
  34. class CfgMovesBasic
  35. {
  36.     class DefaultDie;
  37.     class ManActions
  38.     {
  39.         FIR_AV8B_Pilot = "FIR_AV8B_Pilot";
  40.     };
  41. };
  42.  
  43. class CfgMovesMaleSdr: CfgMovesBasic
  44. {
  45.     skeletonName = "OFP2_ManSkeleton";
  46.     gestures = "CfgGesturesMale";
  47.     class States
  48.     {
  49.         class pilot_plane_cas_01;
  50.         class FIR_AV8B_Pilot: pilot_plane_cas_01
  51.         {
  52.             leftHandIKCurve[] = {1};
  53.             rightHandIKCurve[] = {1};  
  54.             file = "FIR_AV8B\anim\AV8B_Pilot.rtm";
  55.             interpolateTo[] = {KIA_FIR_AV8B_Pilot,1};
  56.             leaning = "empty";
  57.         };
  58.         class KIA_FIR_AV8B_Pilot : DefaultDie
  59.         {
  60.             actions = "DeadActions";
  61.             speed = 0.5;
  62.             looped = "false";
  63.             terminal = true;
  64.             file = "FIR_AV8B\anim\KIA_AV8B_Pilot.rtm";
  65.             connectTo[] = {"DeadState", 0.1};
  66.             leaning = "empty";
  67.         };
  68.     };
  69. };
  70.  
  71.  
  72. //#include "\a3\3DEN\UI\macros.inc"
  73. class ctrlCombo; // external
  74. class SensorTemplateActiveRadar;
  75. class SensorTemplateAntiRadiation;
  76. class SensorTemplateIR;
  77. class SensorTemplateLaser;
  78. class SensorTemplateMan;
  79. class SensorTemplateDataLink;
  80. class SensorTemplateNV;
  81. class SensorTemplatePassiveRadar;
  82. class SensorTemplateVisual;
  83. class DefaultVehicleSystemsDisplayManagerLeft
  84. {
  85.     class components;
  86. };
  87. class DefaultVehicleSystemsDisplayManagerRight
  88. {
  89.     class components;
  90. };
  91. class VehicleSystemsTemplateLeftPilot: DefaultVehicleSystemsDisplayManagerLeft
  92. {
  93.     class Components;
  94. };
  95. class VehicleSystemsTemplateRightPilot: DefaultVehicleSystemsDisplayManagerRight
  96. {
  97.     class Components;
  98. };
  99. class VehicleSystemsTemplateLeftGunner: DefaultVehicleSystemsDisplayManagerLeft
  100. {
  101.     class Components;
  102. };
  103. class VehicleSystemsTemplateRightGunner: DefaultVehicleSystemsDisplayManagerRight
  104. {
  105.     class Components;
  106. };
  107. class CfgVehicles
  108. {
  109.     class thingX;
  110.     class Motorcycle;  
  111.     class Air ;
  112.     class Plane : Air
  113.     {
  114.         class NewTurret ;
  115.         class ViewPilot ;
  116.         class HitPoints
  117.         {
  118.             class HitHull;
  119.         };
  120.     };
  121.     class Plane_Base_F : Plane
  122.     {
  123.         class AnimationSources;
  124.         class Components;      
  125.     };
  126.     class Plane_Fighter_03_base_F : Plane_Base_F{};
  127.     class sg_av8b_base: Plane_Fighter_03_base_F
  128.     {      
  129.         memoryPointGun = "kulomet";    
  130.         selectionFireAnim = "zasleh";
  131.         simulation="airplaneX";
  132.         vtol = 2;
  133.         scope = 1;
  134.         model = "\FIR_AV8B\FIR_AV8B";
  135.         displayName = "AV-8B Harrier II Plus";
  136.         crew = "RHSUSF_Airforce_JETPILOT";
  137.         icon = "\FIR_AV8B\icon\icomap_av8b_ca.paa";
  138.         picture = "\FIR_AV8B\icon\av8b_ca.paa";
  139.         side = 1;
  140.         faction = "rhs_faction_usaf";
  141.         driverLeftHandAnimName = "throttle";  
  142.         driverRightHandAnimName = "stick";  
  143.         driverleftleganimname = "pedal";
  144.         driverrightleganimname = "pedal";
  145.         weapons[] = {};
  146.         magazines[] = {};      
  147.         landingSpeed = 200;
  148.         insideSoundCoef = 0.2;
  149.         destrType = "DestructWreck";
  150.         driveraction = "FIR_AV8B_Pilot";
  151.         hiddenselections[]= {"camo1","camo2","cam_tracking","insignia","decal_nose","decal_wing","decal_tail","mfd_overlay","mfd_overlay2","tad","mirror_1_tex","mirror_2_tex","mirror_3_tex"};
  152.         hiddenselectionstextures[] = {"FIR_AV8B\skin\standard\body_co.paa","FIR_AV8B\skin\standard\wing_co.paa","",""};
  153.         driverCanEject = false;    
  154.         extCameraPosition[] = {0.0,3.0,-20.0};         
  155.         class ADESData
  156.         {
  157.             ADESEnabled = 1;       
  158.             NumberEnabled = 0;
  159.             NumberList[] = {"num_1","num_2","num_3"};
  160.             EmblemEnabled = 1;
  161.             KillmarkEnabled = 0;
  162.             NameEnabled = 0;           
  163.             NameType = "AF_Single";
  164.         };                 
  165.         /*
  166.         class AMSData
  167.         {
  168.             AMSEnabled = 1;                                
  169.             DialogClass= "AV8B_GUI";
  170.             AircraftBase = "SG_AV8B_Base";
  171.             CustomPreset = "FIR_AV8B_CustomPreset_list";
  172.             CustomPresetAttachment = "FIR_AV8B_CustomPreset_list_attachment";
  173.             presetNumber = 2113;
  174.             EditNumber = 1400;
  175.             ListboxArray[] = {0000,2101,2102,2103,2104,2105,2106,2107,2110};
  176.             loadout_scriptenabled = 0;                     
  177.             loadout_script = "";
  178.             loadout_pre = "FIR_AV8B\sqs\Loadout\AV8B_Loadout_Pre.sqf";
  179.             loadout_apply = "FIR_AirWeaponSystem_US\Script\AMS\AMS_Loadout_Apply.sqf";
  180.             loadout_post = "FIR_AV8B\sqs\Loadout\AV8B_Loadout_Post.sqf";
  181.             CustomFuelEnabled = 1;
  182.             CustomFuelScript = "FIR_AV8B\sqs\Loadout\AV8B_Refuel.sqf";
  183.             CustomLoadoutScriptEnabled = 0;
  184.             CustomLoadoutScript = "";          
  185.         };
  186.         */
  187.         class ARSData
  188.         {
  189.             ARSEnabled = 1;                                
  190.             ARS_CBARS_Offset[] = {1.2,-27.8,-3.5};                 
  191.             ARS_Point = "refuel_probe";
  192.             ARS_Type = "probe";
  193.         };                 
  194.         class EjectionSystem
  195.         {
  196.             EjectionSeatEnabled = 1;                                        //enable advanced ejection system
  197.             EjectionDual = 0;                                           //currently only single seat aircraft ejectiion supported (to do for latter)
  198.             EjectionSeatClass = "fir_av8b_ejection_seat";                               //class name of ejector seat to use (separate vehicle/object)
  199.             CanopyClass = "fir_av8b_canopy";                                //class name of canopy to use (separate vehicle/object)
  200.             EjectionSeatHideAnim = "ejection_seat_hide";                                //name of the hide animation that will hide ejector seat mesh in plane
  201.             EjectionSeatRailAnim = "";                              //name of the animation that will be played to start a smooth ejection motion out of cockpit
  202.             CanopyHideAnim = "canopy_hide";                                     //name of the hide animation that will hide canopy mesh in plane
  203.             EjectionSeatPos = "eject_pos";                                      //position memory point whwre to attach ejector seat
  204.             CanopyPos = "eject_pos";                                        //position memory point where to attach dummy canopy
  205.             EjectionSoundExt = "Plane_Fighter_01_ejection_ext_sound";                       //sound to play when ejection trigered (external)
  206.             EjectionSoundInt = "Plane_Fighter_01_ejection_in_sound";                        //sound to play when ejection trigered (in-ternal)
  207.             EjectionParachute = "Steerable_Parachute_F";                                //class name parachute used in ejection
  208.             EjectionSeatForce = 50;                                         //ejection seat blast force
  209.             CanopyForce = 30;                                           //canopy bast force
  210.         };             
  211.        
  212.         /*
  213.         class Attributes
  214.         {
  215.             class AV8B_ReplacePilot
  216.             {
  217.                  displayName = "Replace Pilot";
  218.                  tooltip = "replace the pilot";
  219.                  property = "AV8B_ReplacePilotID";
  220.                  control = "FIR_AV8B_PilotCombo";
  221.                  expression = "_this setVariable [""AV8B_ReplacePilot"", _value]; [_this, _value,'pilot'] execVM 'FIR_AV8B\sqs\init\replace_pilot.sqf';";
  222.                  defaultValue = "no";
  223.                  typeName = "STRING";
  224.             }; 
  225.         };
  226.         */
  227.         class RenderTargets
  228.         {
  229.             class TAD_VIEW
  230.             {
  231.                 renderTarget = "rendertarget1";
  232.                 class CameraView1
  233.                 {
  234.                     pointPosition       = "tad_map_pos";
  235.                     pointDirection      = "tad_map_dir";
  236.                     renderQuality       = 2;
  237.                     renderVisionMode    = 0;
  238.                     fov             = 0.2;
  239.                 };         
  240.             };         
  241.         };                     
  242.         class Components: Components
  243.         {
  244.             class VehicleSystemsDisplayManagerComponentLeft: DefaultVehicleSystemsDisplayManagerLeft
  245.             {
  246.                 defaultDisplay = "EmptyDisplay";
  247.                 class Components
  248.                 {
  249.                     class MissileDisplay
  250.                     {
  251.                         componentType = "TransportFeedDisplayComponent";
  252.                         source = "Missile";
  253.                     };
  254.                     class SensorsDisplay
  255.                     {
  256.                         componentType = "SensorsDisplayComponent";
  257.                         range[] = {16000,8000,4000,2000};
  258.                         resource = "RscCustomInfoSensors";
  259.                     };
  260.                     class CrewDisplay
  261.                     {
  262.                         componentType = "CrewDisplayComponent";
  263.                         resource = "RscCustomInfoCrew";
  264.                     };
  265.                     class MinimapDisplay
  266.                     {
  267.                         componentType = "MinimapDisplayComponent";
  268.                         resource = "RscCustomInfoMiniMap";
  269.                     };
  270.                     class EmptyDisplay
  271.                     {
  272.                         componentType = "EmptyDisplayComponent";
  273.                     };
  274.                 };
  275.             };
  276.             class VehicleSystemsDisplayManagerComponentRight: DefaultVehicleSystemsDisplayManagerRight
  277.             {
  278.                 defaultDisplay = "SensorsDisplay";
  279.                 class Components
  280.                 {
  281.                     class MissileDisplay
  282.                     {
  283.                         componentType = "TransportFeedDisplayComponent";
  284.                         source = "Missile";
  285.                     };
  286.                     class SensorsDisplay
  287.                     {
  288.                         componentType = "SensorsDisplayComponent";
  289.                         range[] = {16000,8000,4000,2000};
  290.                         resource = "RscCustomInfoSensors";
  291.                     };
  292.                     class CrewDisplay
  293.                     {
  294.                         componentType = "CrewDisplayComponent";
  295.                         resource = "RscCustomInfoCrew";
  296.                     };
  297.                     class MinimapDisplay
  298.                     {
  299.                         componentType = "MinimapDisplayComponent";
  300.                         resource = "RscCustomInfoMiniMap";
  301.                     };
  302.                     class EmptyDisplay
  303.                     {
  304.                         componentType = "EmptyDisplayComponent";
  305.                     };
  306.                 };
  307.             };
  308.             class SensorsManagerComponent
  309.             {
  310.                 class Components
  311.                 {
  312.                     class IRSensorComponent: SensorTemplateIR
  313.                     {
  314.                         aimDown = 0;
  315.                         angleRangeHorizontal = 360;
  316.                         angleRangeVertical = 360;
  317.                         typeRecognitionDistance = 1500;
  318.                         class AirTarget
  319.                         {
  320.                             maxRange = 3000;
  321.                             minRange = 50;
  322.                             objectDistanceLimitCoef = 1;
  323.                             viewDistanceLimitCoef = 1;
  324.                         };
  325.                         class GroundTarget
  326.                         {
  327.                             maxRange = 3000;
  328.                             minRange = 50;
  329.                             objectDistanceLimitCoef = 1;
  330.                             viewDistanceLimitCoef = 1;
  331.                         };
  332.                     };
  333.                     class PassiveRadarComponent: SensorTemplatePassiveRadar{};
  334.                     class ActiveRadarComponent: SensorTemplateActiveRadar
  335.                     {
  336.                         aimDown = 0;
  337.                         angleRangeHorizontal = 90;
  338.                         angleRangeVertical = 90;
  339.                         typeRecognitionDistance = 7000;
  340.                         groundNoiseDistanceCoef = -1;
  341.                         class AirTarget
  342.                         {
  343.                             maxRange = 9000;
  344.                             minRange = 0;
  345.                             objectDistanceLimitCoef = -1;
  346.                             viewDistanceLimitCoef = -1;
  347.                         };
  348.                         class GroundTarget
  349.                         {
  350.                             maxRange = 9000;
  351.                             minRange = 0;
  352.                             objectDistanceLimitCoef = -1;
  353.                             viewDistanceLimitCoef = -1;
  354.                         };
  355.                     };
  356.                     class NVSensorComponent: SensorTemplateNV
  357.                     {
  358.                         aimDown = 0;
  359.                         angleRangeHorizontal = 360;
  360.                         angleRangeVertical = 360;
  361.                         typeRecognitionDistance = 1500;
  362.                         class AirTarget
  363.                         {
  364.                             maxRange = 3000;
  365.                             minRange = 50;
  366.                             objectDistanceLimitCoef = 1;
  367.                             viewDistanceLimitCoef = 1;
  368.                         };
  369.                         class GroundTarget
  370.                         {
  371.                             maxRange = 3000;
  372.                             minRange = 50;
  373.                             objectDistanceLimitCoef = 1;
  374.                             viewDistanceLimitCoef = 1;
  375.                         };
  376.                     };
  377.                     class LaserSensorComponent: SensorTemplateLaser{};
  378.                 };
  379.             };
  380.             class TransportPylonsComponent
  381.             {
  382.                 class Presets
  383.                 {
  384.                     class Empty
  385.                     {
  386.                         displayName = "Empty";
  387.                         dataname = "Empty";
  388.                         attachment[] = {};
  389.                     };         
  390.                 };                         
  391.                 UIPicture = "\FIR_AV8B\ui\av8b_dynamic_ca.paa";
  392.                 class pylons
  393.                 {
  394.                     class pylons1
  395.                     {
  396.                         hardpoints[] = {"B_MISSILE_PYLON","B_BOMB_PYLON"};
  397.                         attachment = "RHS_HP_AIM9_2x";
  398.                         priority = 4;
  399.                         maxweight = 500;
  400.                         UIposition[] = {0.5,0.35};
  401.                     };
  402.                     class pylons2: pylons1
  403.                     {
  404.                        
  405.                         priority = 3;
  406.                         attachment = "rhs_mag_ANALQ131";
  407.                         maxweight = 1050;
  408.                         UIposition[] = {0.45,0.4};
  409.                     };
  410.                     class pylons3: pylons1
  411.                     {
  412.                        
  413.                         priority = 2;
  414.                         attachment = "rhs_mag_gbu12";
  415.                         maxweight = 1050;
  416.                         UIposition[] = {0.4,0.45};
  417.                     };
  418.                     class pylons4: pylons3
  419.                     {
  420.                        
  421.                         priority = 2;
  422.                         mirroredMissilePos = 3;
  423.                         UIposition[] = {0.2,0.45};
  424.                     };
  425.                     class pylons5: pylons2
  426.                     {
  427.                        
  428.                         priority = 3;
  429.                         mirroredMissilePos = 2;
  430.                         UIposition[] = {0.15,0.4};
  431.                     };
  432.                     class pylons6: pylons1
  433.                     {
  434.                    
  435.                         UIposition[] = {0.1,0.35};
  436.                         priority = 4;
  437.                         mirroredMissilePos = 1;
  438.                     };
  439.                     /*
  440.                     class pylons7: pylons1
  441.                     {
  442.                         hardpoints[] = {"FIR_AV8B_Under_HP","FIR_MISC"};
  443.                         priority = 1;
  444.                         UIposition[] = {0.3,0.35};
  445.                         attachment = "FIR_Litening_std_P_1rnd_M";
  446.                     };                 
  447.                     class pylons8: pylons1
  448.                     {
  449.                         hardpoints[] = {"FIR_AV8B_Misc","FIR_MISC"};
  450.                         priority = 1;
  451.                         UIposition[] = {0.3,0.55};
  452.                         attachment = "FIR_Gunpod_Nomodel_P_1rnd_M";
  453.                     };
  454.                     */                     
  455.                 };
  456.             };
  457.         }; 
  458.         AWS_MFD_OVERLAY_TGP = "\FIR_AV8B\cockpit\MFD_TGP.paa";
  459.         AWS_MFD_OVERLAY_TAD = "\FIR_AV8B\cockpit\MFD_HSD.paa";     
  460.         acceleration = 200;
  461.         driveoncomponent[] = {"wheel_1", "wheel_2", "wheel_3_1","wheel_3_2"};
  462.         camouflage = 8;
  463.         audible = 10;
  464.         accuracy = 0.2;
  465.         memoryPointCM[] = {"flare_launcher1","flare_launcher2","flare_launcher3"};
  466.         memoryPointCMDir[] = {"flare_launcher1_dir","flare_launcher2_dir","flare_launcher3_dir"};
  467.         htMin = 60;
  468.         htMax = 1800;
  469.         afMax = 200;
  470.         mfMax = 100;
  471.         mFact = 0;
  472.         tBody = 0;
  473.         radartype = 4;
  474.         LockDetectionSystem = "2 + 4 + 8";
  475.         incomingMissileDetectionSystem = 16;
  476.         maxSpeed = 1100;
  477.         armor = 100;
  478.         armorStructured = 1;
  479.         envelope[] = {0.000000, 0.500000, 2.500000, 4.8, 6.000000, 7.00000, 7.50000, 7.500000, 7.500000, 7.000000, 6.400000, 5.600000, 2.100000, 1.700000, 1.400000,1.350000,1.300000,1.150000, 0};
  480.         // envelope[] = {0.000000, 0.700000, 2.900000, 5, 7.000000, 8.000000, 8.500000, 8.900000, 9.000000, 6.600000, 4.200000, 3.600000, 2.100000, 1.700000, 1.400000,1.350000,1.300000,1.150000, 0};
  481.         // draconicForceXCoef = 3.8;
  482.         // draconicForceYCoef = 3.5;
  483.         // draconicForceZCoef = 3.5;
  484.         // draconicTorqueXCoef = 3.0;
  485.         // draconicTorqueYCoef = 3.0;
  486.         draconicForceXCoef = 7;
  487.         draconicForceYCoef = 8.5;
  488.         draconicForceZCoef = 3;
  489.         draconicTorqueXCoef[] = {4.6, 5.5, 6.2, 7, 7.7, 8.3, 9, 9.1, 9.2, 9.2, 9.2};
  490.         draconicTorqueYCoef[] = {6.8, 5.5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3};
  491.         angleOfIndicence=0.052359872;      
  492.  
  493.         elevatorCoef[] = { 
  494.             0,      // At 0 % of maxSpeed, this is the influence of the aileron
  495.             0.8,    // 12.5 %
  496.             0.9,    // 25 %
  497.             1.0,    // 37.5 %
  498.             1.1,    // 50 %
  499.             1.2,    // 62.5 %
  500.             1.2,    // 75 %
  501.             1.3,    // 87.5 %
  502.             1.3,    // 100 %
  503.             1.3,    // 112.5 %
  504.             1.4,    // 125 %
  505.             1.4,    // 137.5 %
  506.             1.4     // 150 %
  507.         };         
  508.  
  509.         aileronCoef[] = {0.4, 0.8, 0.9, 1.0, 1.1, 1.2, 1.2 , 1.3, 1.3 , 1.3, 1.4 , 1.4 ,1.4,1.3,1.2};      
  510.         rudderCoef[] = {0.5, 1.8, 2.6, 2.75, 2.8, 2.85, 2.9, 2.95, 2.98, 3.01, 2.7, 1.1, 0.9, 0.7, 0.5, 0.3};      
  511.         irScanRangeMin = 10;
  512.         irScanRangeMax = 16000;
  513.         irScanToEyeFactor = 8;
  514.         fuelCapacity = 5000;
  515.         aileronSensitivity = 1.0;
  516.         elevatorSensitivity = 0.9;
  517.         wheelSteeringSensitivity = 1.5;
  518.         maxOmega = 2000;
  519.         class Wheels
  520.         {
  521.             class Wheel_1
  522.             {
  523.                 boneName = "Wheel_1";
  524.                 steering = 1;
  525.                 side = "left";
  526.                 center = "Wheel_1_center";
  527.                 boundary = "Wheel_1_rim";
  528.                 width = 0.16;
  529.                 mass = 150;
  530.                 MOI = 4;
  531.                 dampingRate = 0.15;
  532.                 dampingRateDamaged = 1;
  533.                 dampingRateDestroyed = 1000;
  534.                 maxBrakeTorque = 6000;
  535.                 maxHandBrakeTorque = 6000;
  536.                 suspTravelDirection[] = {0,-1,0};
  537.                 suspForceAppPointOffset = "Wheel_1_center";
  538.                 tireForceAppPointOffset = "Wheel_1_center";
  539.                 // maxCompression = 0.1;
  540.                 // maxDroop = 0.4;             
  541.                 maxCompression = 0.1;
  542.                 maxDroop = 0.5;                            
  543.                 sprungMass = 5334;
  544.                 springStrength = 1200234;
  545.                 springDamperRate = 128025;     
  546.                 longitudinalStiffnessPerUnitGravity = 4000;
  547.                 latStiffX = 25;
  548.                 latStiffY = 180;
  549.                 frictionVsSlipGraph[] = {{0,1},{0.5,1},{1,1}};
  550.             };
  551.             class Wheel_2: Wheel_1
  552.             {
  553.                 boneName = "Wheel_2";
  554.                 steering = 0;
  555.                 center = "Wheel_2_center";
  556.                 boundary = "Wheel_2_rim";
  557.                 width = 0.28;  
  558.                 maxCompression = 0.1;
  559.                 maxDroop = 0.5;                
  560.                 springDamperRate = 41221;
  561.                 sprungMass = 2134;
  562.                 springStrength = 1580200;
  563.                 suspForceAppPointOffset = "Wheel_2_center";
  564.                 tireForceAppPointOffset = "Wheel_2_center";
  565.             };
  566.             class Wheel_3_1: Wheel_2
  567.             {
  568.                 boneName = "Wheel_3_1";
  569.                 side = "left";     
  570.                 maxCompression = 0.1;
  571.                 maxDroop = 0.5;        
  572.                 center = "Wheel_3_1_center";
  573.                 boundary = "Wheel_3_1_rim";
  574.                 suspForceAppPointOffset = "Wheel_3_1_center";
  575.                 tireForceAppPointOffset = "Wheel_3_1_center";
  576.             };
  577.             class Wheel_3_2: Wheel_2
  578.             {
  579.                 boneName = "Wheel_3_2";
  580.                 side = "right";
  581.                 maxCompression = 0.1;
  582.                 maxDroop = 0.5;        
  583.                 center = "Wheel_3_2_center";
  584.                 boundary = "Wheel_3_2_rim";
  585.                 suspForceAppPointOffset = "Wheel_3_2_center";
  586.                 tireForceAppPointOffset = "Wheel_3_2_center";
  587.             };         
  588.        
  589.         };             
  590.         laserScanner = true;
  591.         memoryPointLRocket = "P Raketa";
  592.         memoryPointRRocket = "L Raketa";    
  593.         cost = 10000000;
  594.         type = "VAir";
  595.         threat[] = {0.2, 0.7, 0.9};
  596.         class camShakeGForce
  597.         {
  598.             power = 1;
  599.             frequency = 20;
  600.             distance = 0;
  601.             minSpeed = 1;
  602.         };
  603.         minGForce = 0.3;
  604.         maxGForce = 10;
  605.         gForceShakeAttenuation = 0.5;
  606.         defaultUserMFDvalues[] = {0,0,0.15,1,0.15,1};          
  607.         #include "cfg_HUD_HMCS_Kimi_F16C.hpp"
  608.         #include "UserSource.hpp"
  609.         #include "UserAction.hpp"
  610.         class WingVortices
  611.         {
  612.             class WingTipLeft
  613.             {
  614.                 effectName = "FIR_WingVortices";
  615.                 position = "cerveny pozicni";
  616.             };
  617.            
  618.             class WingTipRight
  619.             {
  620.                 effectName = "FIR_WingVortices";
  621.                 position = "zeleny pozicni";
  622.             };
  623.            
  624.             class BodyLeft_inner
  625.             {
  626.                 effectName = "FIR_BodyVortices";
  627.                 position = "body_vapour_L_S";
  628.             };
  629.            
  630.             class BodyRight_inner
  631.             {
  632.                 effectName = "FIR_BodyVortices";
  633.                 position = "body_vapour_R_S";
  634.             };
  635.         };
  636.         class Exhausts
  637.         {
  638.             class Exhaust1
  639.             {
  640.                 direction = "exu1_dir";
  641.                 effect = "fir_ExhaustsEffectPlane_big";
  642.                 position = "exu1";
  643.             };
  644.             class Exhaust2
  645.             {
  646.                 direction = "exu2_dir";
  647.                 effect = "fir_ExhaustsEffectPlane_big";
  648.                 position = "exu2";
  649.             };
  650.         };
  651.         class Reflectors
  652.         {
  653.             class Left
  654.             {
  655.             ambient[] = {100, 100, 100, 0};
  656.             color[] = {7000, 7500, 10000, 1};
  657.             conefadecoef = 10;
  658.             daylight = 0;
  659.             direction = "light_1_dir";
  660.             flaresize = 4;
  661.             hitpoint = "L svetlo";
  662.             innerangle = 20;
  663.             intensity = 50;
  664.             outerangle = 60;
  665.             position = "light_1_pos";
  666.             selection = "L svetlo";
  667.             size = 1;
  668.             useflare = 1;
  669.                 class Attenuation
  670.                 {
  671.                     constant = 0;
  672.                     linear = 0;
  673.                     quadratic = 4;
  674.                     start = 1;
  675.                 };
  676.             };
  677.         };
  678.         class MarkerLights
  679.         {
  680.             class Red_Still_R
  681.             {
  682.                 name = "cerveny pozicni";
  683.                 color[] = {0.3, 0, 0, 1};
  684.                 ambient[] = {0.003, 0.003, 0.003, 1};
  685.                 brightness = 0.05;
  686.                 dayLight = true;
  687.                 blinking = true;
  688.             };
  689.             class Green_Still_L
  690.             {
  691.                 name = "zeleny pozicni";
  692.                 color[] = {0, 0.3, 0, 1};
  693.                 ambient[] = {0.003, 0.003, 0.003, 1};
  694.                 brightness = 0.05;
  695.                 blinking = true;
  696.                 dayLight = true;
  697.             };
  698.             class White_blink_C
  699.             {
  700.                 name = "bily pozicni blik";
  701.                 color[] = {0.7, 0.7, 0.7, 1};
  702.                 ambient[] = {0.003, 0.003, 0.003, 1};
  703.                 brightness = 0.05;
  704.                 blinking = true;
  705.                 dayLight = true;
  706.             };
  707.    
  708.         };
  709.         class pilotCamera    
  710.         {
  711.             class OpticsIn                
  712.             {          
  713.                 class Wide
  714.                 {
  715.                     opticsDisplayName = "WFOV";
  716.                     initAngleX = 0;
  717.                     minAngleX = 0;
  718.                     maxAngleX = 0;
  719.                     initAngleY = 0;
  720.                     minAngleY = 0;
  721.                     maxAngleY = 0;
  722.                     initFov = "(30 / 120)";
  723.                     minFov = "(30 / 120)";
  724.                     maxFov = "(30 / 120)";
  725.                     directionStabilized = 1;
  726.                     visionMode[] = {"Normal","Ti"};
  727.                     thermalMode[] = {0,1};
  728.                     gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  729.                     opticsPPEffects[] = {"OpticsCHAbera2","OpticsBlur2"};
  730.                 };
  731.                 class Medium: Wide
  732.                 {
  733.                     opticsDisplayName = "MFOV";
  734.                     initFov = "(15 / 120)";
  735.                     minFov = "(15 / 120)";
  736.                     maxFov = "(15 / 120)";
  737.                     gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_medium_F.p3d";
  738.                     stabilizedInAxes = 3;
  739.                     directionStabilized = 1;
  740.                     horizontallyStabilized = 1;
  741.                 };
  742.                 class Narrow: Wide
  743.                 {
  744.                     opticsDisplayName = "NFOV";
  745.                     initFov = "(3.75 / 120)";
  746.                     minFov = "(3.75 / 120)";
  747.                     maxFov = "(3.75 / 120)";
  748.                     gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  749.                     stabilizedInAxes = 3;
  750.                     directionStabilized = 1;
  751.                     horizontallyStabilized = 1;
  752.                 };
  753.                 showMiniMapInOptics = 1;
  754.                 showUAVViewInOptics = 0;
  755.                 showSlingLoadManagerInOptics = 0;
  756.             };
  757.             minTurn                 = -360;        
  758.             maxTurn                 = 360;      
  759.             initTurn                = 0;              
  760.             minElev                 = -90;          
  761.             maxElev                 = 90;        
  762.             initElev                = 0;            
  763.             maxXRotSpeed            = 1;          
  764.             maxYRotSpeed            = 1;          
  765.             pilotOpticsShowCursor   = 1;          
  766.             controllable            = true;  
  767.         };
  768.         memoryPointDriverOptics = "pip_pos_0";    
  769.         class eventhandlers
  770.         {
  771.             hit = "";                  
  772.             Init = "[_this select 0] execVM ""\FIR_AV8B\sqs\init\init.sqf"";";
  773.             killed = "_this call BIS_Effects_EH_Killed;";
  774.             fired = "";
  775.         };
  776.         class Damage
  777.         {
  778.             tex[] = {};
  779.             mat[] = {"FIR_AV8B\data\av8b_ext.rvmat", "FIR_AV8B\data\av8b_ext_damage.rvmat", "FIR_AV8B\data\av8b_ext_destruct.rvmat","FIR_AV8B\data\body.rvmat", "FIR_AV8B\data\body_damage.rvmat", "FIR_AV8B\data\body_destruct.rvmat","FIR_AV8B\data\wing.rvmat", "FIR_AV8B\data\wing_damage.rvmat", "FIR_AV8B\data\wing_destruct.rvmat"};
  780.         };
  781.         class Library
  782.         {
  783.             libTextDesc = "USMC Mass-Production STOVL Fighter Aircraft";
  784.         };
  785.     };
  786.     class SG_AV8B: sg_av8b_base
  787.     {
  788.         scope = 2;
  789.         author = "Firewill";
  790.         displayName = "AV-8B Harrier II Plus";
  791.         weapons[] = {"SG_Vacannon_GAU12_veh","SG_CMFlareLauncher_New"};
  792.         magazines[] = {"SG_300Rnd_TE1_Red_Tracer_25mm_GAU12_M","120Rnd_CMFlare_Chaff_Magazine"};       
  793.         hiddenselectionstextures[] = {"FIR_AV8B\skin\standard\body_co.paa","FIR_AV8B\skin\standard\wing_co.paa","",""};                    
  794.     };
  795.     class SG_AV8B_NA_Base : Plane_Fighter_03_base_F
  796.     {      
  797.         memoryPointGun = "kulomet";    
  798.         selectionFireAnim = "zasleh";
  799.         simulation="airplaneX";
  800.         vtol = 2;
  801.         scope = 1;
  802.         model = "\FIR_AV8B\FIR_AV8B_NA";
  803.         displayName = "AV-8B Harrier II N/A";
  804.         crew = "RHSUSF_Airforce_JETPILOT";
  805.         icon = "\FIR_AV8B\icon\icomap_av8b_ca.paa";
  806.         picture = "\FIR_AV8B\icon\av8b_ca.paa";
  807.         side = TWest;
  808.         faction ="BLU_F";
  809.         driverLeftHandAnimName = "throttle";  
  810.         driverRightHandAnimName = "stick";  
  811.         driverleftleganimname = "pedal";
  812.         driverrightleganimname = "pedal";
  813.         weapons[] = {};
  814.         magazines[] = {};      
  815.         landingSpeed = 200;
  816.         insideSoundCoef = 0.2;
  817.         destrType = "DestructWreck";
  818.         driveraction = "FIR_AV8B_Pilot";
  819.         hiddenselections[]= {"camo1","camo2","cam_tracking","insignia","decal_nose","decal_wing","decal_tail","mfd_overlay","mfd_overlay2","tad","mirror_1_tex","mirror_2_tex","mirror_3_tex"};
  820.         hiddenselectionstextures[] = {"FIR_AV8B\skin\standard_NA\body_co.paa","FIR_AV8B\skin\standard_NA\wing_co.paa","",""};
  821.         driverCanEject = false;    
  822.         extCameraPosition[] = {0.0,3.0,-20.0};         
  823.  
  824.         class ADESData
  825.         {
  826.             ADESEnabled = 1;       
  827.             NumberEnabled = 0;
  828.             NumberList[] = {"num_1","num_2","num_3"};
  829.             EmblemEnabled = 1;
  830.             KillmarkEnabled = 0;
  831.             NameEnabled = 0;           
  832.             NameType = "AF_Single";
  833.         };                 
  834.         /*
  835.         class AMSData
  836.         {
  837.             AMSEnabled = 1;                                
  838.             DialogClass= "AV8B_GUI";
  839.             AircraftBase = "SG_AV8B_NA_Base";
  840.             CustomPreset = "FIR_AV8B_CustomPreset_list";
  841.             CustomPresetAttachment = "FIR_AV8B_CustomPreset_list_attachment";
  842.             presetNumber = 2113;
  843.             EditNumber = 1400;
  844.             ListboxArray[] = {0000,2101,2102,2103,2104,2105,2106,2107,2110};
  845.             loadout_scriptenabled = 0;                     
  846.             loadout_script = "";
  847.             loadout_pre = "FIR_AV8B\sqs\Loadout\AV8B_Loadout_Pre.sqf";
  848.             loadout_apply = "FIR_AirWeaponSystem_US\Script\AMS\AMS_Loadout_Apply.sqf";
  849.             loadout_post = "FIR_AV8B\sqs\Loadout\AV8B_Loadout_Post.sqf";
  850.             CustomFuelEnabled = 1;
  851.             CustomFuelScript = "FIR_AV8B\sqs\Loadout\AV8B_Refuel.sqf";
  852.             CustomLoadoutScriptEnabled = 0;
  853.             CustomLoadoutScript = "";          
  854.         };     
  855.         */
  856.         class ARSData
  857.         {
  858.             ARSEnabled = 1;                                
  859.             ARS_CBARS_Offset[] = {1.2,-27.8,-3.5};                 
  860.             ARS_Point = "refuel_probe";
  861.             ARS_Type = "probe";
  862.         };                         
  863.         class EjectionSystem
  864.         {
  865.             EjectionSeatEnabled = 1;                                        //enable advanced ejection system
  866.             EjectionDual = 0;                                           //currently only single seat aircraft ejectiion supported (to do for latter)
  867.             EjectionSeatClass = "fir_av8b_ejection_seat";                               //class name of ejector seat to use (separate vehicle/object)
  868.             CanopyClass = "fir_av8b_canopy";                                //class name of canopy to use (separate vehicle/object)
  869.             EjectionSeatHideAnim = "ejection_seat_hide";                                //name of the hide animation that will hide ejector seat mesh in plane
  870.             EjectionSeatRailAnim = "";                              //name of the animation that will be played to start a smooth ejection motion out of cockpit
  871.             CanopyHideAnim = "canopy_hide";                                     //name of the hide animation that will hide canopy mesh in plane
  872.             EjectionSeatPos = "eject_pos";                                      //position memory point whwre to attach ejector seat
  873.             CanopyPos = "eject_pos";                                        //position memory point where to attach dummy canopy
  874.             EjectionSoundExt = "Plane_Fighter_01_ejection_ext_sound";                       //sound to play when ejection trigered (external)
  875.             EjectionSoundInt = "Plane_Fighter_01_ejection_in_sound";                        //sound to play when ejection trigered (in-ternal)
  876.             EjectionParachute = "Steerable_Parachute_F";                                //class name parachute used in ejection
  877.             EjectionSeatForce = 50;                                         //ejection seat blast force
  878.             CanopyForce = 30;                                           //canopy bast force
  879.         };             
  880.        
  881.         /*
  882.         class Attributes
  883.         {
  884.             class AV8B_ReplacePilot
  885.             {
  886.                  displayName = "Replace Pilot";
  887.                  tooltip = "replace the pilot";
  888.                  property = "AV8B_ReplacePilotID";
  889.                  control = "FIR_AV8B_PilotCombo";
  890.                  expression = "_this setVariable [""AV8B_ReplacePilot"", _value]; [_this, _value,'pilot'] execVM 'FIR_AV8B\sqs\init\replace_pilot.sqf';";
  891.                  defaultValue = "no";
  892.                  typeName = "STRING";
  893.             }; 
  894.         };
  895.         */ 
  896.        
  897.             class RenderTargets
  898.             {
  899.                 class TAD_VIEW
  900.                 {
  901.                     renderTarget = "rendertarget1";
  902.                     class CameraView1
  903.                     {
  904.                         pointPosition       = "tad_map_pos";
  905.                         pointDirection      = "tad_map_dir";
  906.                         renderQuality       = 2;
  907.                         renderVisionMode    = 0;
  908.                         fov             = 0.2;
  909.                     };         
  910.                 };         
  911.             };                     
  912.        
  913.        
  914.         class Components: Components
  915.         {
  916.             class VehicleSystemsDisplayManagerComponentLeft: DefaultVehicleSystemsDisplayManagerLeft
  917.             {
  918.                 defaultDisplay = "EmptyDisplay";
  919.                 class Components
  920.                 {
  921.                     class MissileDisplay
  922.                     {
  923.                         componentType = "TransportFeedDisplayComponent";
  924.                         source = "Missile";
  925.                     };
  926.                     class SensorsDisplay
  927.                     {
  928.                         componentType = "SensorsDisplayComponent";
  929.                         range[] = {16000,8000,4000,2000};
  930.                         resource = "RscCustomInfoSensors";
  931.                     };
  932.                     class CrewDisplay
  933.                     {
  934.                         componentType = "CrewDisplayComponent";
  935.                         resource = "RscCustomInfoCrew";
  936.                     };
  937.                     class MinimapDisplay
  938.                     {
  939.                         componentType = "MinimapDisplayComponent";
  940.                         resource = "RscCustomInfoMiniMap";
  941.                     };
  942.                     class EmptyDisplay
  943.                     {
  944.                         componentType = "EmptyDisplayComponent";
  945.                     };
  946.                 };
  947.             };
  948.             class VehicleSystemsDisplayManagerComponentRight: DefaultVehicleSystemsDisplayManagerRight
  949.             {
  950.                 defaultDisplay = "SensorsDisplay";
  951.                 class Components
  952.                 {
  953.                     class MissileDisplay
  954.                     {
  955.                         componentType = "TransportFeedDisplayComponent";
  956.                         source = "Missile";
  957.                     };
  958.                     class SensorsDisplay
  959.                     {
  960.                         componentType = "SensorsDisplayComponent";
  961.                         range[] = {16000,8000,4000,2000};
  962.                         resource = "RscCustomInfoSensors";
  963.                     };
  964.                     class CrewDisplay
  965.                     {
  966.                         componentType = "CrewDisplayComponent";
  967.                         resource = "RscCustomInfoCrew";
  968.                     };
  969.                     class MinimapDisplay
  970.                     {
  971.                         componentType = "MinimapDisplayComponent";
  972.                         resource = "RscCustomInfoMiniMap";
  973.                     };
  974.                     class EmptyDisplay
  975.                     {
  976.                         componentType = "EmptyDisplayComponent";
  977.                     };
  978.                 };
  979.             };
  980.             class SensorsManagerComponent
  981.             {
  982.                 class Components
  983.                 {
  984.                     class IRSensorComponent: SensorTemplateIR
  985.                     {
  986.                         aimDown = 0;
  987.                         angleRangeHorizontal = 360;
  988.                         angleRangeVertical = 360;
  989.                         typeRecognitionDistance = 1500;
  990.                         class AirTarget
  991.                         {
  992.                             maxRange = 3000;
  993.                             minRange = 50;
  994.                             objectDistanceLimitCoef = 1;
  995.                             viewDistanceLimitCoef = 1;
  996.                         };
  997.                         class GroundTarget
  998.                         {
  999.                             maxRange = 3000;
  1000.                             minRange = 50;
  1001.                             objectDistanceLimitCoef = 1;
  1002.                             viewDistanceLimitCoef = 1;
  1003.                         };
  1004.                     };
  1005.                     class PassiveRadarComponent: SensorTemplatePassiveRadar{};
  1006.                     class ActiveRadarComponent: SensorTemplateActiveRadar
  1007.                     {
  1008.                         aimDown = 0;
  1009.                         angleRangeHorizontal = 90;
  1010.                         angleRangeVertical = 90;
  1011.                         typeRecognitionDistance = 7000;
  1012.                         groundNoiseDistanceCoef = -1;
  1013.                         class AirTarget
  1014.                         {
  1015.                             maxRange = 9000;
  1016.                             minRange = 0;
  1017.                             objectDistanceLimitCoef = -1;
  1018.                             viewDistanceLimitCoef = -1;
  1019.                         };
  1020.                         class GroundTarget
  1021.                         {
  1022.                             maxRange = 9000;
  1023.                             minRange = 0;
  1024.                             objectDistanceLimitCoef = -1;
  1025.                             viewDistanceLimitCoef = -1;
  1026.                         };
  1027.                     };
  1028.                     class NVSensorComponent: SensorTemplateNV
  1029.                     {
  1030.                         aimDown = 0;
  1031.                         angleRangeHorizontal = 360;
  1032.                         angleRangeVertical = 360;
  1033.                         typeRecognitionDistance = 1500;
  1034.                         class AirTarget
  1035.                         {
  1036.                             maxRange = 3000;
  1037.                             minRange = 50;
  1038.                             objectDistanceLimitCoef = 1;
  1039.                             viewDistanceLimitCoef = 1;
  1040.                         };
  1041.                         class GroundTarget
  1042.                         {
  1043.                             maxRange = 3000;
  1044.                             minRange = 50;
  1045.                             objectDistanceLimitCoef = 1;
  1046.                             viewDistanceLimitCoef = 1;
  1047.                         };
  1048.                     };
  1049.                     class LaserSensorComponent: SensorTemplateLaser{};
  1050.                 };
  1051.             };
  1052.             class TransportPylonsComponent
  1053.             {
  1054.                 class Presets
  1055.                 {
  1056.                     class Empty
  1057.                     {
  1058.                         displayName = "Empty";
  1059.                         dataname = "Empty";
  1060.                         attachment[] = {};
  1061.                     };         
  1062.                 };                         
  1063.                 UIPicture = "\FIR_AV8B\ui\av8b_dynamic_ca.paa";
  1064.                 class pylons
  1065.                 {
  1066.                     class pylons1
  1067.                     {
  1068.                         hardpoints[] = {"B_MISSILE_PYLON","B_BOMB_PYLON"};
  1069.                         attachment = "RHS_HP_AIM9_2x";
  1070.                         priority = 4;
  1071.                         maxweight = 500;
  1072.                         UIposition[] = {0.5,0.35};
  1073.                     };
  1074.                     class pylons2: pylons1
  1075.                     {
  1076.                        
  1077.                         priority = 3;
  1078.                         attachment = "rhs_mag_ANALQ131";
  1079.                         maxweight = 1050;
  1080.                         UIposition[] = {0.45,0.4};
  1081.                     };
  1082.                     class pylons3: pylons1
  1083.                     {
  1084.                        
  1085.                         priority = 2;
  1086.                         attachment = "rhs_mag_gbu12";
  1087.                         maxweight = 1050;
  1088.                         UIposition[] = {0.4,0.45};
  1089.                     };
  1090.                     class pylons4: pylons3
  1091.                     {
  1092.                        
  1093.                         priority = 2;
  1094.                         mirroredMissilePos = 3;
  1095.                         UIposition[] = {0.2,0.45};
  1096.                     };
  1097.                     class pylons5: pylons2
  1098.                     {
  1099.                        
  1100.                         priority = 3;
  1101.                         mirroredMissilePos = 2;
  1102.                         UIposition[] = {0.15,0.4};
  1103.                     };
  1104.                     class pylons6: pylons1
  1105.                     {
  1106.                    
  1107.                         UIposition[] = {0.1,0.35};
  1108.                         priority = 4;
  1109.                         mirroredMissilePos = 1;
  1110.                     };
  1111.                     /*
  1112.                     class pylons7: pylons1
  1113.                     {
  1114.                         hardpoints[] = {"FIR_AV8B_Under_HP","FIR_MISC"};
  1115.                         priority = 1;
  1116.                         UIposition[] = {0.3,0.35};
  1117.                         attachment = "FIR_Litening_std_P_1rnd_M";
  1118.                     };                 
  1119.                     class pylons8: pylons1
  1120.                     {
  1121.                         hardpoints[] = {"FIR_AV8B_Misc","FIR_MISC"};
  1122.                         priority = 1;
  1123.                         UIposition[] = {0.3,0.55};
  1124.                         attachment = "FIR_Gunpod_Nomodel_P_1rnd_M";
  1125.                     };
  1126.                     */                     
  1127.                 };
  1128.             };
  1129.         }; 
  1130.  
  1131.         AWS_MFD_OVERLAY_TGP = "\FIR_AV8B\cockpit\MFD_TGP.paa";
  1132.         AWS_MFD_OVERLAY_TAD = "\FIR_AV8B\cockpit\MFD_HSD.paa";     
  1133.    
  1134.         acceleration = 200;
  1135.         driveoncomponent[] = {"wheel_1", "wheel_2", "wheel_3_1","wheel_3_2"};
  1136.        
  1137.         camouflage = 8;
  1138.         audible = 10;
  1139.         accuracy = 0.2;
  1140.        
  1141.         memoryPointCM[] = {"flare_launcher1","flare_launcher2","flare_launcher3"};
  1142.         memoryPointCMDir[] = {"flare_launcher1_dir","flare_launcher2_dir","flare_launcher3_dir"};
  1143.  
  1144.         htMin = 60;
  1145.         htMax = 1800;
  1146.         afMax = 200;
  1147.         mfMax = 100;
  1148.         mFact = 0;
  1149.         tBody = 0;
  1150.  
  1151.         radartype = 4;
  1152.         lockdetectionsystem = 2 + 8 + 4;
  1153.         incommingmissliedetectionsystem = 16;
  1154.  
  1155.         maxSpeed = 1100;
  1156.        
  1157.         armor = 100;
  1158.         armorStructured = 1;
  1159.         envelope[] = {0.000000, 0.500000, 2.500000, 4.8, 6.000000, 7.00000, 7.50000, 7.500000, 7.500000, 7.000000, 6.400000, 5.600000, 2.100000, 1.700000, 1.400000,1.350000,1.300000,1.150000, 0};
  1160.         // envelope[] = {0.000000, 0.700000, 2.900000, 5, 7.000000, 8.000000, 8.500000, 8.900000, 9.000000, 6.600000, 4.200000, 3.600000, 2.100000, 1.700000, 1.400000,1.350000,1.300000,1.150000, 0};
  1161.         // draconicForceXCoef = 3.8;
  1162.         // draconicForceYCoef = 3.5;
  1163.         // draconicForceZCoef = 3.5;
  1164.         // draconicTorqueXCoef = 3.0;
  1165.         // draconicTorqueYCoef = 3.0;
  1166.         draconicForceXCoef = 7;
  1167.         draconicForceYCoef = 8.5;
  1168.         draconicForceZCoef = 3;
  1169.         draconicTorqueXCoef[] = {4.6, 5.5, 6.2, 7, 7.7, 8.3, 9, 9.1, 9.2, 9.2, 9.2};
  1170.         draconicTorqueYCoef[] = {6.8, 5.5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3};
  1171.         angleOfIndicence=0.052359872;      
  1172.  
  1173.         elevatorCoef[] = { 
  1174.             0,      // At 0 % of maxSpeed, this is the influence of the aileron
  1175.             0.8,    // 12.5 %
  1176.             0.9,    // 25 %
  1177.             1.0,    // 37.5 %
  1178.             1.1,    // 50 %
  1179.             1.2,    // 62.5 %
  1180.             1.2,    // 75 %
  1181.             1.3,    // 87.5 %
  1182.             1.3,    // 100 %
  1183.             1.3,    // 112.5 %
  1184.             1.4,    // 125 %
  1185.             1.4,    // 137.5 %
  1186.             1.4     // 150 %
  1187.         };         
  1188.  
  1189.         aileronCoef[] = {0.4, 0.8, 0.9, 1.0, 1.1, 1.2, 1.2 , 1.3, 1.3 , 1.3, 1.4 , 1.4 ,1.4,1.3,1.2};      
  1190.         rudderCoef[] = {0.5, 1.8, 2.6, 2.75, 2.8, 2.85, 2.9, 2.95, 2.98, 3.01, 2.7, 1.1, 0.9, 0.7, 0.5, 0.3};      
  1191.        
  1192.         irScanRangeMin = 10;
  1193.         irScanRangeMax = 16000;
  1194.         irScanToEyeFactor = 8;
  1195.         fuelCapacity = 5000;
  1196.         aileronSensitivity = 1.0;
  1197.         elevatorSensitivity = 0.9;
  1198.         wheelSteeringSensitivity = 1.5;
  1199.        
  1200.         maxOmega = 2000;
  1201.         class Wheels
  1202.         {
  1203.             class Wheel_1
  1204.             {
  1205.                 boneName = "Wheel_1";
  1206.                 steering = 1;
  1207.                 side = "left";
  1208.                 center = "Wheel_1_center";
  1209.                 boundary = "Wheel_1_rim";
  1210.                 width = 0.16;
  1211.                 mass = 150;
  1212.                 MOI = 4;
  1213.                 dampingRate = 0.15;
  1214.                 dampingRateDamaged = 1;
  1215.                 dampingRateDestroyed = 1000;
  1216.                 maxBrakeTorque = 6000;
  1217.                 maxHandBrakeTorque = 6000;
  1218.                 suspTravelDirection[] = {0,-1,0};
  1219.                 suspForceAppPointOffset = "Wheel_1_center";
  1220.                 tireForceAppPointOffset = "Wheel_1_center";
  1221.                 // maxCompression = 0.1;
  1222.                 // maxDroop = 0.4;             
  1223.                 maxCompression = 0.1;
  1224.                 maxDroop = 0.5;                            
  1225.                 sprungMass = 5334;
  1226.                 springStrength = 1200234;
  1227.                 springDamperRate = 128025;     
  1228.                 longitudinalStiffnessPerUnitGravity = 4000;
  1229.                 latStiffX = 25;
  1230.                 latStiffY = 180;
  1231.                 frictionVsSlipGraph[] = {{0,1},{0.5,1},{1,1}};
  1232.             };
  1233.             class Wheel_2: Wheel_1
  1234.             {
  1235.                 boneName = "Wheel_2";
  1236.                 steering = 0;
  1237.                 center = "Wheel_2_center";
  1238.                 boundary = "Wheel_2_rim";
  1239.                 width = 0.28;  
  1240.                 maxCompression = 0.1;
  1241.                 maxDroop = 0.5;                
  1242.                 springDamperRate = 41221;
  1243.                 sprungMass = 2134;
  1244.                 springStrength = 1580200;
  1245.                 suspForceAppPointOffset = "Wheel_2_center";
  1246.                 tireForceAppPointOffset = "Wheel_2_center";
  1247.             };
  1248.             class Wheel_3_1: Wheel_2
  1249.             {
  1250.                 boneName = "Wheel_3_1";
  1251.                 side = "left";     
  1252.                 maxCompression = 0.1;
  1253.                 maxDroop = 0.5;        
  1254.                 center = "Wheel_3_1_center";
  1255.                 boundary = "Wheel_3_1_rim";
  1256.                 suspForceAppPointOffset = "Wheel_3_1_center";
  1257.                 tireForceAppPointOffset = "Wheel_3_1_center";
  1258.             };
  1259.             class Wheel_3_2: Wheel_2
  1260.             {
  1261.                 boneName = "Wheel_3_2";
  1262.                 side = "right";
  1263.                 maxCompression = 0.1;
  1264.                 maxDroop = 0.5;        
  1265.                 center = "Wheel_3_2_center";
  1266.                 boundary = "Wheel_3_2_rim";
  1267.                 suspForceAppPointOffset = "Wheel_3_2_center";
  1268.                 tireForceAppPointOffset = "Wheel_3_2_center";
  1269.             };         
  1270.        
  1271.         };             
  1272.        
  1273.         laserScanner = true;
  1274.         memoryPointLRocket = "P Raketa";
  1275.         memoryPointRRocket = "L Raketa";
  1276.              
  1277.         cost = 10000000;
  1278.         type = "VAir";
  1279.         threat[] = {0.2, 0.7, 0.9};
  1280.        
  1281.         class camShakeGForce
  1282.         {
  1283.             power = 1;
  1284.             frequency = 20;
  1285.             distance = 0;
  1286.             minSpeed = 1;
  1287.         };
  1288.         minGForce = 0.3;
  1289.         maxGForce = 10;
  1290.         gForceShakeAttenuation = 0.5;
  1291.        
  1292.         defaultUserMFDvalues[] = {0,0,0.15,1,0.15,1};  
  1293.         #include "cfg_HUD_HMCS_Kimi_F16C.hpp"
  1294.         #include "UserSource.hpp"
  1295.         #include "UserAction.hpp"
  1296.        
  1297.         class WingVortices
  1298.         {
  1299.             class WingTipLeft
  1300.             {
  1301.                 effectName = "FIR_WingVortices";
  1302.                 position = "cerveny pozicni";
  1303.             };
  1304.            
  1305.             class WingTipRight
  1306.             {
  1307.                 effectName = "FIR_WingVortices";
  1308.                 position = "zeleny pozicni";
  1309.             };
  1310.            
  1311.             class BodyLeft_inner
  1312.             {
  1313.                 effectName = "FIR_BodyVortices";
  1314.                 position = "body_vapour_L_S";
  1315.             };
  1316.            
  1317.             class BodyRight_inner
  1318.             {
  1319.                 effectName = "FIR_BodyVortices";
  1320.                 position = "body_vapour_R_S";
  1321.             };
  1322.         };
  1323.  
  1324.         class Exhausts
  1325.         {
  1326.             class Exhaust1
  1327.             {
  1328.                 direction = "exu1_dir";
  1329.                 effect = "fir_ExhaustsEffectPlane_big";
  1330.                 position = "exu1";
  1331.             };
  1332.             class Exhaust2
  1333.             {
  1334.                 direction = "exu2_dir";
  1335.                 effect = "fir_ExhaustsEffectPlane_big";
  1336.                 position = "exu2";
  1337.             };
  1338.         };
  1339.  
  1340.         class Reflectors
  1341.         {
  1342.             class Left
  1343.             {
  1344.             ambient[] = {100, 100, 100, 0};
  1345.             color[] = {7000, 7500, 10000, 1};
  1346.             conefadecoef = 10;
  1347.             daylight = 0;
  1348.             direction = "light_1_dir";
  1349.             flaresize = 4;
  1350.             hitpoint = "L svetlo";
  1351.             innerangle = 20;
  1352.             intensity = 50;
  1353.             outerangle = 60;
  1354.             position = "light_1_pos";
  1355.             selection = "L svetlo";
  1356.             size = 1;
  1357.             useflare = 1;
  1358.                 class Attenuation
  1359.                 {
  1360.                     constant = 0;
  1361.                     linear = 0;
  1362.                     quadratic = 4;
  1363.                     start = 1;
  1364.                 };
  1365.             };
  1366.         };
  1367.        
  1368.         class MarkerLights
  1369.         {
  1370.             class Red_Still_R
  1371.             {
  1372.                 name = "cerveny pozicni";
  1373.                 color[] = {0.3, 0, 0, 1};
  1374.                 ambient[] = {0.003, 0.003, 0.003, 1};
  1375.                 brightness = 0.05;
  1376.                 dayLight = true;
  1377.                 blinking = true;
  1378.             };
  1379.             class Green_Still_L
  1380.             {
  1381.                 name = "zeleny pozicni";
  1382.                 color[] = {0, 0.3, 0, 1};
  1383.                 ambient[] = {0.003, 0.003, 0.003, 1};
  1384.                 brightness = 0.05;
  1385.                 blinking = true;
  1386.                 dayLight = true;
  1387.             };
  1388.             class White_blink_C
  1389.             {
  1390.                 name = "bily pozicni blik";
  1391.                 color[] = {0.7, 0.7, 0.7, 1};
  1392.                 ambient[] = {0.003, 0.003, 0.003, 1};
  1393.                 brightness = 0.05;
  1394.                 blinking = true;
  1395.                 dayLight = true;
  1396.             };
  1397.    
  1398.         };
  1399.  
  1400.         class pilotCamera    
  1401.         {
  1402.             class OpticsIn                
  1403.             {          
  1404.                 class Wide
  1405.                 {
  1406.                     opticsDisplayName = "WFOV";
  1407.                     initAngleX = 0;
  1408.                     minAngleX = 0;
  1409.                     maxAngleX = 0;
  1410.                     initAngleY = 0;
  1411.                     minAngleY = 0;
  1412.                     maxAngleY = 0;
  1413.                     initFov = "(30 / 120)";
  1414.                     minFov = "(30 / 120)";
  1415.                     maxFov = "(30 / 120)";
  1416.                     directionStabilized = 1;
  1417.                     visionMode[] = {"Normal","Ti"};
  1418.                     thermalMode[] = {0,1};
  1419.                     gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  1420.                     opticsPPEffects[] = {"OpticsCHAbera2","OpticsBlur2"};
  1421.                 };
  1422.                 class Medium: Wide
  1423.                 {
  1424.                     opticsDisplayName = "MFOV";
  1425.                     initFov = "(15 / 120)";
  1426.                     minFov = "(15 / 120)";
  1427.                     maxFov = "(15 / 120)";
  1428.                     gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_medium_F.p3d";
  1429.                     stabilizedInAxes = 3;
  1430.                     directionStabilized = 1;
  1431.                     horizontallyStabilized = 1;
  1432.                 };
  1433.                 class Narrow: Wide
  1434.                 {
  1435.                     opticsDisplayName = "NFOV";
  1436.                     initFov = "(3.75 / 120)";
  1437.                     minFov = "(3.75 / 120)";
  1438.                     maxFov = "(3.75 / 120)";
  1439.                     gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  1440.                     stabilizedInAxes = 3;
  1441.                     directionStabilized = 1;
  1442.                     horizontallyStabilized = 1;
  1443.                 };
  1444.                 showMiniMapInOptics = 1;
  1445.                 showUAVViewInOptics = 0;
  1446.                 showSlingLoadManagerInOptics = 0;
  1447.             };
  1448.             minTurn                 = -360;        
  1449.             maxTurn                 = 360;      
  1450.             initTurn                = 0;              
  1451.             minElev                 = -90;          
  1452.             maxElev                 = 90;        
  1453.             initElev                = 0;            
  1454.             maxXRotSpeed            = 1;          
  1455.             maxYRotSpeed            = 1;          
  1456.             pilotOpticsShowCursor   = 1;          
  1457.             controllable            = 1;  
  1458.         };
  1459.         memoryPointDriverOptics = "pip_pos_0";
  1460.         unitInfoType = "RscOptics_CAS_Pilot";
  1461.         driverWeaponsInfoType = "RscOptics_CAS_01_TGP";    
  1462.  
  1463.         class eventhandlers
  1464.         {
  1465.             hit = "";                  
  1466.             Init = "[_this select 0] execVM ""\FIR_AV8B\sqs\init\init.sqf"";";
  1467.             killed = "_this call BIS_Effects_EH_Killed;";
  1468.             fired = "";
  1469.         };
  1470.        
  1471.  
  1472.         class Damage
  1473.         {
  1474.             tex[] = {};
  1475.             mat[] = {"FIR_AV8B\data\av8b_ext.rvmat", "FIR_AV8B\data\av8b_ext_damage.rvmat", "FIR_AV8B\data\av8b_ext_destruct.rvmat","FIR_AV8B\data\body_NA.rvmat", "FIR_AV8B\data\body_NA_damage.rvmat", "FIR_AV8B\data\body_NA_destruct.rvmat","FIR_AV8B\data\wing.rvmat", "FIR_AV8B\data\wing_damage.rvmat", "FIR_AV8B\data\wing_destruct.rvmat"};
  1476.         };
  1477.  
  1478.         class Library
  1479.         {
  1480.             libTextDesc = "USMC Mass-Production STOVL Fighter Aircraft";
  1481.         };
  1482.  
  1483.     };
  1484.     class SG_AV8B_NA: SG_AV8B_NA_Base
  1485.     {
  1486.         scope = 2;
  1487.         author = "Firewill";
  1488.         displayName = "AV-8B Harrier II N/A";
  1489.         weapons[] = {"SG_Vacannon_GAU12_veh","SG_CMFlareLauncher_New"};
  1490.         magazines[] = {"SG_300Rnd_TE1_Red_Tracer_25mm_GAU12_M","120Rnd_CMFlare_Chaff_Magazine"};       
  1491.         hiddenselectionstextures[] = {"FIR_AV8B\skin\standard_NA\body_co.paa","FIR_AV8B\skin\standard_NA\wing_co.paa","",""};              
  1492.     }; 
  1493.     class PlaneWreck;
  1494.     class FIR_AV8BWreck: PlaneWreck
  1495.     {
  1496.         scope = 1;
  1497.         class Armory {
  1498.             disabled = 1;
  1499.         };
  1500.         model = "\FIR_AV8B\AV8Bwreck.p3d";
  1501.         typicalCargo[] = {};
  1502.         irTarget = 0;
  1503.         transportAmmo = 0;
  1504.         transportRepair = 0;
  1505.         transportFuel = 0;
  1506.         transportSoldier = 1;
  1507.         class Eventhandlers {
  1508.         };
  1509.     };
  1510.     class fir_av8b_canopy : thingX
  1511.     {
  1512.         mapSize = 0.78;
  1513.         author = "Firewill";
  1514.         displayName = "AV-8B Canopy";
  1515.         model = "\FIR_AV8B\model\fir_av8b_canopy.p3d";
  1516.         _generalMacro = "thingX";
  1517.         scope = 1;
  1518.         simulation = "thingx";
  1519.         animated = false;
  1520.         reversed = false;
  1521.         nameSound = "";
  1522.         vehicleClass = "Objects";
  1523.         accuracy = 0.2; // accuracy needed to recognize type of this target
  1524.        
  1525.         class DestructionEffects {};
  1526.     };
  1527.     class fir_av8b_ejection_seat : Motorcycle
  1528.     {
  1529.         reversed = false;
  1530.         startEngine = false;
  1531.         crew = "RHSUSF_Airforce_JETPILOT";
  1532.         driverCanEject = true;
  1533.         scope = protected;
  1534.         vehicleClass = "Objects";
  1535.         side = TWest;
  1536.         faction = BLU_F;
  1537.         author = "Firewill";
  1538.         displayName = "AV-8B Ejection Seat";
  1539.         canFloat = false;
  1540.         Icon = "iconParachute";
  1541.         picture = "\A3\Air_F_Beta\Parachute_01\Data\UI\Portrait_Parachute_01_CA.paa";
  1542.         model = "\FIR_AV8B\model\av8b_ejection_seat.p3d";
  1543.         driverAction = "Truck_Cargo01";
  1544.         getInAction = "";
  1545.         getOutAction = "";
  1546.         driverLeftHandAnimName = "";
  1547.         driverRightHandAnimName = "";
  1548.         memoryPointsGetInDriver = "pos driver";
  1549.         memoryPointsGetInDriverDir = "pos driver dir";
  1550.         usePreciseGetInAction = 1;
  1551.         occludeSoundsWhenIn = 1;
  1552.         obstructSoundsWhenIn = 1;
  1553.         soundGetIn[] = {"", db-70, 1};
  1554.         soundGetOut[] = {"", db-70, 1};
  1555.         soundEngine[] = {"", db5, 0.9};
  1556.         soundEnviron[] = {"", 0.562341, 1};
  1557.         unitInfoType = "RscUnitInfoSoldier";
  1558.         hideUnitInfo = true;
  1559.         weapons[] = {};
  1560.         magazines[] = {};
  1561.  
  1562.         dammageHalf[] = {};
  1563.         dammageFull[] = {};
  1564.  
  1565.         extCameraPosition[] = {0.0, 3.0, -10.0};
  1566.         threat[] = {0.0, 0.0, 0.0};
  1567.  
  1568.         class ViewPilot
  1569.         {
  1570.             initAngleX = 5;
  1571.             minAngleX = -55;
  1572.             maxAngleX = 85;
  1573.             initAngleY = 0;
  1574.             minAngleY = -150;
  1575.             maxAngleY = 150;
  1576.             initFov = 0.9;
  1577.             minFov = 0.42;
  1578.             maxFov = 0.9;
  1579.             minMoveX = 0;
  1580.             maxMoveX = 0;
  1581.             minMoveY = 0;
  1582.             maxMoveY = 0;
  1583.             minMoveZ = 0;
  1584.             maxMoveZ = 0;
  1585.         };
  1586.        
  1587.  
  1588.         fuelCapacity = 0;
  1589.        
  1590.         transportSoldier = 0;
  1591.         transportAmmo = 0;
  1592.         transportMaxMagazines = 0;
  1593.         transportMaxWeapons = 0;
  1594.         transportMaxBackpacks = 0;
  1595.         transportFuel = 0;
  1596.         transportRepair = 0;
  1597.         transportVehiclesCount = 0;
  1598.         transportVehiclesMass = 0;
  1599.        
  1600.         class TransportWeapons {};
  1601.        
  1602.         class TransportMagazines {};
  1603.  
  1604.         class Turrets {};
  1605.  
  1606.         class Exhausts {};
  1607.  
  1608.         class Reflectors {};
  1609.  
  1610.         class Sounds {};
  1611.  
  1612.         class Eventhandlers{};
  1613.        
  1614.  
  1615.     };
  1616. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement