config.cpp 7.8 KB

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