config.cpp 8.0 KB

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