config.cpp 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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. cost=1;
  57. };
  58. class macro_new_unit_class(opfor,B1_marine): JLTS_Droid_B1_Marine
  59. {
  60. displayName="B1 Battledroid (Marine)";
  61. #include "b1_common.hpp"
  62. macro_e5_loadout
  63. backpack=macro_new_backpack_class(opfor,B1);
  64. cost=1;
  65. };
  66. class macro_new_unit_class(opfor,B1_security): JLTS_Droid_B1_Security
  67. {
  68. displayName="B1 Battledroid (Security)";
  69. #include "b1_common.hpp"
  70. macro_e5_loadout
  71. backpack=macro_new_backpack_class(opfor,B1);
  72. cost=1;
  73. };
  74. class macro_new_unit_class(opfor,B1_commander): JLTS_Droid_B1_Commander
  75. {
  76. displayName="B1 Battledroid (Commander)";
  77. #include "b1_common.hpp"
  78. macro_e5_loadout
  79. backpack=macro_new_backpack_class(opfor,B1_antenna);
  80. cost=5;
  81. };
  82. class macro_new_unit_class(opfor,B1_pilot): JLTS_Droid_B1_Pilot
  83. {
  84. displayName="B1 Battledroid (Pilot)";
  85. #include "b1_common.hpp"
  86. macro_e5_loadout
  87. backpack=macro_new_backpack_class(opfor,B1);
  88. cost=2;
  89. };
  90. class macro_new_unit_class(opfor,B1_crew): JLTS_Droid_B1_Crew
  91. {
  92. displayName="B1 Battledroid (Crew)";
  93. #include "b1_common.hpp"
  94. macro_e5_loadout
  95. backpack=macro_new_backpack_class(opfor,B1);
  96. cost=1;
  97. };
  98. class macro_new_unit_class(opfor,B1_prototype): JLTS_Droid_B1_Prototype
  99. {
  100. displayName="B1 Battledroid (SpecOps)";
  101. editorSubcategory = macro_editor_cat(CIS_SpecOps)
  102. #include "b1_common.hpp"
  103. weapons[]=
  104. {
  105. macro_spec_ops_gun,
  106. "Throw",
  107. "Put"
  108. };
  109. respawnWeapons[]=
  110. {
  111. macro_spec_ops_gun,
  112. "Throw",
  113. "Put"
  114. };
  115. magazines[]=
  116. {
  117. macro_spec_ops_gun_mags,
  118. macro_thermal_imp,
  119. macro_thermal_imp,
  120. macro_smoke,
  121. macro_smoke,
  122. macro_flashbang,
  123. macro_flashbang,
  124. macro_dioxis_grenade
  125. };
  126. respawnMagazines[]=
  127. {
  128. macro_spec_ops_gun_mags,
  129. macro_thermal_imp,
  130. macro_thermal_imp,
  131. macro_smoke,
  132. macro_smoke,
  133. macro_flashbang,
  134. macro_flashbang,
  135. macro_dioxis_grenade
  136. };
  137. items[]={
  138. _3(macro_zip_tie)
  139. };
  140. respawnItems[]={
  141. _3(macro_zip_tie)
  142. };
  143. backpack=macro_new_backpack_class(opfor,B1_prototype);
  144. cost=3;
  145. };
  146. // fancy droids
  147. class macro_new_unit_class(opfor,B1_heavy): macro_new_unit_class(opfor,B1_security)
  148. {
  149. displayName="B1 Battledroid (Heavy)";
  150. weapons[]=
  151. {
  152. macro_lmg,
  153. "Throw",
  154. "Put"
  155. };
  156. respawnWeapons[]=
  157. {
  158. macro_lmg,
  159. "Throw",
  160. "Put"
  161. };
  162. magazines[]=
  163. {
  164. macro_lmg_mags,
  165. macro_thermal_det,
  166. macro_thermal_det,
  167. macro_smoke
  168. };
  169. respawnMagazines[]=
  170. {
  171. macro_lmg_mags,
  172. macro_thermal_det,
  173. macro_thermal_det,
  174. macro_smoke
  175. };
  176. cost=2;
  177. };
  178. class macro_new_unit_class(opfor,B1_AT_heavy): macro_new_unit_class(opfor,B1_pilot)
  179. {
  180. displayName="B1 Battledroid (AT heavy)";
  181. threat[]={0.2,1,0.3};
  182. weapons[]=
  183. {
  184. macro_e5,
  185. macro_at_heavy,
  186. "Throw",
  187. "Put"
  188. };
  189. respawnWeapons[]=
  190. {
  191. macro_e5,
  192. macro_at_heavy,
  193. "Throw",
  194. "Put"
  195. };
  196. magazines[]=
  197. {
  198. macro_e5_mags,
  199. macro_at_heavy_mag,
  200. macro_thermal_det,
  201. macro_smoke
  202. };
  203. respawnMagazines[]=
  204. {
  205. macro_e5_mags,
  206. macro_at_heavy_mag,
  207. macro_thermal_det,
  208. macro_smoke
  209. };
  210. backpack=macro_new_backpack_class(opfor,B1_AT_heavy);
  211. cost=2;
  212. };
  213. class macro_new_unit_class(opfor,B1_AT_light): macro_new_unit_class(opfor,B1_pilot)
  214. {
  215. displayName="B1 Battledroid (AT light)";
  216. threat[]={0.6,1,0.3};
  217. weapons[]=
  218. {
  219. macro_e5,
  220. macro_at_light,
  221. "Throw",
  222. "Put"
  223. };
  224. respawnWeapons[]=
  225. {
  226. macro_e5,
  227. macro_at_light,
  228. "Throw",
  229. "Put"
  230. };
  231. magazines[]=
  232. {
  233. macro_e5_mags,
  234. macro_at_light_mag,
  235. macro_thermal_det,
  236. macro_smoke
  237. };
  238. respawnMagazines[]=
  239. {
  240. macro_e5_mags,
  241. macro_at_light_mag,
  242. macro_thermal_det,
  243. macro_smoke
  244. };
  245. backpack=macro_new_backpack_class(opfor,B1_AT_light);
  246. cost=2;
  247. };
  248. class macro_new_unit_class(opfor,B1_AA): macro_new_unit_class(opfor,B1_pilot)
  249. {
  250. displayName="B1 Battledroid (AA)";
  251. cost=2;
  252. threat[]={0.2,0.1,1};
  253. weapons[]=
  254. {
  255. macro_e5,
  256. macro_aa,
  257. "Throw",
  258. "Put"
  259. };
  260. respawnWeapons[]=
  261. {
  262. macro_e5,
  263. macro_aa,
  264. "Throw",
  265. "Put"
  266. };
  267. magazines[]=
  268. {
  269. macro_e5_mags,
  270. macro_aa_mag,
  271. macro_thermal_det,
  272. macro_smoke
  273. };
  274. respawnMagazines[]=
  275. {
  276. macro_e5_mags,
  277. macro_aa_mag,
  278. macro_thermal_det,
  279. macro_smoke
  280. };
  281. backpack=macro_new_backpack_class(opfor,B1_AA);
  282. cost=2;
  283. };
  284. class macro_new_unit_class(opfor,B1_shotgun): macro_new_unit_class(opfor,B1_security)
  285. {
  286. displayName="B1 Battledroid (Shotgun)";
  287. weapons[]=
  288. {
  289. macro_scattergun,
  290. "Throw",
  291. "Put"
  292. };
  293. respawnWeapons[]=
  294. {
  295. macro_scattergun,
  296. "Throw",
  297. "Put"
  298. };
  299. magazines[]=
  300. {
  301. macro_scattergun_mags,
  302. macro_thermal_det,
  303. macro_thermal_det,
  304. macro_smoke
  305. };
  306. respawnMagazines[]=
  307. {
  308. macro_scattergun_mags,
  309. macro_thermal_det,
  310. macro_thermal_det,
  311. macro_smoke
  312. };
  313. cost=2;
  314. };
  315. class macro_new_unit_class(opfor,B1_marksman): macro_new_unit_class(opfor,B1_marine)
  316. {
  317. displayName="B1 Battledroid (Marksman)";
  318. weapons[]=
  319. {
  320. macro_marksman_rifle,
  321. "Throw",
  322. "Put"
  323. };
  324. respawnWeapons[]=
  325. {
  326. macro_marksman_rifle,
  327. "Throw",
  328. "Put"
  329. };
  330. magazines[]=
  331. {
  332. macro_marksman_rifle_mags,
  333. macro_thermal_det,
  334. macro_smoke
  335. };
  336. respawnMagazines[]=
  337. {
  338. macro_marksman_rifle_mags,
  339. macro_thermal_det,
  340. macro_smoke
  341. };
  342. cost=2;
  343. };
  344. class macro_new_unit_class(opfor,B1_jammer): macro_new_unit_class(opfor,B1)
  345. {
  346. displayName="B1 Battledroid (Jammer)";
  347. backpack=macro_backpack_jammer;
  348. cost=3;
  349. }
  350. class macro_new_unit_class(opfor,B1_E_Web): macro_new_unit_class(opfor,B1)
  351. {
  352. displayName="B1 Battledroid (E-Web Carrier)";
  353. backpack = macro_backpack_eweb;
  354. cost=3;
  355. }
  356. class macro_new_unit_class(opfor,B1_grenadier): macro_new_unit_class(opfor,B1_security)
  357. {
  358. displayName="B1 Battledroid (Grenadier)";
  359. weapons[]=
  360. {
  361. macro_grenade_launcher
  362. };
  363. respawnWeapons[]=
  364. {
  365. macro_grenade_launcher
  366. };
  367. magazines[]=
  368. {
  369. macro_grenade_launcher_mags,
  370. macro_grenade_launcher_grenades
  371. };
  372. respawnMagazines[]=
  373. {
  374. macro_grenade_launcher_mags,
  375. macro_grenade_launcher_grenades
  376. };
  377. cost=2;
  378. }
  379. };