123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- #include "../../../RD501_main/config_macros.hpp"
- #include "../../_common/common.hpp"
- class CfgPatches
- {
- class macro_patch_name(generic_aircraft_weapons)
- {
- author=DANKAUTHORS;
- addonRootClass= macro_patch_name(vehicle_weapons)
- requiredAddons[]=
- {
- macro_patch_name(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,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,ion_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)
- };
- };
- };
- class CfgWeapons
- {
- class Cannon_30mm_Plane_CAS_02_F;
- class SWOP_Cannon_trid:Cannon_30mm_Plane_CAS_02_F
- {
- class LowROF;
- };
- //Laser Guns
- #include "aircraft_laser_gun.hpp"
- //Laser Cannon
- class macro_new_weapon(generic,rebel_aircraft_cannon) : macro_new_weapon(generic,aircraft_laser)
- {
- magazineWell[] = {macro_new_magwell(generic_aircraft_cannon)};
- ballisticsComputer = "1+4";
- displayName = "Laser Cannon";
- burst = 1;
- class LowROF: LowROF
- {
- textureType = "fullAuto";
- burst = 1;
- reloadTime=0.04;
- dispersion=0;
- class StandardSound
- {
- begin1[] = {"XT\sounds\laser.ogg",1,1,3000};
- soundBegin[] = {"begin1",1};
- };
- };
- };
- class macro_new_weapon(generic,imperial_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
- {
- class LowROF: LowROF
- {
- class StandardSound
- {
- begin1[] = {"TIE\Sounds\tielaser1.ogg",1.1,1,3000};
- begin10[] = {"TIE\Sounds\TIELaserCharge.wss",1.1,1,3000};
- begin2[] = {"TIE\Sounds\tielaser2.ogg",1.1,1,3000};
- begin3[] = {"TIE\Sounds\tielaser3.ogg",1.1,1,3000};
- begin4[] = {"TIE\Sounds\TIELaserCharge.wss",1.1,1,3000};
- begin5[] = {"TIE\Sounds\tielaser4.ogg",1.1,1,3000};
- begin6[] = {"TIE\Sounds\tielaser5.ogg",1.1,1,3000};
- begin7[] = {"TIE\Sounds\tielaser6.ogg",1.1,1,3000};
- begin8[] = {"TIE\Sounds\tielaser7.ogg",1.1,1,3000};
- begin9[] = {"TIE\Sounds\tielaser8.ogg",1.1,1,3000};
- soundBegin[] = {"begin1",0.1,"begin2",0.1,"begin3",0.1,"begin4",0.1,"begin5",0.1,"begin6",0.1,"begin7",0.1,"begin8",0.1,"begin9",0.1,"begin10",0.1};
- };
- };
- };
- class macro_new_weapon(generic,republic_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
- {
- class LowROF: LowROF
- {
- class StandardSound
- {
- begin1[] = {"SW_RebelWeapons\A300\A280CFE1.ogg",1.1,1,1800};
- begin2[] = {"SW_RebelWeapons\A300\A280CFE2.ogg",1.1,1,1800};
- begin3[] = {"SW_RebelWeapons\A300\A280CFE3.ogg",1.1,1,1800};
- begin4[] = {"SW_RebelWeapons\A300\A280CFE4.ogg",1.1,1,1800};
- begin5[] = {"SW_RebelWeapons\A300\A280CFE5.ogg",1.1,1,1800};
- soundBegin[] = {"begin1",0.2,"begin2",0.2,"begin3",0.2,"begin4",0.2,"begin5",0.2};
- };
- };
- };
- class macro_new_weapon(generic,blue_dual_aircraft_laser) : macro_new_weapon(generic,republic_aircraft_cannon)
- {
- displayName = "Aircraft Laser Gun";
- magazines[] = {macro_new_mag(generic_aircraft_gun_dual_blue,1000)};
- class LowROF: LowROF
- {
- class StandardSound
- {
- begin1[] = {"rd501_vehicle_weapons\_sounds\New_Laat_2.ogg",1,1,2500};
- begin2[] = {"rd501_vehicle_weapons\_sounds\laat_cannon\shot1.ogg",1.1,1,2500};
- begin3[] = {"rd501_vehicle_weapons\_sounds\laat_cannon\shot2.ogg",1.1,1,2500};
- begin4[] = {"rd501_vehicle_weapons\_sounds\laat_cannon\shot3.ogg",1.1,1,2500};
- soundBegin[] = {"begin1",0.2,"begin2",0.2,"begin3",0.2,"begin4",0.2};
- };
- };
- };
- class macro_new_weapon(generic,cis_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
- {
- class LowROF: LowROF
- {
- class StandardSound
- {
- begin1[] = {"vulture\vulturecannon1.ogg", 0.7, 1, 3000};
- begin2[] = {"vulture\vulturecannon2.ogg", 0.7, 1, 3000};
- begin3[] = {"vulture\vulturecannon3.ogg", 0.7, 1, 3000};
- begin4[] = {"vulture\vulturecannon4.ogg", 0.7, 1, 3000};
- begin5[] = {"vulture\vulturecannon5.ogg", 0.7, 1, 3000};
- soundBegin[] = {"begin1", 0.2, "begin2", 0.2, "begin3", 0.2, "begin4", 0.2, "begin5", 0.2};
- };
- };
- };
- class macro_new_weapon(generic,ion_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
- {
- class LowROF: LowROF
- {
- class StandardSound
- {
- begin1[] = {"TIEdef\ioncanon1.ogg",1.1,1.1,3000};
- begin2[] = {"TIEdef\ioncanon2.ogg",1.1,1.1,3000};
- begin3[] = {"TIEdef\ioncanon3.ogg",1.1,1.1,3000};
- soundBegin[] = {"begin1",0.33,"begin2",0.33,"begin3",0.34};
- };
- };
- };
- class macro_new_weapon(generic,purple_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
- {
- class LowROF: LowROF
- {
- class StandardSound
- {
- begin1[] = {"SWOP_vehiclecommon\Speeder\Speederbike\Sounds\canon",1.5,1,2500};
- soundBegin[] = {"begin1",1};
- };
- };
- };
- class macro_new_weapon(generic,plasma_aircraft_cannon) : macro_new_weapon(generic,rebel_aircraft_cannon)
- {
- class LowROF: LowROF
- {
- dispersion = 0;
- class StandardSound
- {
- begin1[] = {"SWOP_vehiclecommon\Speeder\Speederbike\Sounds\canon",1.5,1,2500};
- soundBegin[] = {"begin1",1};
- };
- };
- };
- class macro_new_weapon(aa_gun,aa_gun_base) : macro_new_weapon(generic,rebel_aircraft_cannon)
- {
- displayName = "PPTG2AC"
- magazines[] = {macro_new_mag(AA_Gun_Base,1000)};
- class LowROF: LowROF
- {
- dispersion = 0;
- class StandardSound
- {
- begin1[] = {"TIEdef\ioncanon1.ogg",1.1,1.1,3000};
- begin2[] = {"TIEdef\ioncanon2.ogg",1.1,1.1,3000};
- begin3[] = {"TIEdef\ioncanon3.ogg",1.1,1.1,3000};
- soundBegin[] = {"begin1",0.33,"begin2",0.33,"begin3",0.34};
- };
- };
- };
- //Preatorian gun
- class macro_new_weapon(generic,preatorian_gun_opfor): macro_new_weapon(generic,purple_aircraft_laser)
- {
- displayName = "B.E.A.R.D";
- magazines[] = {
- macro_new_mag(generic_aircraft_gun_preatorian,1000)
- };
-
- class LowROF: LowROF
- {
- burst = 1;
- class StandardSound
- {
- begin1[] = {"SW_EmpireWeapons\e11\e1.ogg", 0.7, 1, 3000};
- soundBegin[] = {"begin1", 0.2};
- };
- };
- };
- //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;
- sounds[] = {"StandardSound"};
- dispersion = 0.00001;
- autoFire=true;
- aiRateOfFire = 0.4;
- reloadTime=0.4;
- burst = 1;
- class StandardSound
- {
- begin1[] = {macro_soundpath\Kannon_Trail_1.ogg,50,1,3000};
- begin2[] = {macro_soundpath\Kannon_1.ogg,50,1,3000};
- begin3[] = {macro_soundpath\Kannon_2.ogg,50,1,3000};
- begin4[] = {macro_soundpath\Kannon_3.ogg,50,1,3000};
- begin5[] = {macro_soundpath\Kannon_Trail_2.ogg,50,1,3000};
- begin6[] = {macro_soundpath\Kannon_4.ogg,50,1,3000};
- begin7[] = {macro_soundpath\Kannon_5.ogg,50,1,3000};
- begin8[] = {macro_soundpath\Kannon_Trail_3.ogg,50,1,3000};
- soundBegin[] = {"begin1",0.1,"begin2",0.1,"begin3",0.1,"begin4",0.1,"begin5",0.1,"begin6",0.1,"begin7",0.1,"begin8",0.1};
- };
- };
- };
-
- };
|