Advertisement
Gamenator

AGM-122

Sep 28th, 2023 (edited)
713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.78 KB | None | 0 0
  1. class CfgPatches{
  2. class PW_FLPMC_Weapons_Ammunition
  3.     {
  4.         units[]={};
  5.         weapons[]={};
  6.         requiredVersion=0.1;
  7.         requiredAddons[]=
  8.         {
  9.             "CUP_Weapons_WeaponsCore",
  10.             "CUP_Weapons_WeaponsData",
  11.             "CUP_Weapons_Ammunition",
  12.             "CUP_Weapons_Pods",
  13.             "CUP_Weapons_VehicleWeapons",
  14.             "CUP_Weapons_DynamicLoadout"
  15.         };
  16.         magazines[]=
  17.         {  
  18.            "PW_FLPMC_2Rnd_AGM_122",
  19.             "PW_FLPMC_1Rnd_AGM_122",
  20.             "PW_FLPMC_4Rnd_AGM_122"
  21.         };
  22.  
  23.     };
  24. };
  25.  
  26. class SensorTemplateActiveRadar;
  27. class SensorTemplateAntiRadiation;
  28. class SensorTemplateIR;
  29. class SensorTemplateLaser;
  30. class SensorTemplateMan;
  31. class SensorTemplateNV;
  32. class SensorTemplatePassiveRadar;
  33. class SensorTemplateVisual;
  34.  
  35.  
  36. class CfgAmmo
  37. {
  38. class  MissileCore;
  39. class MissileBase: MissileCore
  40.     {
  41.         class Components;
  42.     };
  43.  
  44. class PW_FLPMC_AGM122_Missile: MissileBase
  45.     {
  46.         model="\Pylons\Agm122\agm122.p3d";
  47.         proxyShape="\Pylons\Agm122\agm122.p3d";
  48.         hit=700;
  49.         indirectHit=650;
  50.         indirectHitRange=7;
  51.         warheadName="ARM";
  52.         proximityExplosionDistance=20;
  53.         fuseDistance=75;
  54.         maneuvrability=42;
  55.         airFriction=0.14;
  56.         sideAirFriction=0.23;
  57.         trackOversteer=1.6;
  58.         trackLead=0.89999998;
  59.         initTime=0;
  60.         timeToLive=60;
  61.         thrustTime=7;
  62.         thrust=300;
  63.         maxSpeed=828;
  64.         simulationStep=0.0020000001;
  65.         airLock=0;
  66.         lockType=0;
  67.         irLock=0;
  68.         laserLock=0;
  69.         nvLock=0;
  70.         maverickWeaponIndexOffset=0;
  71.         cmImmunity=0.0;
  72.         weaponLockSystem="16";
  73.         missileLockCone=180;
  74.         missileKeepLockedCone=180;
  75.         missileLockMaxDistance=6000;
  76.         missileLockMinDistance=50;
  77.         missileLockMaxSpeed=600;
  78.         cost=1000;
  79.         whistleDist=20;
  80.         aiAmmoUsageFlags=256;
  81.         manualControl=0;
  82.         CraterEffects="AAMissileCrater";
  83.         explosionEffects="AAMissileExplosion";
  84.         muzzleEffect="BIS_fnc_effectFiredHeliRocket";
  85.         effectsMissile="missile3";
  86.         class Components : Components
  87.         {
  88.             class SensorsManagerComponent
  89.             {
  90.                 class Components
  91.                 {
  92.                     class AntiRadarSensorComponent:SensorTemplatePassiveRadar
  93.                     {
  94.                         componentType = "PassiveRadarSensorComponent";
  95.                         class AirTarget      // ranges for targets with sky background
  96.                         {
  97.                             minRange = 50;         //minimum possible range in meters  
  98.                             maxRange = 6000;       //maximum possible range in meters                
  99.                             objectDistanceLimitCoef = -1;    //range not limited by obj. view distance
  100.                             viewDistanceLimitCoef = -1;      //range not limited by view distance          
  101.                         };
  102.                         class GroundTarget      // ranges for targets with ground background                          
  103.                         {
  104.                             minRange = 50;         //minimum possible range in meters  
  105.                             maxRange = 6000;       //maximum possible range in meters                
  106.                             objectDistanceLimitCoef = -1;    //range not limited by obj. view distance
  107.                             viewDistanceLimitCoef = -1;      //range not limited by view distance
  108.                         };
  109.                         typeRecognitionDistance = 4000; // distance how far the target type gets recognized                                          
  110.                         angleRangeHorizontal = 120;     // sensor azimuth coverage in degrees        
  111.                         angleRangeVertical = 180;       // sensor elevation coverage in degrees      
  112.                         groundNoiseDistanceCoef = -1;  // portion of sensor-target-ground distance below which the targets become invisible to the sensor
  113.                         maxGroundNoiseDistance = -1;   // distance from the ground in meters, hard cap, above which the target will be visible even if still below groundNoiseDistanceCoef
  114.                         minSpeedThreshold = -1;        // target speed in km/h above which the target will start to become visible          
  115.                         maxSpeedThreshold = -1;       // target speed above which the target becomes visible even if below groundNoiseDistanceCoef, linearly decreases to minSpeedThreshold        
  116.                     };
  117.                 };
  118.             };
  119.         };
  120.        
  121.         soundFly[]=
  122.         {
  123.             "A3\Sounds_F\weapons\Rockets\rocket_fly_1",
  124.             6,
  125.             1,
  126.             500
  127.         };
  128.         SoundSetExplosion[]=
  129.         {
  130.             "RocketsHeavy_Exp_SoundSet",
  131.             "RocketsHeavy_Tail_SoundSet",
  132.             "Explosion_Debris_SoundSet"
  133.         };
  134.         class Hiteffects
  135.         {
  136.             hitWater="ImpactEffectsSmall";
  137.         };
  138.     };
  139.  
  140.  
  141.  
  142. };
  143.  
  144.  
  145. class CfgWeapons{
  146. class MissileLauncher;
  147. class PW_FLPMC_Vmlauncher_AGM122_veh: MissileLauncher
  148.     {
  149.         magazines[]=
  150.         {
  151.             "PW_FLPMC_2Rnd_AGM_122",
  152.             "PW_FLPMC_1Rnd_AGM_122",
  153.             "PW_FLPMC_4Rnd_AGM_122"
  154.         };
  155.     };
  156.  
  157.  
  158.  
  159.  
  160. };
  161.  
  162. class CfgNonAIVehicles
  163. {
  164.     class ProxyWeapon;
  165.     class ProxyPylonPod_3x_Missile_AGM_02_F: ProxyWeapon
  166.     {
  167.         model      = "\Pylons\Agm122\agm122.p3d";
  168.         simulation = "pylonpod";
  169.     };
  170. };
  171.  
  172.  
  173. class CfgMagazines
  174. {
  175.     class VehicleMagazine;
  176.  
  177.     class PW_FLPMC_1Rnd_AGM_122: VehicleMagazine
  178.     {
  179.         scope=2;
  180.         displayName="1x AGM-122 Sidearm";
  181.         displayNameShort="ARM";
  182.         descriptionShort="AGM-122 Sidearm Anti Radiation";
  183.         ammo="PW_FLPMC_AGM122_Missile";
  184.         pylonWeapon= "PW_FLPMC_Vmlauncher_AGM122_veh";
  185.         count=1;
  186.         initSpeedY=-25;
  187.         initSpeedZ= 0;
  188.         maxLeadSpeed=1000;
  189.         sound[]=
  190.         {
  191.             "A3\Sounds_F\weapons\Rockets\missile_1",
  192.             1.1220185,
  193.             1.3,
  194.             1100
  195.         };
  196.         reloadSound[]=
  197.         {
  198.             "A3\sounds_f\dummysound",
  199.             0.00031622799,
  200.             1,
  201.             20
  202.         };
  203.         nameSound="missiles";
  204.     };
  205.     class  PW_FLPMC_2Rnd_AGM_122: PW_FLPMC_1Rnd_AGM_122{
  206.         displayName="2x AGM-122 Sidearm";
  207.         count=2;
  208.     };
  209.     class  PW_FLPMC_4Rnd_AGM_122: PW_FLPMC_1Rnd_AGM_122{
  210.         displayName="4x AGM-122 Sidearm";
  211.         count=4;
  212.     };
  213.     class PW_FLPMC_AGM122_1RND_Loose_Pylon: PW_FLPMC_1Rnd_AGM_122
  214.     {
  215.         displayName="1x AGM-122 Sidearm";
  216.         model="\Pylons\Agm122\agm122.p3d";
  217.         count=1;
  218.         hardpoints[]=
  219.         {
  220.             "CUP_SUPER_PYLON",
  221.             "CUP_NATO_HELO_SMALL",
  222.             "CUP_NATO_HELO_LARGE",
  223.             "CUP_NATO_HELO_WINGTIP",
  224.             "CUP_1Rnd_AIM_9L"
  225.         };
  226.         muzzlePos = "muzzlePos";
  227.         muzzleEnd = "muzzleEnd";
  228.         CUP_PilotControl=0;
  229.     };
  230.  
  231.  
  232.  
  233. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement