123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- #include "../../../RD501_main/config_macros.hpp"
- #include "../../_common/common.hpp"
- class CfgPatches
- {
- class RD501_patch_generic_aircraft_weapons
- {
- author=DANKAUTHORS;
- addonRootClass= MACRO_QUOTE(RD501_patch_vehicle_weapons);
- requiredAddons[]=
- {
- RD501_patch_vehicle_weapons
- };
- requiredVersion=0.1;
- units[]={};
- weapons[]={
- macro_new_weapon(generic,aircraft_laser),
- macro_new_weapon(generic,rebel_aircraft_laser),
- macro_new_weapon(generic,ion_aircraft_laser),
- macro_new_weapon(generic,tie_aircraft_laser),
- macro_new_weapon(generic,purple_aircraft_laser),
- macro_new_weapon(generic,plasma_aircraft_laser),
- macro_new_weapon(generic,tank_repeater),
- macro_new_weapon(generic,rebel_aircraft_cannon),
- macro_new_weapon(generic,imperial_aircraft_cannon),
- macro_new_weapon(generic,republic_aircraft_cannon),
- macro_new_weapon(generic,cis_aircraft_cannon),
- macro_new_weapon(generic,purple_aircraft_cannon),
- macro_new_weapon(generic,plasma_aircraft_cannon),
- macro_new_weapon(generic,preatorian_gun_opfor),
- macro_new_weapon(aa_gun,aa_gun_base),
- macro_new_weapon(generic,blue_dual_aircraft_laser),
- macro_new_weapon(generic,green_dual_aircraft_laser),
- macro_new_weapon(generic,preatorian_turret_opfor)
- };
- };
- };
- class CfgWeapons
- {
- class CannonCore;
- class Cannon_30mm_Plane_CAS_02_F:CannonCore
- {
- class LowROF;
- };
- class Gatling_30mm_Plane_CAS_01_F:CannonCore
- {
- class LowROF;
- };
- //Laser Guns
- #include "aircraft_laser_gun.hpp"
- //Laser Cannon
- class macro_new_weapon(generic,republic_aircraft_cannon) : macro_new_weapon(generic,aircraft_laser)
- {
- magazines[] = {macro_new_mag(generic_aircraft_gun_green,1000)};
- displayName = "Laser Cannon";
- burst = 1;
- class LowROF: LowROF
- {
- textureType = "fullAuto";
- burst = 1;
- reloadTime=0.04;
- dispersion=0;
- };
- };
- class macro_new_weapon(generic,cis_aircraft_cannon) : macro_new_weapon(generic,aircraft_laser)
- {
- magazines[] = {macro_new_mag(generic_aircraft_cannon_red,1000)};
- class LowROF: LowROF
- {
- textureType = "fullAuto";
- burst = 1;
- reloadTime=0.04;
- dispersion=0;
- };
- };
- class macro_new_weapon(generic,blue_aircraft_cannon) : macro_new_weapon(generic,aircraft_laser)
- {
- magazines[] = {macro_new_mag(generic_aircraft_cannon_blue,1000)};
- class LowROF: LowROF
- {
- textureType = "fullAuto";
- burst = 1;
- reloadTime=0.04;
- dispersion=0;
- };
- };
- class macro_new_weapon(generic,green_dual_aircraft_laser): macro_new_weapon(generic,aircraft_laser)
- {
- scope=2;
- canLock = 1;
- ballisticsComputer = 4;
- weaponLockSystem = 0;
- magazines[] = {macro_new_mag(generic_aircraft_gun_dual_green,1000),macro_new_mag(generic_aircraft_gun_asg,3000)};
- class LowROF: LowROF
- {
- displayName = "Aircraft Laser Gun";
- dispersion = 0.012;
- autoFire=true;
- aiRateOfFire = 0.001;
- reloadTime=0.06;
- aiRateOfFireDispersion = 0.0;
- aiRateOfFireDistance = 0;
- minRange = 0;
- minRangeProbab = 1;
- midRange = 7500;
- midRangeProbab = 1;
- maxRange = 15000;
- maxRangeProbab = 1;
- weaponLockDelay = 0;
- weaponLockSystem = 0;
- lockAcquire = 1;
- FCSMaxLeadSpeed = 1000;
- burst = 10;//30;
- };
- };
- class macro_new_weapon(generic,purple_aircraft_cannon) :macro_new_weapon(generic,republic_aircraft_cannon)
- {
- class LowROF: LowROF
- {
- class StandardSound
- {
- soundBegin[] = {"begin1",1};
- };
- };
- };
- class macro_new_weapon(generic,plasma_aircraft_cannon) : macro_new_weapon(generic,republic_aircraft_cannon)
- {
- class LowROF: LowROF
- {
- dispersion = 0;
- class StandardSound
- {
- soundBegin[] = {"begin1",1};
- };
- };
- };
- class macro_new_weapon(aa_gun,aa_gun_base) : macro_new_weapon(generic,republic_aircraft_cannon)
- {
- displayName = "PPTG2AC";
- magazines[] = {macro_new_mag(AA_Gun_Base,1000)};
- class LowROF: LowROF
- {
- dispersion = 0;
- class StandardSound
- {
- begin1[] = {};
- begin2[] = {};
- begin3[] = {};
- soundBegin[] = {"begin1",0.33,"begin2",0.33,"begin3",0.34};
- };
- };
- };
- //Preatorian gun
- class autocannon_35mm;
- class macro_new_weapon(generic,preatorian_gun_opfor): autocannon_35mm
- {
- displayName = "B.E.A.R.D";
- magazines[] = {
- macro_new_mag(generic_aircraft_gun_preatorian,1000)
- };
- };
- class macro_new_weapon(generic,preatorian_turret_opfor): autocannon_35mm
- {
- displayName = "Heavy Turret";
- magazines[] = {
- macro_new_mag(generic_aircraft_gun,1000)
- };
-
- };
- //Kannon
- class macro_new_weapon(generic,kannon) : macro_new_weapon(generic,republic_aircraft_cannon)
- {
- scope = 1;
- displayName = "SIN-C 'Rage'";
- magazines[] = {
- macro_new_mag(Kannon,100)
- };
- modes[] = {"LowROF"};
- dispersion = 0.00001;
- aiRateOfFire = 0.4;
- reloadTime=0.4;
- burst = 1;
- class LowROF: LowROF
- {
- displayName = "SIN-C 'Rage'";
- multiplier=1;
- dispersion = 0.00001;
- autoFire=true;
- aiRateOfFire = 0.4;
- reloadTime=0.4;
- burst = 1;
- };
- };
-
- class macro_new_weapon(generic,tank_repeater) : macro_new_weapon(generic,aircraft_laser)
- {
- scope = 1;
- displayName = "CIS Heavy Repeater";
- magazines[] = {macro_new_mag(generic_aircraft_gun,1000)};
- modes[] = {"LowROF"};
- dispersion = 0.01;
- aiRateOfFire = 0.1;
- reloadTime=0.1;
- burst = 1;
- class LowROF: LowROF
- {
- displayName = "CIS Heavy Repeater";
- multiplier=1;
- dispersion = 0.00001;
- autoFire=true;
- aiRateOfFire = 0.1;
- reloadTime=0.1;
- burst = 1;
- };
- };
- };
|