config.cpp 2.4 KB

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