#include "../../../RD501_main/config_macros.hpp" #include "../../_common/common.hpp" class CfgPatches { class RD501_patch_missiles { author=DANKAUTHORS; addonRootClass= MACRO_QUOTE(RD501_patch_vehicle_weapons); requiredAddons[]= { RD501_patch_vehicle_weapons }; requiredVersion=0.1; units[]={}; weapons[]={ macro_new_weapon(wynd,a2a), macro_new_weapon(wynd,agm), macro_new_weapon(wynd,ugm), macro_new_weapon(wynd,lgm), }; }; }; class CfgWeapons { class missiles_ASRAAM; class Rocket_04_AP_Plane_CAS_01_F; class missiles_DAGR; class missiles_Jian; class Missile_AGM_01_Plane_CAS_02_F; class RocketPods; class macro_new_weapon(wynd,a2a) : missiles_ASRAAM { displayName = "Zephyr (AA)"; displayNameShort = "Zephyr"; magazines[] = {macro_new_mag(a2a,4)}; soundFly[] = {""}; lockedTargetSound[] = {""}; lockingTargetSound[] = {""}; }; class macro_new_weapon(wynd,a2a_vulture) : missiles_ASRAAM { displayName = "Zephyr (AA)"; displayNameShort = "Zephyr"; magazines[] = {macro_new_mag(a2a,2)}; soundFly[] = {""}; lockedTargetSound[] = {""}; lockingTargetSound[] = {""}; magazineReloadTime=15; }; class macro_new_weapon(wynd,agm) : missiles_DAGR { displayName = "Torrent (AGM)"; displayNameShort = "Torrent"; canLock = 2; magazines[] = {macro_new_mag(agm,6)}; soundfly[] = {""}; lockedTargetSound[] = {""}; lockingTargetSound[] = {""}; }; class macro_new_weapon(wynd,ugm) : Rocket_04_AP_Plane_CAS_01_F { displayName = "Hurricane (UGM)"; displayNameShort = "Hurricane"; soundfly[] = {""}; magazines[] = {macro_new_mag(ugm,10)}; autoFire=true; }; class macro_new_weapon(wynd,lgm) : missiles_Jian { displayName = "Flashfire (LGM)"; displayNameShort = "Flashfire"; soundfly[] = {"\rd501_vehicle_weapons\_sounds\proton_torp.ogg",3,1,800}; magazines[] = {macro_new_mag(lgm,4)}; }; class macro_new_weapon(wynd,lgm1) : missiles_Jian { displayName = "Flashfire (LGM)"; displayNameShort = "Flashfire"; soundfly[] = {"\rd501_vehicle_weapons\_sounds\proton_torp.ogg",3,1,800}; magazines[] = {macro_new_mag(lgm,1)}; }; class macro_new_weapon(pylon,agm):missiles_DAGR { displayName = "Torrent(Pylon)"; displayNameShort = "Torrent"; canLock = 2; magazines[] = { macro_new_mag(pylon_agm,6) }; soundfly[] = {""}; lockedTargetSound[] = {""}; lockingTargetSound[] = {""}; }; class macro_new_weapon(pylon,a2a) : missiles_ASRAAM { displayName = "Zephyr Pylon)"; displayNameShort = "Zephyr"; magazines[] = {macro_new_mag(pylon_aa,4)}; soundFly[] = {""}; lockedTargetSound[] = {""}; lockingTargetSound[] = {""}; }; class macro_new_weapon(pylon,ugm) : Rocket_04_AP_Plane_CAS_01_F { displayName = "Hurricane(Pylon)"; displayNameShort = "Hurricane"; soundfly[] = {""}; magazines[] = {macro_new_mag(pylon_ugm,10)}; autoFire=true; modes[]= { "Far_AI", "Medium_AI", "Close_AI", "Burst", "Dual" }; class Dual: RocketPods { displayName="Hurricane Dual(Pylon)"; textureType="burst"; burst=2; autoFire=0; soundContinuous=0; lockingTargetSound[]= { "A3\Sounds_F\weapons\Rockets\locked_1", 0.56234133, 1 }; lockedTargetSound[]= { "A3\Sounds_F\weapons\Rockets\locked_3", 0.56234133, 1.5 }; sounds[]= { "StandardSound" }; class StandardSound { begin1[]= { "A3\Sounds_F\weapons\Rockets\missile_1", 1, 1, 2000 }; soundBegin[]= { "begin1", 1 }; }; salvo=20; reloadTime=0.2; dispersion=0.015; aiRateOfFire=1; aiRateOfFireDistance=10; minRange=0; minRangeProbab=0.0099999998; midRange=1; midRangeProbab=0.0099999998; maxRange=2; maxRangeProbab=0.0099999998; }; }; class macro_new_weapon(pylon,spark) : Rocket_04_AP_Plane_CAS_01_F { displayName = "Spark(Pylon)"; displayNameShort = "Spark"; soundfly[] = {""}; magazines[] = {macro_new_mag(pylon_spark,6)}; autoFire=true; }; class macro_new_weapon(pylon,lgm) : missiles_Jian { displayName = "Flashfire (Pylon)"; displayNameShort = "Flashfire"; soundfly[] = {"\rd501_vehicle_weapons\_sounds\proton_torp.ogg",3,1,800}; magazines[] = {macro_new_mag(pylon_lgm,4)}; }; };