Advertisement
Guest User

config.cpp

a guest
Oct 19th, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.74 KB | None | 0 0
  1. class cfgPatches
  2. {
  3.     class PRACS_NATO_Retexture_Project // Name of your mod
  4.     {
  5.         author="WuZhuangTai11111";
  6.         units[]=
  7.         {
  8.             "PRACS_E2C_Navy",
  9.     };
  10.         weapons[]={};
  11.         requiredVersion=0.1;
  12.         requiredAddons[]={};
  13.     };
  14. };
  15. class Components;
  16. class SensorTemplatePassiveRadar;
  17. class SensorTemplateActiveRadar;
  18. class SensorTemplateDataLink;
  19. class DefaultVehicleSystemsDisplayManagerLeft
  20. {
  21.     class components;
  22. };
  23. class DefaultVehicleSystemsDisplayManagerRight
  24. {
  25.     class components;
  26. };
  27. class cfgVehicles
  28. {
  29.     class PRACS_E2C_Navy;
  30.     class NATO_E2C_Hawkeye: PRACS_E2C_Navy
  31.     {
  32.         _generalMacro="NATO_E2C_Hawkeye";
  33.         editorPreview="PRACS_E2C_Navy";
  34.         side=1;
  35.         scope=2;
  36.         scopeCurator=2;
  37.         forceInGarage=1;
  38.         faction="BLU_F";
  39.         displayName="E-2C Hawkeye";
  40.         author="GetCampedOn";
  41.         crew="B_Helipilot_F";
  42.         receiveRemoteTargets = true;
  43.         reportRemoteTargets = true;
  44.         reportOwnPosition = true;
  45.         class TextureSources
  46.         {
  47.             class NATO
  48.             {
  49.                 displayName="NATO";
  50.                 textures[]=
  51.                 {
  52.                     "mod\texture\hky_skin01a_navy_co.paa",
  53.                     "mod\texture\hky_skin01b_navy_co.paa",
  54.                     "mod\texture\hky_skin01b_navy_co.paa",
  55.                     "mod\nums\blu8_ca.paa", //Num1
  56.                     "mod\nums\blu8_ca.paa", //Num2
  57.                     "mod\nums\blu8_ca.paa", //Num3
  58.                     "mod\nums\blu8_ca.paa" //Num4
  59.                 };
  60.                 materials[]=
  61.                 {
  62.                     "mod\texture\hky_skin01a_nohq.paa",
  63.                     "mod\texture\hky_skin01a_smdi.paa",
  64.                     "mod\texture\hky_skin01b_nohq.paa",
  65.                     "mod\texture\hky_skin01b_smdi.paa"
  66.                 };
  67.                 factions[]=
  68.                 {
  69.                     "BLU_F"
  70.                 };
  71.             };
  72.             /*textureList[]= // Texture list visible in garage allowing you to have multiple camos, write 1 to replace base texture, 0 as optional texture you can choose via garage.
  73.             {
  74.                 "NATO", 1
  75.             };*/
  76.         };
  77.         class Components: Components
  78.         {
  79.             class SensorsManagerComponent
  80.             {
  81.                 class Components
  82.                 {
  83.                     class PassiveRadarSensorComponent : SensorTemplatePassiveRadar //Passive Radar
  84.                     {
  85.                         class AirTarget
  86.                         {
  87.                             minRange=1500;
  88.                             maxRange=32000;
  89.                             objectDistanceLimitCoef=-1;
  90.                             viewDistanceLimitCoef=-1;
  91.                         };
  92.                         class GroundTarget
  93.                         {
  94.                             minRange=1500;
  95.                             maxRange=32000;
  96.                             objectDistanceLimitCoef=-1;
  97.                             viewDistanceLimitCoef=-1;
  98.                         };
  99.                         allowsMarking= 1; // targets that are tracked by this sensor only will be target-able
  100.                     };
  101.                    
  102.                     class ActiveRadarSensorComponent : SensorTemplateActiveRadar //Active Radar
  103.                     {
  104.                         class AirTarget
  105.                         {
  106.                             minRange=1500;
  107.                             maxRange=24000;
  108.                             objectDistanceLimitCoef=-1;
  109.                             viewDistanceLimitCoef=-1;
  110.                         };
  111.                         class GroundTarget
  112.                         {
  113.                             minRange=2500;
  114.                             maxRange=16000;
  115.                             objectDistanceLimitCoef=-1;
  116.                             viewDistanceLimitCoef=-1;
  117.                         };
  118.                         typeRecognitionDistance = 15000; // distance how far the target type gets recognized
  119.                         angleRangeHorizontal    = 360;  // sensor azimuth coverage in degrees
  120.                         angleRangeVertical      = 120;  // sensor elevation coverage in degrees
  121.                         groundNoiseDistanceCoef = 0.1;  // portion of sensor-target-ground distance below which the targets become invisible to the sensor
  122.                         maxGroundNoiseDistance  = 15;   // distance from the ground in meters, hard cap, above which the target will be visible even if still below groundNoiseDistanceCoef
  123.                         minSpeedThreshold       = -1;   // target speed in m/s above which the target will start to become visible
  124.                         maxSpeedThreshold       = 550;  // target speed above which the target becomes visible even if below groundNoiseDistanceCoef, linearly decreases to minSpeedThreshold
  125.                     };
  126.                    
  127.                     class DataLinkSensorComponent : SensorTemplateDataLink
  128.                     {
  129.                        
  130.                     };
  131.                 };
  132.             };
  133.             class VehicleSystemsDisplayManagerComponentLeft : DefaultVehicleSystemsDisplayManagerLeft
  134.             {
  135.                 class Components
  136.                 {
  137.                     defaultDisplay="SensorDisplay";
  138.                     class EmptyDisplay
  139.                     {
  140.                         componentType = "EmptyDisplayComponent";
  141.                     };
  142.                     class MinimapDisplay
  143.                     {
  144.                         componentType = "MinimapDisplayComponent";
  145.                         resource = "RscCustomInfoMiniMap";
  146.                     };
  147.                     class SensorsDisplay   
  148.                     {
  149.                         componentType = "SensorsDisplayComponent";
  150.                         range[] = {32000,24000,16000,8000}; // accepts an integer or an array of available ranges (submode)
  151.                         showTargetTypes="1+2+4+8+16+32+64+128+256+1024";
  152.                         // 1 - Sensor sectors, 2 - Threats, 4 - Marked tgt symbol, 8 - Own detection
  153.                         // 16 - Remote detection, 32 - Active detection, 64 - Passive detection, 128 - Ground targets
  154.                         // 256 - Air tgts, 512 - Men, 1024 - Special (laser, NV)
  155.                         resource = "RscCustomInfoSensors";
  156.                     };
  157.                     class UAVFeedDisplay            // Drone camera feed
  158.                     {
  159.                         componentType = "UAVFeedDisplayComponent";
  160.                     };
  161.                 };
  162.             };
  163.             class VehicleSystemsDisplayManagerComponentRight : DefaultVehicleSystemsDisplayManagerRight
  164.             {
  165.                 class Components
  166.                 {
  167.                     class EmptyDisplay
  168.                     {
  169.                         componentType = "EmptyDisplayComponent";
  170.                     };
  171.                     class MinimapDisplay
  172.                     {
  173.                         componentType = "MinimapDisplayComponent";
  174.                         resource = "RscCustomInfoMiniMap";
  175.                     };
  176.                     class SensorsDisplay   
  177.                     {
  178.                         componentType = "SensorsDisplayComponent";
  179.                         range[] = {32000,24000,16000,8000}; // accepts an integer or an array of available ranges (submode)
  180.                         showTargetTypes="1+2+4+8+16+32+64+128+256+1024";
  181.                         // 1 - Sensor sectors, 2 - Threats, 4 - Marked tgt symbol, 8 - Own detection
  182.                         // 16 - Remote detection, 32 - Active detection, 64 - Passive detection, 128 - Ground targets
  183.                         // 256 - Air tgts, 512 - Men, 1024 - Special (laser, NV)
  184.                         resource = "RscCustomInfoSensors";
  185.                     };
  186.                     class UAVFeedDisplay            // Drone camera feed
  187.                     {
  188.                         componentType = "UAVFeedDisplayComponent";
  189.                     };
  190.                 };
  191.             };
  192.         };
  193.     };
  194. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement