config.cpp 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. //get generlized macros
  2. #include "../../../RD501_main/config_macros.hpp"
  3. //General name of the vehicle
  4. #define vehicle_addon nuclass
  5. class CfgPatches
  6. {
  7. class macro_patch_name(nuclass)
  8. {
  9. addonRootClass=macro_patch_name(vehicles)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(vehicles)
  13. };
  14. requiredVersion=0.1;
  15. units[]=
  16. {
  17. macro_new_vehicle(nuclass,mk1)
  18. };
  19. weapons[]=
  20. {
  21. };
  22. };
  23. };
  24. class CfgVehicles
  25. {
  26. class 3as_nuclass_base;
  27. class 3as_nuclass_f: 3as_nuclass_base
  28. {
  29. class ViewPilot;
  30. class UserActions;
  31. };
  32. class 3AS_Nuclass : 3as_nuclass_f
  33. {
  34. class ViewPilot: ViewPilot{};
  35. class UserActions: UserActions
  36. {
  37. class rampOpen;
  38. class rampClose;
  39. class frontrampOpen;
  40. class frontrampClose;
  41. };
  42. };
  43. class macro_new_vehicle(nuclass,mk1) : 3AS_Nuclass
  44. {
  45. scope=2;
  46. displayName="Republic NuClass Mk.I"
  47. armor=2300;
  48. faction = macro_republic_faction
  49. editorSubcategory = macro_editor_cat_air(Republic_heli)
  50. vehicleClass = macro_editor_vehicle_type_air(Republic)
  51. transportSoldier=35;
  52. #include "../../common/common_pilotCamera.hpp"
  53. RD501_magclamp_large[] = {0.0,1.5,-0.5};
  54. RD501_magclamp_small_forbidden=1;
  55. RD501_magclamp_large_offset[]={0.0,0.0,-10.0};
  56. weapons[]=
  57. {
  58. "ParticleBeamCannon_Nu",
  59. "CMFlareLauncher",
  60. "missiles_DAR",
  61. macro_new_weapon(generic,kannon),
  62. "Laserdesignator_pilotCamera"
  63. };
  64. magazines[]=
  65. {
  66. "240Rnd_CMFlare_Chaff_Magazine",
  67. "240Rnd_CMFlare_Chaff_Magazine",
  68. "240Rnd_CMFlare_Chaff_Magazine",
  69. "240Rnd_CMFlare_Chaff_Magazine",
  70. "Laser_Battery_F",
  71. "Laser_Battery_F",
  72. "Laser_Battery_F",
  73. "24Rnd_missiles",
  74. "24Rnd_missiles",
  75. "24Rnd_missiles",
  76. "24Rnd_missiles",
  77. macro_new_mag(Kannon,100),
  78. macro_new_mag(Kannon,100),
  79. "Laserbatteries"
  80. };
  81. class UserActions:UserActions
  82. {
  83. class ThrusterEngage
  84. {
  85. displayName = "";
  86. displayNameDefault = "";
  87. textToolTip = "";
  88. position = "pilotview";
  89. radius = 20;
  90. priority = 0;
  91. onlyForPlayer = 1;
  92. condition = "((player == driver this) AND (alive this))";
  93. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseIncrease.sqf""";
  94. shortcut="User19"
  95. };
  96. class ThrusterDisengage: ThrusterEngage
  97. {
  98. priority = 0;
  99. displayName = "";
  100. displayNameDefault = "";
  101. textToolTip = "";
  102. condition = "((player == driver this) AND (alive this))";
  103. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseDecrease.sqf""";
  104. shortcut="User20"
  105. };
  106. class rampOpen: rampOpen
  107. {
  108. condition="(this animationSourcePhase 'ramp' == 0) AND (alive this) AND (player in [gunner this, driver this])";
  109. };
  110. class rampClose: rampClose
  111. {
  112. condition="(this animationSourcePhase 'ramp' == 1) AND (alive this) AND (player in [gunner this, driver this])";
  113. };
  114. class frontrampOpen: frontrampOpen
  115. {
  116. condition="(this animationSourcePhase 'rampfront' == 0) AND (alive this) AND (player in [gunner this, driver this])";
  117. };
  118. class frontrampClose: frontrampClose
  119. {
  120. condition="(this animationSourcePhase 'rampfront' == 1) AND (alive this) AND (player in [gunner this, driver this])";
  121. };
  122. };
  123. class ACE_SelfActions
  124. {
  125. class ACE_Passengers
  126. {
  127. condition = "alive _target";
  128. displayName = "Passengers";
  129. insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
  130. statement = "";
  131. };
  132. #include "../../common/universal_hud_color_changer.hpp"
  133. };
  134. class ViewPilot: ViewPilot
  135. {
  136. initAngleX = 0;
  137. };
  138. class TransportWeapons
  139. {
  140. class _transport_dc15a
  141. {
  142. weapon = macro_new_weapon(DC,15a)
  143. count = 5;
  144. };
  145. class _transport_dc15s
  146. {
  147. weapon = macro_new_weapon(DC,r15s)
  148. count = 5;
  149. };
  150. class _transport_dc15c
  151. {
  152. weapon = macro_new_weapon(DC,15c)
  153. count = 5;
  154. };
  155. class _transport_dc15l
  156. {
  157. weapon = macro_new_weapon(DC,15l)
  158. count = 2;
  159. };
  160. class _transport_z6
  161. {
  162. weapon = macro_new_weapon_nofam(rz6)
  163. count = 2;
  164. };
  165. class _transport_dc15gl
  166. {
  167. weapon = macro_new_weapon(DC,15cgl)
  168. count = 2;
  169. };
  170. class _transport_valken38x
  171. {
  172. weapon = macro_new_weapon_nofam(valken38x)
  173. count = 2;
  174. };
  175. class _transport_rps6
  176. {
  177. weapon = macro_new_weapon(launcher,rps6)
  178. count = 2;
  179. };
  180. class _transport_rps1
  181. {
  182. weapon = macro_new_weapon(launcher,rps1)
  183. count = 2;
  184. };
  185. class _transport_rps4
  186. {
  187. weapon = macro_new_weapon(launcher,RPS4)
  188. count = 2;
  189. };
  190. class _transport_plx
  191. {
  192. weapon = macro_new_weapon(Launcher,PLX1)
  193. count = 1;
  194. };
  195. class _transport_z1000
  196. {
  197. weapon = macro_new_weapon_nofam(z1000)
  198. count = 1;
  199. };
  200. class _transport_dc15x
  201. {
  202. weapon = macro_new_weapon(DC,r15x)
  203. count = 1;
  204. };
  205. class _transport_rgl6
  206. {
  207. weapon = macro_new_weapon_nofam(rgl6)
  208. count = 1;
  209. };
  210. };
  211. class TransportMagazines
  212. {
  213. class transport_2mw30
  214. {
  215. magazine = macro_new_mag(2mw,30);
  216. count = 15;
  217. };
  218. class transport_5mw15
  219. {
  220. magazine = macro_new_mag(5mw,10);
  221. count = 15;
  222. };
  223. class transport_5mw60
  224. {
  225. magazine = macro_new_mag(5mw,60)
  226. count = 60;
  227. };
  228. class transport_10mw30
  229. {
  230. magazine = macro_new_mag(10mw,30);
  231. count = 60;
  232. };
  233. class transport_10mw400
  234. {
  235. magazine = macro_new_mag(10mw,400);
  236. count = 15;
  237. };
  238. class _transport_20mw20
  239. {
  240. magazine = macro_new_mag(20mw,20);
  241. count = 20;
  242. };
  243. class _transport_20mwup20
  244. {
  245. magazine = macro_new_mag(20mwup,20);
  246. count = 40;
  247. };
  248. class _transport_20mwdp20
  249. {
  250. magazine = macro_new_mag(20mwdp,20);
  251. count = 40;
  252. };
  253. class _transport_20mw240
  254. {
  255. magazine = macro_new_mag(20mw,240);
  256. count = 20;
  257. };
  258. class _transport_30mw10
  259. {
  260. magazine = macro_new_mag(30mw,10);
  261. count = 15;
  262. }
  263. class _transport_30mw7
  264. {
  265. magazine = macro_new_mag(30mw,7)
  266. count = 15;
  267. };
  268. class _transport_40mw5
  269. {
  270. magazine = macro_new_mag(40mw,5)
  271. count = 10;
  272. };
  273. class _transport_stun5
  274. {
  275. magazine = macro_new_mag(stun,5)
  276. count = 20;
  277. };
  278. class _transport_launcher_AT_mags
  279. {
  280. magazine = macro_new_mag(RPS_AT,1)
  281. count = 20;
  282. };
  283. class _transport_launcher_AA_mags
  284. {
  285. magazine = macro_new_mag(RPS_AA,1)
  286. count = 20;
  287. };
  288. class _transport_launcher_RPS4AT_mags
  289. {
  290. magazine = macro_new_mag(rps4heat,1)
  291. count = 20;
  292. };
  293. class _transport_launcher_ARPS4HE_mags
  294. {
  295. magazine = macro_new_mag(rps4he,1)
  296. count = 20;
  297. };
  298. class _transport_launcher_PLXAT_mags
  299. {
  300. magazine = "JLTS_PLX1_AT_mag"
  301. count = 10;
  302. };
  303. class _transport_launcher_PLXAP_mags
  304. {
  305. magazine = "JLTS_PLX1_AP_mag"
  306. count = 10;
  307. };
  308. class _transport_he3
  309. {
  310. magazine = macro_new_mag(UGL_HE,3);
  311. count = 15;
  312. };
  313. class _transport_ap2
  314. {
  315. magazine = macro_new_mag(UGL_AP,2);
  316. count = 15;
  317. };
  318. class _transport_emp1
  319. {
  320. magazine = macro_new_mag(UGL_EMP,1);
  321. count = 3;
  322. };
  323. class _transport_HuntIR_M203
  324. {
  325. magazine = "ACE_HuntIR_M203";
  326. count = 15;
  327. };
  328. class _transport_C12_Remote_Mag
  329. {
  330. magazine = "C12_Remote_Mag";
  331. count = 2;
  332. };
  333. class _transport_RGLHE
  334. {
  335. magazine = macro_new_mag(UGL_HE,6)
  336. count = 10;
  337. };
  338. class _transport_RGLAP
  339. {
  340. magazine = macro_new_mag(UGL_AP,6)
  341. count = 10;
  342. };
  343. class _transport_RGPEMP
  344. {
  345. magazine = macro_new_mag(UGL_EMP,6)
  346. count = 5;
  347. };
  348. class _transport_ShotgunSP
  349. {
  350. magazine = macro_new_mag(shotgun_scatter,6)
  351. count = 20;
  352. };
  353. class _transport_ShotgunUO
  354. {
  355. magazine = macro_new_mag(shotgun_HE,6)
  356. count = 20;
  357. };
  358. class _transport_ShotgunEMP
  359. {
  360. magazine = macro_new_mag(shotgun_EMP,2)
  361. count = 10;
  362. };
  363. class _transport_StaticEweb
  364. {
  365. magazine = macro_new_mag(eweb,1000)
  366. count = 10;
  367. };
  368. class _transport_StaticStriker
  369. {
  370. magazine = macro_new_mag(ragl40he,40)
  371. count = 10;
  372. };
  373. class _transport_StaticBoomer
  374. {
  375. magazine = macro_new_mag(aap,4)
  376. count = 10;
  377. };
  378. class _transport_StaticDriver
  379. {
  380. magazine = macro_new_mag(mar,1)
  381. count = 10;
  382. };
  383. };
  384. class TransportItems
  385. {
  386. class _xx_RD_SquadShield_Mag
  387. {
  388. name = macro_new_mag(squad_shield_sigma,1)
  389. count = 2;
  390. };
  391. class _xx_ACE_HuntIR_monitor
  392. {
  393. name = "ACE_HuntIR_monitor";
  394. count = 1;
  395. };
  396. class _xx_ACE_tourniquet
  397. {
  398. name = "ACE_tourniquet";
  399. count = 15;
  400. };
  401. class _xx_ACE_splint
  402. {
  403. name = "ACE_splint";
  404. count = 15;
  405. };
  406. class _xx_ACE_plasmaIV_250
  407. {
  408. name = "ACE_plasmaIV_250";
  409. count = 15;
  410. };
  411. class _xx_ACE_plasmaIV_500
  412. {
  413. name = "ACE_plasmaIV_500";
  414. count = 15;
  415. };
  416. class _xx_ACE_plasmaIV
  417. {
  418. name = "ACE_plasmaIV";
  419. count = 15;
  420. };
  421. class _xx_ACE_elasticBandage
  422. {
  423. name = "ACE_elasticBandage";
  424. count = 80;
  425. };
  426. class _xx_ACE_quikclot
  427. {
  428. name = "ACE_quikclot";
  429. count = 80;
  430. };
  431. class _xx_ACE_packingBandage
  432. {
  433. name = "ACE_packingBandage";
  434. count = 80;
  435. };
  436. class _xx_ACE_morphine
  437. {
  438. name = "ACE_morphine";
  439. count = 30;
  440. };
  441. class _xx_ACE_painkiller
  442. {
  443. name = "RD501_Painkiller";
  444. count = 30;
  445. };
  446. class _xx_ACE_epinephrine
  447. {
  448. name = "ACE_epinephrine";
  449. count = 20;
  450. };
  451. class _xx_SmokeShellPurple
  452. {
  453. name = "SmokeShellPurple";
  454. count = 5;
  455. };
  456. };
  457. };
  458. };