config.cpp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. #define COMPONENT main
  2. #include "config_macros.hpp" // my config macro lib
  3. #include "_cba_patches.hpp"
  4. class CfgPatches
  5. {
  6. class RD501_patch_main
  7. {
  8. author=DANKAUTHORS;
  9. requiredAddons[]=
  10. {
  11. //"sci_APC",
  12. "A3_Data_F_Enoch_Loadorder",//Load all of arma first
  13. cba_patches ,//cba stuff
  14. //cancer_pbos ,//all of swop pbos
  15. //"212th_Engineer"
  16. };
  17. requiredVersion=0.1;
  18. units[]={};
  19. weapons[]={};
  20. RD501_patches[]= {macro_root_req,macro_lvl1_req,macro_lvl2_req,macro_lvl3_req,macro_lvl4_req,macro_lvl5_req};
  21. };
  22. };
  23. class cfgFunctions
  24. {
  25. class concat_function(scripts)//This will be the name of the mods functions,in functionViewer.
  26. {
  27. tag=ADDON;
  28. class concat_function(functions)
  29. {
  30. class laatc_lift
  31. {
  32. file=MACRO_QUOTE(macro_mod_script_path\vehicle_lift\laatc_lift.sqf);
  33. };
  34. };
  35. };
  36. class rd501_scripts//This will be the name of the mods functions,in functionViewer.
  37. {
  38. tag="RD501";
  39. class rd501_test_fnc
  40. {
  41. // class test_fnc
  42. // {
  43. // file = "RD501_Main\functions\test_fnc_midnight.sqf";
  44. // postinit=1;
  45. // };
  46. class auto_radio_freq
  47. {
  48. file = "RD501_Main\functions\auto_radio_freq.sqf";
  49. };
  50. class enable_arf
  51. {
  52. file = "RD501_Main\functions\auto_radio_freq_enabler.sqf";
  53. };//[player,['35.1','35.2','35.3','35.4','35','36','35.5','42','42'] ]call rd501_fnc_enable_arf
  54. };
  55. class the_cleanman
  56. {
  57. class ya_yeet_man
  58. {
  59. postInit = 1;
  60. file = MACRO_QUOTE(macro_mod_script_path\add_radio_freq_shower.sqf);
  61. };
  62. };
  63. };
  64. class GEARF
  65. {
  66. class vectorFunctions
  67. {
  68. file="RD501_Main\functions\sling_helmet\Vectors";
  69. class rotateObject
  70. {
  71. };
  72. };
  73. class helmetFunctions
  74. {
  75. file="RD501_Main\functions\sling_helmet\Helmet";
  76. class slingHelmet
  77. {
  78. };
  79. class unslingHelmet
  80. {
  81. };
  82. class hideSlungHelmet
  83. {
  84. };
  85. };
  86. };
  87. };
  88. class Extended_Init_EventHandlers
  89. {
  90. class CAManBase
  91. {
  92. class RD501_MedNotif
  93. {
  94. init = call macro_fnc_name(add_med_notification);
  95. };
  96. };
  97. };
  98. //Run once at a point in time before all the mission units and vehicles have their own init event handlers processed
  99. class Extended_PreInit_EventHandlers
  100. {
  101. class RD501_PREINIT
  102. {
  103. init="call compile preprocessFileLineNumbers 'RD501_Main\XEH_preInit.sqf'";
  104. };
  105. };
  106. //run once and after all the units and vehicles have had both their init event handlers and the code in the mission editor "init" lines processed
  107. class Extended_PostInit_EventHandlers {
  108. class RD501_POSTINIT {
  109. init = "call compile preprocessFileLineNumbers 'RD501_Main\XEH_postinit.sqf'";
  110. };
  111. };
  112. class cfgFactionClasses
  113. {
  114. class macro_faction(CIS)
  115. {
  116. displayName="RD501 C.I.S Faction";
  117. priority=3;
  118. side=0;
  119. };
  120. class macro_faction(republic)
  121. {
  122. displayName="RD501 Republic Faction";
  123. priority= 3;
  124. side=1;
  125. };
  126. class macro_faction(ind)
  127. {
  128. displayName="RD501 Independent Faction";
  129. priority=3;
  130. side= 2;
  131. };
  132. class macro_faction(civ)
  133. {
  134. displayName="RD501 Civillian Faction";
  135. priority=3;
  136. side= 3;
  137. };
  138. };
  139. class CfgEditorCategories
  140. {
  141. class RD501_Aux
  142. {
  143. displayName = "501st Aux Mod";
  144. };
  145. class macro_editor_cat(suppplies)
  146. {
  147. displayName= "RD501 Supplies";
  148. };
  149. class macro_editor_cat(statics)
  150. {
  151. displayName = "RD501 Static Objects";
  152. };
  153. class macro_editor_cat(Speeders)
  154. {
  155. displayName = "Speeders";
  156. };
  157. };
  158. class CfgEditorSubcategories
  159. {
  160. class macro_editor_cat(aqua)
  161. {
  162. displayName = "Aqua";
  163. };
  164. class macro_editor_cat(car)
  165. {
  166. displayname = "Cars";
  167. };
  168. class macro_editor_cat(CIS_speeders)
  169. {
  170. displayName = "CIS Speeders";
  171. };
  172. class macro_editor_cat(B2)
  173. {
  174. displayName = "B2 Variants";
  175. };
  176. class macro_editor_cat(tank)
  177. {
  178. displayName = "Tanks";
  179. };
  180. class macro_editor_cat(resupply)
  181. {
  182. displayName= "Resupply";
  183. };
  184. class macro_editor_cat(IFV)
  185. {
  186. displayName = "IFV's";
  187. };
  188. class macro_editor_cat(APC)
  189. {
  190. displayName = "APC's";
  191. };
  192. class macro_editor_cat(AA)
  193. {
  194. displayName = "Anti Air";
  195. };
  196. class macro_editor_cat(heavy_armored_infantry)
  197. {
  198. displayName = "Heavy Armored Infantry";
  199. };
  200. class macro_editor_cat(bounty_hunters)
  201. {
  202. displayName = "Bounty Hunters";
  203. };
  204. class macro_editor_cat(syndicate)
  205. {
  206. displayName = "Syndicate";
  207. };
  208. class macro_editor_cat(arty)
  209. {
  210. displayName = "Artillery";
  211. };
  212. class macro_editor_cat(civ)
  213. {
  214. displayName = "Star Wars Civillians";
  215. };
  216. class macro_editor_cat(B1)
  217. {
  218. displayName = "B1 Droids";
  219. };
  220. class macro_editor_cat(Transport)
  221. {
  222. displayName = "Transports";
  223. };
  224. class macro_editor_cat(B1_lowpoly)
  225. {
  226. displayName = "Low Poly B1 Droids";
  227. };
  228. class macro_editor_cat(CIS_SpecOps)
  229. {
  230. displayName = "Special Forces";
  231. };
  232. class macro_editor_cat(CIS_Humans)
  233. {
  234. displayName = "Humans";
  235. };
  236. class macro_editor_cat(posters)
  237. {
  238. displayName = "Star Wars Posters";
  239. };
  240. class macro_editor_cat(static_ships)
  241. {
  242. displayName = "Static Ships";
  243. };
  244. class macro_editor_cat(wall)
  245. {
  246. displayName = "Shield Walls";
  247. };
  248. class macro_editor_cat(static_msc)
  249. {
  250. displayName = "Static Objects";
  251. };
  252. class macro_editor_cat(turrets)
  253. {
  254. displayName = "Turrets";
  255. };
  256. class macro_editor_cat(static_turrets)
  257. {
  258. displayName = "Static Emplacements";
  259. };
  260. class macro_editor_cat_air(Empire_vtol)
  261. {
  262. displayName = "Empire Aircraft";
  263. };
  264. class macro_editor_cat_air(First_Order)
  265. {
  266. displayName = "First Order Aircraft";
  267. };
  268. class macro_editor_cat_air(CIS)
  269. {
  270. displayName = "CIS Aircraft";
  271. };
  272. class macro_editor_cat_air(CIS_heli)
  273. {
  274. displayName = "CIS Helicopters";
  275. };
  276. class macro_editor_cat_air(Rebel_vtol)
  277. {
  278. displayName = "Rebel Aircraft";
  279. };
  280. class macro_editor_cat_air(Rebel_heli)
  281. {
  282. displayName = "Rebel Helicopters";
  283. };
  284. class macro_editor_cat_air(Republic_heli)
  285. {
  286. displayName = "Republic Helicopters";
  287. };
  288. class macro_editor_cat_air(Republic_vtol)
  289. {
  290. displayName = "Republic Aircraft";
  291. };
  292. class macro_editor_cat_air(Resistance)
  293. {
  294. displayName = "Resistance Aircraft";
  295. };
  296. class macro_editor_cat_air(vtol)
  297. {
  298. displayName = "Repulsorlift";
  299. };
  300. class macro_editor_cat_air(heli)
  301. {
  302. displayName = "Starfighter";
  303. };
  304. };
  305. class CfgVehicleClasses
  306. {
  307. class macro_editor_vehicle_type(Car)
  308. {
  309. displayName = "Cars";
  310. };
  311. class macro_editor_vehicle_type(turrets)
  312. {
  313. displayName = "turrets";
  314. };
  315. class macro_editor_vehicle_type(speeders)
  316. {
  317. displayName = "speeeeeders";
  318. };
  319. class macro_editor_vehicle_type_air(Empire)
  320. {
  321. displayName = "X Empire Aircraft";
  322. };
  323. class macro_editor_vehicle_type_air(First_Order)
  324. {
  325. displayName = "X First Order Aircraft";
  326. };
  327. class macro_editor_vehicle_type_air(CIS)
  328. {
  329. displayName = "X CIS Aircraft";
  330. };
  331. class macro_editor_vehicle_type_air(Rebel)
  332. {
  333. displayName = "X Rebel Aircraft";
  334. };
  335. class macro_editor_vehicle_type_air(Republic)
  336. {
  337. displayName = "X Republic Aircraft";
  338. };
  339. class macro_editor_vehicle_type_air(Resistance)
  340. {
  341. displayName = "X Resistance Aircraft";
  342. };
  343. class macro_editor_vehicle_type(tank)
  344. {
  345. displayName = "Tanks";
  346. };
  347. class macro_editor_vehicle_type(AA)
  348. {
  349. displayName = "Anti Air";
  350. };
  351. class macro_editor_vehicle_type(doggo)
  352. {
  353. displayName = "doggie";
  354. };
  355. class macro_editor_vehicle_type(heavy_armored_infantry)
  356. {
  357. displayName = "Heavy Armored Infantry";
  358. };
  359. class macro_editor_vehicle_type(IFV)
  360. {
  361. displayName = "IFV";
  362. };
  363. class macro_editor_vehicle_type(APC)
  364. {
  365. displayName = "APC";
  366. };
  367. class macro_editor_vehicle_type(arty)
  368. {
  369. displayName = "arty";
  370. };
  371. class macro_editor_vehicle_type(static_turrets)
  372. {
  373. displayName = "Static Emplacements";
  374. };
  375. class macro_editor_vehicle_type(statics)
  376. {
  377. displayName = "RD501 Static Walls";
  378. };
  379. };
  380. class CfgVehicles
  381. {
  382. class LandVehicle;
  383. class Car : LandVehicle
  384. {
  385. class ACE_Actions {
  386. class ACE_MainActions {
  387. class rd501_flip_vehicle_flip {
  388. displayName = "Flip Vehicle";
  389. condition = "[_player] call rd501_fnc_canFlipVehicle";
  390. statement = "[_target] call rd501_fnc_flipVehicle";
  391. exceptions[] = {};
  392. icon = "rd501_main\ui_icons\mynock_flip_ace_icon.paa";
  393. };
  394. };
  395. };
  396. };
  397. class Tank : LandVehicle
  398. {
  399. class ACE_Actions {
  400. class ACE_MainActions {
  401. class rd501_flip_vehicle_flip {
  402. displayName = "Flip Vehicle";
  403. condition = "[_player] call rd501_fnc_canFlipVehicle";
  404. statement = "[_target] call rd501_fnc_flipVehicle";
  405. exceptions[] = {};
  406. icon = "rd501_main\ui_icons\mynock_flip_ace_icon.paa";
  407. };
  408. };
  409. };
  410. };
  411. class StaticWeapon: LandVehicle {
  412. class ACE_Actions {
  413. class ACE_MainActions {
  414. class rd501_external_reload {
  415. displayName = "Reload";
  416. condition = "_this call rd501_fnc_canReloadExternal";
  417. statement = "_this call rd501_fnc_reloadExternal";
  418. exceptions[] = {};
  419. runOnHover = 0;
  420. };
  421. };
  422. };
  423. };
  424. class Man;
  425. class CAManBase: Man
  426. {
  427. class ACE_SelfActions
  428. {
  429. class ACE_Equipment
  430. {
  431. class slingHelmet
  432. {
  433. displayName="Sling Helmet";
  434. icon="RD501_Main\ui_icons\helmet_ca.paa";
  435. priority=3;
  436. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  437. class slingLeft
  438. {
  439. displayName="Sling Left";
  440. icon="RD501_Main\ui_icons\helmet_ca.paa";
  441. priority=3;
  442. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  443. statement="[_player, 'left'] call GEARF_fnc_slingHelmet";
  444. };
  445. class slingRight
  446. {
  447. displayName="Sling Right";
  448. icon="RD501_Main\ui_icons\helmet_ca.paa";
  449. priority=3;
  450. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  451. statement="[_player, 'right'] call GEARF_fnc_slingHelmet";
  452. };
  453. };
  454. class unslingHelmet
  455. {
  456. displayName="Unsling Helmet";
  457. icon="RD501_Main\ui_icons\helmet_ca.paa";
  458. priority=3;
  459. condition="_player getVariable ['GEARF_HelmetAttached', false]";
  460. statement="[_player] call GEARF_fnc_unslingHelmet";
  461. };
  462. class RD501_Auto_Radio_Freq
  463. {
  464. displayName = "A.R.F setter";
  465. exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
  466. condition = "call TFAR_fnc_haveLRRadio";
  467. showDisabled = 0;
  468. priority = 2.5;
  469. icon = "RD501_Main\ui_icons\arf.paa";
  470. statement = "[_player] call rd501_fnc_auto_radio_freq";
  471. runOnHover = 0;
  472. };
  473. };
  474. };
  475. class EventHandlers
  476. {
  477. init="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  478. killed="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  479. getInMan="[(_this select 0), true] call GEARF_fnc_hideSlungHelmet";
  480. getOutMan="[(_this select 0), false] call GEARF_fnc_hideSlungHelmet;";
  481. };
  482. };
  483. };