config.cpp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(tank_cannons)
  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(saber_gun,td),
  17. macro_new_weapon(saber_gun,mbt),
  18. macro_new_weapon(aat_cannon,mbt),
  19. macro_new_weapon(aat_cannon,king),
  20. macro_new_weapon(atte,mbt),
  21. macro_new_weapon(mynock_cannon,mbt),
  22. macro_new_weapon(mynock_cannon,td)
  23. };
  24. };
  25. };
  26. class CfgWeapons
  27. {
  28. class 3AS_HeavyGATCannon_Base;
  29. class 3AS_GATCannon:3AS_HeavyGATCannon_Base
  30. {
  31. class manual;
  32. }
  33. class macro_new_weapon(aat_cannon,mbt) : 3AS_GATCannon
  34. {
  35. displayName = "Heavy Laser Cannon";
  36. dlc = "RD501";
  37. author= "RD501";
  38. magazines[] = {
  39. macro_new_mag(aat_mbt,50)
  40. };
  41. ballisticsComputer = 4;
  42. canLock = 2;
  43. weaponLockDelay = 3.5;
  44. weaponLockSystem = 8;
  45. ace_overpressure_angle = 30;
  46. ace_overpressure_range = 10;
  47. ace_overpressure_damage = 0.1;
  48. reloadTime=2;
  49. magazineReloadTime = 6;
  50. modes[] = {"manual","close"};
  51. class manual: manual
  52. {
  53. reloadTime=0.5;
  54. };
  55. };
  56. class macro_new_weapon(aat_cannon,king) : 3AS_GATCannon
  57. {
  58. displayName = "King Heavy Laser Cannon";
  59. dlc = "RD501";
  60. author= "RD501";
  61. magazines[] = {
  62. macro_new_mag(aat_mbt,10)
  63. };
  64. ballisticsComputer = 4;
  65. canLock = 2;
  66. weaponLockDelay = 3.5;
  67. weaponLockSystem = 8;
  68. ace_overpressure_angle = 30;
  69. ace_overpressure_range = 10;
  70. ace_overpressure_damage = 0.1;
  71. magazineReloadTime = 6;
  72. modes[] = {"manual","close"};
  73. class manual: manual
  74. {
  75. recoil = "empty";
  76. weaponSoundEffect = "DefaultRifle";
  77. soundContinuous = 0;
  78. reloadTime = 3;
  79. magazineReloadTime = 6;
  80. autoReload = 1;
  81. ballisticsComputer = 1;
  82. canLock = 2;
  83. autoFire = 0;
  84. dispersion = 0;
  85. };
  86. class close: manual
  87. {
  88. showToPlayer = 0;
  89. aiRateOfFire = .5;
  90. aiRateOfFireDistance = 10000;
  91. minRange = 0;
  92. minRangeProbab = 0.35;
  93. midRange = 500;
  94. midRangeProbab = 0.78;
  95. maxRange = 10000;
  96. maxRangeProbab = 1.0;
  97. aiDispersionCoefX = 2;
  98. aiDispersionCoefY = 2;
  99. };
  100. };
  101. class macro_new_weapon(mynock_cannon,mbt) : macro_new_weapon(aat_cannon,king)
  102. {
  103. displayName = "Primary Mass Thrower";
  104. dlc = "RD501";
  105. author= "RD501";
  106. magazines[] = {
  107. macro_new_mag(mynock_mbt_ap,12),
  108. macro_new_mag(mynock_mbt_he,12)
  109. };
  110. ballisticsComputer = 4;
  111. canLock = 2;
  112. weaponLockDelay = 3.5;
  113. weaponLockSystem = 8;
  114. ace_overpressure_angle = 30;
  115. ace_overpressure_range = 10;
  116. ace_overpressure_damage = 0.1;
  117. magazineReloadTime = 6;
  118. modes[] = {"manual","close"};
  119. class manual: manual
  120. {
  121. recoil = "empty";
  122. weaponSoundEffect = "DefaultRifle";
  123. soundContinuous = 0;
  124. reloadTime = 3;
  125. magazineReloadTime = 6;
  126. autoReload = 1;
  127. ballisticsComputer = 1;
  128. canLock = 2;
  129. autoFire = 0;
  130. dispersion = 0;
  131. };
  132. class close: manual
  133. {
  134. showToPlayer = 0;
  135. aiRateOfFire = .5;
  136. aiRateOfFireDistance = 10000;
  137. minRange = 0;
  138. minRangeProbab = 0.35;
  139. midRange = 500;
  140. midRangeProbab = 0.78;
  141. maxRange = 10000;
  142. maxRangeProbab = 1.0;
  143. aiDispersionCoefX = 2;
  144. aiDispersionCoefY = 2;
  145. };
  146. };
  147. class macro_new_weapon(mynock_cannon,td) : macro_new_weapon(aat_cannon,king)
  148. {
  149. displayName = "Quantum Accelerator";
  150. dlc = "RD501";
  151. author= "RD501";
  152. magazines[] = {
  153. macro_new_mag(mynock_mbt_td,12),
  154. };
  155. ballisticsComputer = 4;
  156. canLock = 2;
  157. weaponLockDelay = 3.5;
  158. weaponLockSystem = 8;
  159. ace_overpressure_angle = 360;
  160. ace_overpressure_range = 10;
  161. ace_overpressure_damage = 100;
  162. magazineReloadTime = 6;
  163. modes[] = {"manual","close"};
  164. class manual: manual
  165. {
  166. recoil = "empty";
  167. weaponSoundEffect = "DefaultRifle";
  168. soundContinuous = 0;
  169. reloadTime = 12;
  170. magazineReloadTime = 12;
  171. autoReload = 1;
  172. ballisticsComputer = 1;
  173. canLock = 2;
  174. autoFire = 0;
  175. dispersion = 0;
  176. };
  177. class close: manual
  178. {
  179. showToPlayer = 0;
  180. aiRateOfFire = .5;
  181. aiRateOfFireDistance = 10000;
  182. minRange = 0;
  183. minRangeProbab = 0.35;
  184. midRange = 500;
  185. midRangeProbab = 0.78;
  186. maxRange = 10000;
  187. maxRangeProbab = 1.0;
  188. aiDispersionCoefX = 2;
  189. aiDispersionCoefY = 2;
  190. };
  191. };
  192. };