config.cpp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. //Get this addons macro
  2. //get the macro for the air macro_patch_name(vehicles)
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon Mynock
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_Mynock_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(mynock)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(Longbow,Republic),
  23. macro_new_vehicle(av7,republic),
  24. macro_new_vehicle(rocketartillery,Republic)
  25. };
  26. weapons[]=
  27. {
  28. };
  29. };
  30. };
  31. #include "../../common/sensor_templates.hpp"
  32. class DefaultEventhandlers;
  33. class CfgVehicles
  34. {
  35. class Land;
  36. class LandVehicle: Land
  37. {
  38. class NewTurret;
  39. };
  40. class Tank: LandVehicle
  41. {
  42. class NewTurret;
  43. class Sounds;
  44. class HitPoints;
  45. class CommanderOptics;
  46. };
  47. class Tank_F: Tank
  48. {
  49. class Turrets
  50. {
  51. class MainTurret: NewTurret
  52. {
  53. class Turrets
  54. {
  55. class CommanderOptics;
  56. };
  57. };
  58. };
  59. };
  60. class 442_rx200_base:Tank_F
  61. {
  62. class Turrets:Turrets
  63. {
  64. class MainTurret: MainTurret
  65. {
  66. class Turrets
  67. {
  68. class CommanderOptics;
  69. };
  70. };
  71. };
  72. };
  73. class 442_rx200_arty:442_rx200_base
  74. {
  75. class Turrets:Turrets
  76. {
  77. class MainTurret: MainTurret
  78. {
  79. class Turrets
  80. {
  81. class CommanderOptics;
  82. };
  83. };
  84. };
  85. };
  86. class macro_new_vehicle(rocketartillery,Republic):442_rx200_arty
  87. {
  88. scope=2;
  89. armor = 1000;
  90. displayName = "Republic RX200 Rocket Artillery"
  91. crew = "JLTS_Clone_P2_Rex_501";
  92. side = 1;
  93. faction = macro_republic_faction
  94. editorSubcategory = macro_editor_cat(arty)
  95. vehicleClass = macro_editor_vehicle_type(arty)
  96. scopeCurator = 2;
  97. forceInGarage = 1;
  98. artilleryScanner = 1;
  99. laserScanner = 1;
  100. availableforsuppoerttypes[]={"Artillery"};
  101. RD501_magclamp_small_forbidden = 1;
  102. RD501_magclamp_large_offset[]={0.0,-3.0,-7.0};
  103. class Turrets: Turrets
  104. {
  105. class MainTurret: MainTurret
  106. {
  107. weapons[]=
  108. {
  109. "rockets_230mm_GAT",
  110. "SmokeLauncher"
  111. };
  112. magazines[]=
  113. {
  114. "12Rnd_230mm_rockets",
  115. "12Rnd_230mm_rockets",
  116. "SmokeLauncherMag"
  117. };
  118. };
  119. };
  120. };
  121. class 442_rx200_aa:442_rx200_base
  122. {
  123. class Turrets:Turrets
  124. {
  125. class MainTurret: MainTurret
  126. {
  127. class Turrets
  128. {
  129. class CommanderOptics;
  130. };
  131. };
  132. };
  133. };
  134. class macro_new_vehicle(Longbow,Republic):442_rx200_aa
  135. {
  136. scope=2;
  137. side=1;
  138. scopeCurator=2;
  139. forceInGarage = 1;
  140. displayName="Republic Longbow AA"
  141. crew = "JLTS_Clone_P2_Rex_501";
  142. author="RD501"
  143. faction = macro_republic_faction
  144. editorSubcategory = macro_editor_cat(aa)
  145. vehicleClass = macro_editor_vehicle_type(aa)
  146. irScanGround = 0;
  147. irScanRangeMax = 10000;
  148. irScanRangeMin = 200;
  149. irScanToEyeFactor = 2;
  150. irTarget = 1;
  151. irTargetSize = 1.2;
  152. #include "../../common/smallvehiclekit.hpp"
  153. RD501_magclamp_small_forbidden = 1;
  154. RD501_magclamp_large_offset[]={0.0,-3.0,-7.0};
  155. class Turrets:Turrets
  156. {
  157. class MainTurret: MainTurret
  158. {
  159. weapons[]=
  160. {
  161. macro_new_weapon(turret,laat_ball_beam_l),
  162. "Laserdesignator_pilotCamera"
  163. };
  164. magazines[]=
  165. {
  166. "Laserbatteries",
  167. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),
  168. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),
  169. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300)
  170. };
  171. }
  172. }
  173. };
  174. class 3as_01_arty_base_F;
  175. class macro_new_vehicle(av7,republic):3as_01_arty_base_F
  176. {
  177. scope=2;
  178. side=1;
  179. scopeCurator=2;
  180. forceInGarage = 1;
  181. displayName="Republic AV7"
  182. crew = "JLTS_Clone_P2_Rex_501";
  183. author="RD501"
  184. faction = macro_republic_faction
  185. editorSubcategory = macro_editor_cat(arty)
  186. vehicleClass = macro_editor_vehicle_type(arty)
  187. RD501_magclamp_small_forbidden = 1;
  188. RD501_magclamp_large_offset[] = {0.0,-10.0,-8.0};
  189. };
  190. };