123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279 |
- #include "../../../RD501_main/config_macros.hpp"
- #include "../../_common/common.hpp"
- class CfgPatches
- {
- class macro_patch_name(tank_cannons)
- {
- author=DANKAUTHORS;
- addonRootClass= macro_patch_name(vehicle_weapons)
- requiredAddons[]=
- {
- macro_patch_name(vehicle_weapons)
- };
- requiredVersion=0.1;
- units[]={};
- weapons[]={
- macro_new_weapon(saber_gun,td),
- macro_new_weapon(saber_gun,mbt),
- macro_new_weapon(aat_cannon,mbt),
- macro_new_weapon(aat_cannon,king),
- macro_new_weapon(atte,mbt),
- macro_new_weapon(mynock_cannon,mbt),
- macro_new_weapon(mynock_cannon,td)
- };
- };
- };
- class CfgWeapons
- {
- class cannon_120mm;
- class Cannon_TX130m1_mc:cannon_120mm
- {
- modes[] = {"player","close"};
- class player;
- };
- class Cannon_TX130m2_mc:cannon_120mm
- {
- class player;
- }
- #include "_saber.hpp"
- class CannonCore;
- class Cannon_TurboLaser:CannonCore
- {
- class manual;
- };
- class 3AS_HeavyGATCannon_Base;
- class 3AS_GATCannon:3AS_HeavyGATCannon_Base
- {
- class manual;
- }
- class macro_new_weapon(aat_cannon,mbt) : 3AS_GATCannon
- {
-
- displayName = "Heavy Laser Cannon";
- dlc = "RD501";
- author= "RD501";
- magazines[] = {
- macro_new_mag(aat_mbt,50)
- };
- ballisticsComputer = 4;
- canLock = 2;
- weaponLockDelay = 3.5;
- weaponLockSystem = 8;
- ace_overpressure_angle = 30;
- ace_overpressure_range = 10;
- ace_overpressure_damage = 0.1;
- reloadTime=2;
- magazineReloadTime = 6;
- modes[] = {"manual","close"};
- class manual: manual
- {
- reloadTime=0.5;
- };
- };
- class macro_new_weapon(aat_cannon,king) : 3AS_GATCannon
- {
-
- displayName = "King Heavy Laser Cannon";
- dlc = "RD501";
- author= "RD501";
- magazines[] = {
- macro_new_mag(aat_mbt,10)
- };
- ballisticsComputer = 4;
- canLock = 2;
- weaponLockDelay = 3.5;
- weaponLockSystem = 8;
- ace_overpressure_angle = 30;
- ace_overpressure_range = 10;
- ace_overpressure_damage = 0.1;
- magazineReloadTime = 6;
- modes[] = {"manual","close"};
- class manual: manual
- {
- recoil = "empty";
- weaponSoundEffect = "DefaultRifle";
- soundContinuous = 0;
- reloadTime = 3;
- magazineReloadTime = 6;
- autoReload = 1;
- ballisticsComputer = 1;
- canLock = 2;
- autoFire = 0;
- dispersion = 0;
- };
- class close: manual
- {
- showToPlayer = 0;
- aiRateOfFire = .5;
- aiRateOfFireDistance = 10000;
- minRange = 0;
- minRangeProbab = 0.35;
- midRange = 500;
- midRangeProbab = 0.78;
- maxRange = 10000;
- maxRangeProbab = 1.0;
- aiDispersionCoefX = 2;
- aiDispersionCoefY = 2;
- };
- };
-
- class macro_new_weapon(mynock_cannon,mbt) : macro_new_weapon(aat_cannon,king)
- {
-
- displayName = "Primary Mass Thrower";
- dlc = "RD501";
- author= "RD501";
- magazines[] = {
- macro_new_mag(mynock_mbt_ap,12),
- macro_new_mag(mynock_mbt_he,12)
- };
- ballisticsComputer = 4;
- canLock = 2;
- weaponLockDelay = 3.5;
- weaponLockSystem = 8;
- ace_overpressure_angle = 30;
- ace_overpressure_range = 10;
- ace_overpressure_damage = 0.1;
- magazineReloadTime = 6;
- modes[] = {"manual","close"};
- class manual: manual
- {
- recoil = "empty";
- weaponSoundEffect = "DefaultRifle";
- soundContinuous = 0;
- reloadTime = 3;
- magazineReloadTime = 6;
- autoReload = 1;
- ballisticsComputer = 1;
- canLock = 2;
- autoFire = 0;
- dispersion = 0;
- };
- class close: manual
- {
- showToPlayer = 0;
- aiRateOfFire = .5;
- aiRateOfFireDistance = 10000;
- minRange = 0;
- minRangeProbab = 0.35;
- midRange = 500;
- midRangeProbab = 0.78;
- maxRange = 10000;
- maxRangeProbab = 1.0;
- aiDispersionCoefX = 2;
- aiDispersionCoefY = 2;
- };
- };
- class macro_new_weapon(mynock_cannon,td) : macro_new_weapon(aat_cannon,king)
- {
-
- displayName = "Quantum Accelerator";
- dlc = "RD501";
- author= "RD501";
- magazines[] = {
- macro_new_mag(mynock_mbt_td,12),
- };
- ballisticsComputer = 4;
- canLock = 2;
- weaponLockDelay = 3.5;
- weaponLockSystem = 8;
- ace_overpressure_angle = 360;
- ace_overpressure_range = 10;
- ace_overpressure_damage = 100;
- magazineReloadTime = 6;
- modes[] = {"manual","close"};
- class manual: manual
- {
- recoil = "empty";
- weaponSoundEffect = "DefaultRifle";
- soundContinuous = 0;
- reloadTime = 12;
- magazineReloadTime = 12;
- autoReload = 1;
- ballisticsComputer = 1;
- canLock = 2;
- autoFire = 0;
- dispersion = 0;
- };
- class close: manual
- {
- showToPlayer = 0;
- aiRateOfFire = .5;
- aiRateOfFireDistance = 10000;
- minRange = 0;
- minRangeProbab = 0.35;
- midRange = 500;
- midRangeProbab = 0.78;
- maxRange = 10000;
- maxRangeProbab = 1.0;
- aiDispersionCoefX = 2;
- aiDispersionCoefY = 2;
- };
- };
- class macro_new_weapon(atte,mbt):macro_new_weapon(saber_gun,mbt)
- {
- magazines[] = {
- macro_new_mag(atte_mbt,10)
- };
- displayName = "Heavy ATTE cannon";
- class player: player
- {
- sounds[] = {"StandardSound"};
- class StandardSound
- {
- begin1[] = {"SW_Droides_2\ATTE\atte_fire.ogg", 3, 1, 3000};
- soundBegin[] = {"begin1", 1};
- };
- recoil = "empty";
- weaponSoundEffect = "DefaultRifle";
- soundContinuous = 0;
- reloadTime = 2;
- magazineReloadTime = 10;//6;
- autoReload = 1;
- ballisticsComputer = 1;
- canLock = 2;
- autoFire = 1;
- dispersion=0.0001;
- };
- class close: player
- {
- showToPlayer = 0;
- aiRateOfFire = 3;
- aiRateOfFireDistance = 5000;
- minRange = 0;
- minRangeProbab = 0.35;
- midRange = 2500;
- midRangeProbab =1.0;// 0.78;
- maxRange = 5000;
- maxRangeProbab = 1.0;
- aiDispersionCoefX = 6;
- aiDispersionCoefY = 6;
- };
- };
- };
|