config.cpp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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 heavy_ordinance_tank
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_hot_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(heavy_ordinance_tank)
  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(heavy_ordinance_tank,Mynock),
  23. macro_new_vehicle(heavy_ordinance_tank,republic),
  24. macro_new_vehicle(heavy_ordinance_tank,CIS)
  25. };
  26. weapons[]=
  27. {
  28. };
  29. };
  30. };
  31. #include "../../common/sensor_templates.hpp"
  32. class DefaultEventhandlers ;
  33. class CfgVehicles
  34. {
  35. #include "inheritance.hpp"
  36. class macro_new_vehicle(heavy_ordinance_tank,Mynock) : B_MBT_01_arty_F
  37. {
  38. displayName = "Republic Trebuchet (Mynock)";
  39. crew = "SWOP_Clonetrooper_P1";
  40. author="RD501"
  41. scope = 2;
  42. side=1;
  43. scopeCurator=2;
  44. faction = macro_republic_faction
  45. editorSubcategory = macro_editor_cat(arty)
  46. vehicleClass = macro_editor_vehicle_type(arty)
  47. smokeLauncherGrenadeCount = 12;
  48. smokeLauncherAngle = 90;
  49. forceInGarage=1;
  50. author = "RD501";
  51. class TransportItems
  52. {
  53. };
  54. class TransportMagazines
  55. {
  56. };
  57. class TransportWeapons
  58. {
  59. };
  60. #include "../Mynock/common_stuff_mynock.hpp"
  61. class EventHandlers: DefaultEventhandlers
  62. {
  63. init = "if (local (_this select 0)) then {[(_this select 0), '', [], false] call bis_fnc_initVehicle;};";
  64. };
  65. class turrets : turrets
  66. {
  67. class MainTurret : Mainturret
  68. {
  69. class Turrets : Turrets
  70. {
  71. class CommanderOptics : CommanderOptics
  72. {
  73. weapons[] = {
  74. macro_basic_air_weapons,
  75. "SmokeLauncher",
  76. macro_new_weapon(generic,plasma_aircraft_cannon)
  77. };
  78. magazines[] = {
  79. macro_basic_air_mags,
  80. "SmokeLauncherMag",
  81. macro_new_mag(generic_aircraft_cannon_plasma_red,1000),
  82. macro_new_mag(generic_aircraft_cannon_plasma_red,1000)
  83. };
  84. };
  85. };
  86. weapons[] = {
  87. "mortar_155mm_AMOS",
  88. "Cannon_ARCback",
  89. "cannon_125mm"
  90. };
  91. magazines[] = {
  92. "32Rnd_155mm_Mo_shells", "4Rnd_155mm_Mo_guided", "6Rnd_155mm_Mo_mine", "2Rnd_155mm_Mo_Cluster", "6Rnd_155mm_Mo_smoke", "2Rnd_155mm_Mo_LG", "6Rnd_155mm_Mo_AT_mine",
  93. "500Rnd_Cannon_ARCback",
  94. "24Rnd_125mm_APFSDS_T_Red"
  95. };
  96. };
  97. };
  98. textureList[] = {};
  99. hiddenSelectionsTextures[] =
  100. {
  101. "RD501_Vehicles\textures\mbt01\mbt01_ext1_mynock_co.paa",
  102. "RD501_Vehicles\textures\mbt01\trebuchet\trebuchet_ext2_mynock_co.paa",
  103. "RD501_Vehicles\textures\mbt01\trebuchet\trebuchet_turret_mynock_co.paa",
  104. "A3\Armor_F\Data\camonet_NATO_Desert_CO.paa"
  105. };
  106. };
  107. class macro_new_vehicle(heavy_ordinance_tank,Republic) : macro_new_vehicle(heavy_ordinance_tank,Mynock)
  108. {
  109. displayName = "Republic Trebuchet";
  110. hiddenSelectionsTextures[] =
  111. {
  112. "RD501_Vehicles\textures\mbt01\mbt01_ext1_republic_co.paa",
  113. "RD501_Vehicles\textures\mbt01\trebuchet\trebuchet_ext2_republic_co.paa",
  114. "RD501_Vehicles\textures\mbt01\trebuchet\trebuchet_turret_republic_co.paa",
  115. "A3\Armor_F\Data\camonet_NATO_Desert_CO.paa"
  116. };
  117. }
  118. class macro_new_vehicle(heavy_ordinance_tank,CIS) : macro_new_vehicle(heavy_ordinance_tank,Mynock)
  119. {
  120. displayName = "CIS Trebuchet";
  121. crew=macro_new_unit_class(opfor,B1_crew)
  122. scope = 2;
  123. side=0;
  124. scopeCurator=2;
  125. faction = macro_cis_faction
  126. editorSubcategory = macro_editor_cat(arty)
  127. vehicleClass = macro_editor_vehicle_type(arty)
  128. author = "RD501";
  129. forceInGarage=1;
  130. class turrets : turrets
  131. {
  132. class MainTurret : Mainturret
  133. {
  134. class Turrets : Turrets
  135. {
  136. class CommanderOptics : CommanderOptics
  137. {
  138. weapons[] = {
  139. macro_basic_air_weapons,
  140. "SmokeLauncher",
  141. macro_new_weapon(generic,plasma_aircraft_cannon)
  142. };
  143. magazines[] = {
  144. macro_basic_air_mags,
  145. "SmokeLauncherMag",
  146. macro_new_mag(generic_aircraft_cannon_plasma_red,1000),
  147. macro_new_mag(generic_aircraft_cannon_plasma_red,1000)
  148. };
  149. };
  150. };
  151. };
  152. };
  153. textureList[] = {};
  154. hiddenSelectionsTextures[] =
  155. {
  156. "RD501_Vehicles\textures\mbt01\mbt01_ext1_cis_co.paa",
  157. "RD501_Vehicles\textures\mbt01\trebuchet\trebuchet_ext2_cis_co.paa",
  158. "RD501_Vehicles\textures\mbt01\trebuchet\trebuchet_turret_cis_co.paa",
  159. "A3\Armor_F\Data\camonet_NATO_Desert_CO.paa"
  160. };
  161. };
  162. };