config.cpp 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. #include "../../RD501_main/config_macros.hpp"
  2. #include "../droid_macros.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(B1)
  6. {
  7. addonRootClass=macro_patch_name(droids_config);
  8. requiredAddons[] = {
  9. macro_patch_name(droids_config),
  10. macro_patch_name(E_Web),
  11. "JLTS_characters_DroidArmor",
  12. "JLTS_weapons_RPS6",
  13. "JLTS_weapons_E5",
  14. "JLTS_weapons_E5S",
  15. "JLTS_weapons_E60R",
  16. "212th_swop_weapons",
  17. };
  18. requiredVersion = 0.1;
  19. units[] = {
  20. macro_new_unit_class(opfor,B1),
  21. macro_new_unit_class(opfor,B1_marine),
  22. macro_new_unit_class(opfor,B1_security),
  23. macro_new_unit_class(opfor,B1_commander),
  24. macro_new_unit_class(opfor,B1_pilot),
  25. macro_new_unit_class(opfor,B1_crew),
  26. macro_new_unit_class(opfor,B1_prototype),
  27. macro_new_unit_class(opfor,B1_heavy),
  28. macro_new_unit_class(opfor,B1_AT_heavy),
  29. macro_new_unit_class(opfor,B1_AT_light),
  30. macro_new_unit_class(opfor,B1_AA),
  31. macro_new_unit_class(opfor,B1_shotgun),
  32. macro_new_unit_class(opfor,B1_marksman),
  33. macro_new_unit_class(opfor,B1_jammer),
  34. macro_new_unit_class(opfor,B1_E_Web),
  35. macro_new_unit_class(opfor,B1_grenadier)
  36. };
  37. };
  38. };
  39. class CfgVehicles
  40. {
  41. #include "backpacks.hpp"
  42. class JLTS_Droid_B1_E5;
  43. class JLTS_Droid_B1_Marine;
  44. class JLTS_Droid_B1_Security;
  45. class JLTS_Droid_B1_Commander;
  46. class JLTS_Droid_B1_Pilot;
  47. class JLTS_Droid_B1_Crew;
  48. class JLTS_Droid_B1_Prototype;
  49. // base droids
  50. class macro_new_unit_class(opfor,B1): JLTS_Droid_B1_E5
  51. {
  52. displayName = "B1 Battledroid";
  53. #include "b1_common.hpp"
  54. macro_e5_loadout
  55. backpack=macro_new_backpack_class(opfor,B1);
  56. };
  57. class macro_new_unit_class(opfor,B1_marine): JLTS_Droid_B1_Marine
  58. {
  59. displayName="B1 Battledroid (Marine)";
  60. #include "b1_common.hpp"
  61. macro_e5_loadout
  62. backpack=macro_new_backpack_class(opfor,B1);
  63. };
  64. class macro_new_unit_class(opfor,B1_security): JLTS_Droid_B1_Security
  65. {
  66. displayName="B1 Battledroid (Security)";
  67. #include "b1_common.hpp"
  68. macro_e5_loadout
  69. backpack=macro_new_backpack_class(opfor,B1);
  70. };
  71. class macro_new_unit_class(opfor,B1_commander): JLTS_Droid_B1_Commander
  72. {
  73. displayName="B1 Battledroid (Commander)";
  74. #include "b1_common.hpp"
  75. macro_e5_loadout
  76. backpack=macro_new_backpack_class(opfor,B1_antenna);
  77. };
  78. class macro_new_unit_class(opfor,B1_pilot): JLTS_Droid_B1_Pilot
  79. {
  80. displayName="B1 Battledroid (Pilot)";
  81. #include "b1_common.hpp"
  82. macro_e5_loadout
  83. backpack=macro_new_backpack_class(opfor,B1);
  84. };
  85. class macro_new_unit_class(opfor,B1_crew): JLTS_Droid_B1_Crew
  86. {
  87. displayName="B1 Battledroid (Crew)";
  88. #include "b1_common.hpp"
  89. macro_e5_loadout
  90. backpack=macro_new_backpack_class(opfor,B1);
  91. };
  92. class macro_new_unit_class(opfor,B1_prototype): JLTS_Droid_B1_Prototype
  93. {
  94. displayName="B1 Battledroid (SpecOps)";
  95. #include "b1_common.hpp"
  96. weapons[]=
  97. {
  98. macro_spec_ops_gun,
  99. "Throw",
  100. "Put"
  101. };
  102. respawnWeapons[]=
  103. {
  104. macro_spec_ops_gun,
  105. "Throw",
  106. "Put"
  107. };
  108. magazines[]=
  109. {
  110. macro_spec_ops_gun_mags,
  111. macro_thermal_imp,
  112. macro_thermal_imp,
  113. macro_smoke,
  114. macro_smoke,
  115. macro_flashbang,
  116. macro_flashbang
  117. };
  118. respawnMagazines[]=
  119. {
  120. macro_spec_ops_gun_mags,
  121. macro_thermal_imp,
  122. macro_thermal_imp,
  123. macro_smoke,
  124. macro_smoke,
  125. macro_flashbang,
  126. macro_flashbang
  127. };
  128. backpack=macro_new_backpack_class(opfor,B1_prototype);
  129. };
  130. // fancy droids
  131. class macro_new_unit_class(opfor,B1_heavy): macro_new_unit_class(opfor,B1_security)
  132. {
  133. displayName="B1 Battledroid (Heavy)";
  134. weapons[]=
  135. {
  136. macro_lmg,
  137. "Throw",
  138. "Put"
  139. };
  140. respawnWeapons[]=
  141. {
  142. macro_lmg,
  143. "Throw",
  144. "Put"
  145. };
  146. magazines[]=
  147. {
  148. macro_lmg_mags,
  149. macro_thermal_det,
  150. macro_thermal_det,
  151. macro_smoke
  152. };
  153. respawnMagazines[]=
  154. {
  155. macro_lmg_mags,
  156. macro_thermal_det,
  157. macro_thermal_det,
  158. macro_smoke
  159. };
  160. };
  161. class macro_new_unit_class(opfor,B1_AT_heavy): macro_new_unit_class(opfor,B1_security)
  162. {
  163. displayName="B1 Battledroid (AT heavy)";
  164. weapons[]=
  165. {
  166. macro_e5,
  167. macro_at_heavy,
  168. "Throw",
  169. "Put"
  170. };
  171. respawnWeapons[]=
  172. {
  173. macro_e5,
  174. macro_at_heavy,
  175. "Throw",
  176. "Put"
  177. };
  178. magazines[]=
  179. {
  180. macro_e5_mags,
  181. macro_at_heavy_mag,
  182. macro_thermal_det,
  183. macro_smoke
  184. };
  185. respawnMagazines[]=
  186. {
  187. macro_e5_mags,
  188. macro_at_heavy_mag,
  189. macro_thermal_det,
  190. macro_smoke
  191. };
  192. backpack=macro_new_backpack_class(opfor,B1_AT_heavy);
  193. };
  194. class macro_new_unit_class(opfor,B1_AT_light): macro_new_unit_class(opfor,B1_security)
  195. {
  196. displayName="B1 Battledroid (AT light)";
  197. weapons[]=
  198. {
  199. macro_e5,
  200. macro_at_light,
  201. "Throw",
  202. "Put"
  203. };
  204. respawnWeapons[]=
  205. {
  206. macro_e5,
  207. macro_at_light,
  208. "Throw",
  209. "Put"
  210. };
  211. magazines[]=
  212. {
  213. macro_e5_mags,
  214. macro_at_light_mag,
  215. macro_thermal_det,
  216. macro_smoke
  217. };
  218. respawnMagazines[]=
  219. {
  220. macro_e5_mags,
  221. macro_at_light_mag,
  222. macro_thermal_det,
  223. macro_smoke
  224. };
  225. backpack=macro_new_backpack_class(opfor,B1_AT_light);
  226. };
  227. class macro_new_unit_class(opfor,B1_AA): macro_new_unit_class(opfor,B1_security)
  228. {
  229. displayName="B1 Battledroid (AA)";
  230. weapons[]=
  231. {
  232. macro_e5,
  233. macro_aa,
  234. "Throw",
  235. "Put"
  236. };
  237. respawnWeapons[]=
  238. {
  239. macro_e5,
  240. macro_aa,
  241. "Throw",
  242. "Put"
  243. };
  244. magazines[]=
  245. {
  246. macro_e5_mags,
  247. macro_aa_mag,
  248. macro_thermal_det,
  249. macro_smoke
  250. };
  251. respawnMagazines[]=
  252. {
  253. macro_e5_mags,
  254. macro_aa_mag,
  255. macro_thermal_det,
  256. macro_smoke
  257. };
  258. backpack=macro_new_backpack_class(opfor,B1_AA);
  259. };
  260. class macro_new_unit_class(opfor,B1_shotgun): macro_new_unit_class(opfor,B1_security)
  261. {
  262. displayName="B1 Battledroid (Shotgun)";
  263. weapons[]=
  264. {
  265. macro_scattergun,
  266. "Throw",
  267. "Put"
  268. };
  269. respawnWeapons[]=
  270. {
  271. macro_scattergun,
  272. "Throw",
  273. "Put"
  274. };
  275. magazines[]=
  276. {
  277. macro_scattergun_mags,
  278. macro_thermal_det,
  279. macro_thermal_det,
  280. macro_smoke
  281. };
  282. respawnMagazines[]=
  283. {
  284. macro_scattergun_mags,
  285. macro_thermal_det,
  286. macro_thermal_det,
  287. macro_smoke
  288. };
  289. };
  290. class macro_new_unit_class(opfor,B1_marksman): macro_new_unit_class(opfor,B1_marine)
  291. {
  292. displayName="B1 Battledroid (Marksman)";
  293. weapons[]=
  294. {
  295. macro_marksman_rifle,
  296. "Throw",
  297. "Put"
  298. };
  299. respawnWeapons[]=
  300. {
  301. macro_marksman_rifle,
  302. "Throw",
  303. "Put"
  304. };
  305. magazines[]=
  306. {
  307. macro_marksman_rifle_mags,
  308. macro_thermal_det,
  309. macro_smoke
  310. };
  311. respawnMagazines[]=
  312. {
  313. macro_marksman_rifle_mags,
  314. macro_thermal_det,
  315. macro_smoke
  316. };
  317. };
  318. class macro_new_unit_class(opfor,B1_jammer): macro_new_unit_class(opfor,B1)
  319. {
  320. displayName="B1 Battledroid (Jammer)";
  321. backpack=macro_backpack_jammer;
  322. }
  323. class macro_new_unit_class(opfor,B1_E_Web): macro_new_unit_class(opfor,B1)
  324. {
  325. displayName="B1 Battledroid (E-Web Carrier)";
  326. backpack = macro_backpack_eweb;
  327. }
  328. class macro_new_unit_class(opfor,B1_grenadier): macro_new_unit_class(opfor,B1_security)
  329. {
  330. displayName="B1 Battledroid (Grenadier)";
  331. weapons[]=
  332. {
  333. macro_grenade_launcher
  334. };
  335. respawnWeapons[]=
  336. {
  337. macro_grenade_launcher
  338. };
  339. magazines[]=
  340. {
  341. macro_grenade_launcher_mags,
  342. macro_grenade_launcher_grenades
  343. };
  344. respawnMagazines[]=
  345. {
  346. macro_grenade_launcher_mags,
  347. macro_grenade_launcher_grenades
  348. };
  349. }
  350. };