config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(bombs)
  6. {
  7. author=DANKAUTHORS;
  8. addonRootClass= macro_patch_name(vehicle_weapons)
  9. requiredAddons[]=
  10. {
  11. macro_patch_name(vehicle_weapons)
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. macro_new_weapon(bomb,cluster),
  17. macro_new_weapon(bomb,cluster_emp),
  18. macro_new_weapon(bomb,SDB),
  19. macro_new_weapon(bomb,LGB)
  20. };
  21. };
  22. };
  23. class CfgWeapons
  24. {
  25. class BombCluster_02_F;
  26. class weapon_SDBLauncher;//RD501_Bomb_Cluster_Launcher
  27. class GBU12BombLauncher;
  28. class macro_new_weapon(bomb,cluster): BombCluster_02_F
  29. {
  30. magazines[] = {macro_new_mag(cluster_bomb,4),macro_new_mag(cluster_bomb,2)};
  31. DisplayName = "Rayne Delivery System";
  32. displayNameShort = "Rayne System";
  33. salvo = 4;
  34. magazineReloadTime = 5;
  35. };
  36. class macro_new_weapon(bomb,cluster_emp): macro_new_weapon(bomb,cluster)
  37. {
  38. magazines[] = {macro_new_mag(cluster_emp,2)};
  39. };
  40. class macro_new_weapon(bomb,SDB) : weapon_SDBLauncher //RD501_Bomb_SDB_Launcher
  41. {
  42. magazines[] = {macro_new_mag(sdb_bomb,4)};
  43. DisplayName = "Rayne Delivery System";
  44. displayNameShort = "Rayne System";
  45. salvo = 4;
  46. magazineReloadTime = 5;
  47. };
  48. class macro_new_weapon(bomb,LGB) : GBU12BombLauncher//RD501_Bomb_LGB_Launcher
  49. {
  50. magazines[] = {macro_new_mag(lgb_bomb,4)};
  51. DisplayName = "Rayne Delivery System";
  52. displayNameShort = "Rayne System";
  53. salvo = 4;
  54. magazineReloadTime = 5;
  55. };
  56. class RocketPods;
  57. class Mk82BombLauncher;
  58. class macro_new_weapon(bomb,carpet_I) : Mk82BombLauncher
  59. {
  60. displayName = "Mk 9002/E 'Slagger'";
  61. descriptionShort = "Carpet Bomb";
  62. author = "RD501";
  63. magazines[] = {macro_new_mag(carpet_I_bomb_mag,20)};
  64. canLock = 2;
  65. salvo = 10;
  66. magazineReloadTime = 5;
  67. modes[] = {"BurstSlow"};
  68. class BurstSlow: RocketPods
  69. {
  70. displayName = "FullAuto Carpet Mode";
  71. textureType = "fullAuto";
  72. burst = 1;
  73. autoFire = 1;
  74. soundContinuous = 0;
  75. lockingTargetSound[] = {"A3\Sounds_F\weapons\Rockets\locked_1", 0.562341, 1};
  76. lockedTargetSound[] = {"A3\Sounds_F\weapons\Rockets\locked_3", 0.562341, 1.5};
  77. sounds[] = {"StandardSound"};
  78. class StandardSound
  79. {
  80. begin1[] = {"A3\Sounds_F\weapons\Rockets\missile_1", 1, 1, 2000};
  81. soundBegin[] = {"begin1", 1};
  82. };
  83. salvo = 2;
  84. reloadTime = .4;
  85. dispersion = 0.015;
  86. aiRateOfFire = 1;
  87. aiRateOfFireDistance = 10;
  88. minRange = 0;
  89. minRangeProbab = 0.01;
  90. midRange = 1;
  91. midRangeProbab = 0.01;
  92. maxRange = 2;
  93. maxRangeProbab = 0.01;
  94. };
  95. }
  96. };