1
0

config.cpp 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. #include "../../../RD501_Main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class macro_patch_name(opfor_human)
  5. {
  6. addonRootClass=macro_patch_name(units);
  7. requiredAddons[] = {
  8. macro_patch_name(units)
  9. };
  10. requiredVersion = 0.1;
  11. units[] = {
  12. macro_new_unit_class(opfor,human_heavy),
  13. macro_new_unit_class(opfor,human_rifleman),
  14. macro_new_unit_class(opfor,human_marksman),
  15. macro_new_unit_class(opfor,human_shotgun),
  16. macro_new_unit_class(opfor,human_AT)
  17. };
  18. };
  19. };
  20. class CfgVehicles
  21. {
  22. class B_T_Recon_TL_F;
  23. class macro_new_unit_class(opfor,human_heavy): B_T_Recon_TL_F
  24. {
  25. displayName = "Loyalist Heavy";
  26. author = "RD501";
  27. scope = 2;
  28. side=0;
  29. backpack="JLTS_Clone_belt_bag";
  30. faction = macro_cis_faction
  31. editorSubcategory = macro_editor_cat(CIS_Humans)
  32. cost = 4
  33. weapons[]=
  34. {
  35. "JLTS_E5C_stock",
  36. "Throw",
  37. "Put"
  38. };
  39. respawnWeapons[]=
  40. {
  41. "JLTS_E5C_stock",
  42. "Throw",
  43. "Put"
  44. };
  45. magazines[]=
  46. {
  47. "JLTS_E5C_mag",
  48. "JLTS_E5C_mag",
  49. "JLTS_E5C_mag",
  50. "JLTS_E5C_mag",
  51. "RD501_thermaldet_x1_mag",
  52. "RD501_thermaldet_x1_mag"
  53. };
  54. respawnMagazines[]=
  55. {
  56. "JLTS_E5C_mag",
  57. "JLTS_E5C_mag",
  58. "JLTS_E5C_mag",
  59. "JLTS_E5C_mag",
  60. "RD501_thermaldet_x1_mag",
  61. "RD501_thermaldet_x1_mag"
  62. };
  63. linkeditems[]=
  64. {
  65. "OPTRE_UNSC_M52A_Armor_Sniper_WDL",
  66. //"H_HelmetO_ViperSP_ghex_F",
  67. "k_Scout_woodland_Helmet",
  68. "442_clone_arf_glasses",
  69. "ItemGPS",
  70. "ItemMap",
  71. "ItemCompass",
  72. "ItemWatch",
  73. "JLTS_droid_comlink",
  74. };
  75. respawnlinkeditems[]=
  76. {
  77. "OPTRE_UNSC_M52A_Armor_Sniper_WDL",
  78. //"H_HelmetO_ViperSP_ghex_F",
  79. "k_Scout_woodland_Helmet",
  80. "442_clone_arf_glasses",
  81. "ItemGPS",
  82. "ItemMap",
  83. "ItemCompass",
  84. "ItemWatch",
  85. "JLTS_droid_comlink",
  86. };
  87. items[]={
  88. "ACE_elasticBandage",
  89. "ACE_elasticBandage",
  90. "ACE_packingBandage",
  91. "ACE_packingBandage",
  92. "ACE_tourniquet",
  93. "ACE_splint",
  94. "RD501_Painkiller"
  95. };
  96. respawnItems[]={
  97. "ACE_elasticBandage",
  98. "ACE_elasticBandage",
  99. "ACE_packingBandage",
  100. "ACE_packingBandage",
  101. "ACE_tourniquet",
  102. "ACE_splint",
  103. "RD501_Painkiller"
  104. };
  105. };
  106. class macro_new_unit_class(opfor,human_rifleman) : macro_new_unit_class(opfor,human_heavy)
  107. {
  108. displayName = "Loyalist Rifleman";
  109. weapons[]=
  110. {
  111. "JLTS_E5",
  112. "Throw",
  113. "Put"
  114. };
  115. respawnWeapons[]=
  116. {
  117. "JLTS_E5C",
  118. "Throw",
  119. "Put"
  120. };
  121. magazines[]=
  122. {
  123. "JLTS_E5_mag",
  124. "JLTS_E5_mag",
  125. "JLTS_E5_mag",
  126. "JLTS_E5_mag",
  127. "RD501_thermaldet_x1_mag",
  128. "RD501_thermaldet_x1_mag"
  129. };
  130. respawnMagazines[]=
  131. {
  132. "JLTS_E5_mag",
  133. "JLTS_E5_mag",
  134. "JLTS_E5_mag",
  135. "JLTS_E5_mag",
  136. "RD501_thermaldet_x1_mag",
  137. "RD501_thermaldet_x1_mag"
  138. };
  139. };
  140. class macro_new_unit_class(opfor,human_marksman) : macro_new_unit_class(opfor,human_heavy)
  141. {
  142. displayName = "Loyalist Marksman";
  143. weapons[]=
  144. {
  145. macro_new_weapon(e5,s),
  146. "Throw",
  147. "Put"
  148. };
  149. respawnWeapons[]=
  150. {
  151. macro_new_weapon(e5,s),
  152. "Throw",
  153. "Put"
  154. };
  155. magazines[]=
  156. {
  157. macro_new_mag(30mw,15),
  158. macro_new_mag(30mw,15),
  159. macro_new_mag(30mw,15),
  160. macro_new_mag(30mw,15),
  161. "RD501_thermaldet_x1_mag",
  162. "RD501_thermaldet_x1_mag"
  163. };
  164. respawnMagazines[]=
  165. {
  166. macro_new_mag(30mw,15),
  167. macro_new_mag(30mw,15),
  168. macro_new_mag(30mw,15),
  169. macro_new_mag(30mw,15),
  170. "RD501_thermaldet_x1_mag",
  171. "RD501_thermaldet_x1_mag"
  172. };
  173. };
  174. class macro_new_unit_class(opfor,human_shotgun) : macro_new_unit_class(opfor,human_heavy)
  175. {
  176. displayName = "Loyalist Breacher";
  177. weapons[]=
  178. {
  179. "JLTS_SBB3",
  180. "Throw",
  181. "Put"
  182. };
  183. respawnWeapons[]=
  184. {
  185. "JLTS_SBB3",
  186. "Throw",
  187. "Put"
  188. };
  189. magazines[]=
  190. {
  191. "JLTS_SBB3_mag",
  192. "JLTS_SBB3_mag",
  193. "JLTS_SBB3_mag",
  194. "JLTS_SBB3_mag",
  195. "RD501_thermaldet_x1_mag",
  196. "RD501_thermaldet_x1_mag"
  197. };
  198. respawnMagazines[]=
  199. {
  200. "JLTS_SBB3_mag",
  201. "JLTS_SBB3_mag",
  202. "JLTS_SBB3_mag",
  203. "JLTS_SBB3_mag",
  204. "RD501_thermaldet_x1_mag",
  205. "RD501_thermaldet_x1_mag"
  206. };
  207. };
  208. class macro_new_unit_class(opfor,human_AT) : macro_new_unit_class(opfor,human_heavy)
  209. {
  210. displayName = "Loyalist AT Rifleman";
  211. weapons[]=
  212. {
  213. "JLTS_E5",
  214. "JLTS_E60R_AT",
  215. "Throw",
  216. "Put"
  217. };
  218. respawnWeapons[]=
  219. {
  220. "JLTS_E5C",
  221. "JLTS_E60R_AT",
  222. "Throw",
  223. "Put"
  224. };
  225. magazines[]=
  226. {
  227. "JLTS_E5_mag",
  228. "JLTS_E5_mag",
  229. "JLTS_E5_mag",
  230. "JLTS_E5_mag",
  231. "JLTS_E60R_AT_mag",
  232. "JLTS_E60R_AT_mag",
  233. "JLTS_E60R_AT_mag",
  234. "RD501_thermaldet_x1_mag",
  235. "RD501_thermaldet_x1_mag"
  236. };
  237. respawnMagazines[]=
  238. {
  239. "JLTS_E5_mag",
  240. "JLTS_E5_mag",
  241. "JLTS_E5_mag",
  242. "JLTS_E5_mag",
  243. "JLTS_E60R_AT_mag",
  244. "JLTS_E60R_AT_mag",
  245. "JLTS_E60R_AT_mag",
  246. "RD501_thermaldet_x1_mag",
  247. "RD501_thermaldet_x1_mag"
  248. };
  249. }
  250. };