config.cpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. //get generlized macros
  2. #include "../../../RD501_main/config_macros.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(hailfire)
  6. {
  7. addonRootClass=macro_patch_name(vehicles)
  8. requiredAddons[]=
  9. {
  10. macro_patch_name(vehicles)
  11. };
  12. requiredVersion=0.1;
  13. units[]=
  14. {
  15. macro_new_vehicle(hailfire,cis),
  16. macro_new_vehicle(hailfire,cis_artillery)
  17. };
  18. weapons[]=
  19. {
  20. };
  21. };
  22. };
  23. class CfgVehicles
  24. {
  25. class LandVehicle;
  26. class Tank: LandVehicle
  27. {
  28. class NewTurret;
  29. };
  30. class Tank_F: Tank {
  31. class Turrets
  32. {
  33. class MainTurret: NewTurret
  34. {
  35. class ViewGunner;
  36. class Turrets
  37. {
  38. class CommanderOptics;
  39. };
  40. };
  41. };
  42. };
  43. class 3AS_AAT_base_F: Tank_F
  44. {
  45. class Turrets: Turrets
  46. {
  47. class MainTurret: MainTurret
  48. {
  49. class Turrets: Turrets
  50. {
  51. class CommanderOptics: CommanderOptics
  52. {
  53. };
  54. };
  55. };
  56. };
  57. };
  58. class MBT_01_mlrs_base_F;
  59. class 3AS_Hailfire_base: 3AS_AAT_base_F
  60. {
  61. class Turrets: Turrets
  62. {
  63. class MainTurret: MainTurret
  64. {
  65. class Turrets: Turrets
  66. {
  67. class CommanderOptics: CommanderOptics
  68. {
  69. };
  70. };
  71. };
  72. };
  73. };
  74. class macro_new_vehicle(hailfire,cis): 3AS_Hailfire_base
  75. {
  76. scope=2;
  77. side=0;
  78. scopeCurator=2;
  79. forceInGarage = 1;
  80. faction = macro_cis_faction
  81. editorSubcategory = macro_editor_cat(APC)
  82. vehicleClass = macro_editor_vehicle_type(APC)
  83. crew=macro_new_unit_class(opfor,B1_crew)
  84. displayname = "CIS Hailfire AT";
  85. hiddenSelectionsTextures[]=
  86. {
  87. "3AS\3AS_hailfire\data\headblue_co.paa",
  88. "3AS\3AS_hailfire\data\wheelsblue_co.paa"
  89. };
  90. class Turrets: Turrets
  91. {
  92. class Mainturret: Mainturret
  93. {
  94. weapons[]=
  95. {
  96. "missiles_DAGR",
  97. "SmokeLauncher"
  98. };
  99. magazines[]=
  100. {
  101. "24Rnd_PG_missiles",
  102. "24Rnd_PG_missiles",
  103. "SmokeLauncherMag"
  104. };
  105. };
  106. };
  107. };
  108. class macro_new_vehicle(hailfire,cis_artillery): 3AS_Hailfire_base
  109. {
  110. scope=2;
  111. side=0;
  112. scopeCurator=2;
  113. forceInGarage = 1;
  114. faction = macro_cis_faction
  115. editorSubcategory = macro_editor_cat(APC)
  116. vehicleClass = macro_editor_vehicle_type(APC)
  117. crew=macro_new_unit_class(opfor,B1_crew)
  118. displayname = "CIS Hailfire Artillery";
  119. availableForSupportTypes[]=
  120. {
  121. "Artillery"
  122. };
  123. artilleryScanner=1;
  124. hiddenSelectionsTextures[]=
  125. {
  126. "3AS\3AS_hailfire\data\headred_co.paa",
  127. "3AS\3AS_hailfire\data\wheelsred_co.paa"
  128. };
  129. class Turrets: Turrets
  130. {
  131. class Mainturret: Mainturret
  132. {
  133. weapons[]=
  134. {
  135. "rockets_230mm_GAT",
  136. "SmokeLauncher"
  137. };
  138. magazines[]=
  139. {
  140. "12Rnd_230mm_rockets",
  141. "12Rnd_230mm_rockets",
  142. "SmokeLauncherMag"
  143. };
  144. };
  145. };
  146. };
  147. };