config.cpp 11 KB

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