config.cpp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. #define COMPONENT main
  2. #include "config_macros.hpp" // my config macro lib
  3. #include "_cba_patches.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(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_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_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_cis_faction
  115. {
  116. displayName="RD501 C.I.S Faction";
  117. priority=3;
  118. side=0;
  119. };
  120. class macro_republic_faction
  121. {
  122. displayName="RD501 Republic Faction";
  123. priority= 3;
  124. side=1;
  125. };
  126. class macro_ind_faction
  127. {
  128. displayName="RD501 Independent Faction";
  129. priority=3;
  130. side= 2;
  131. };
  132. class macro_civ_faction
  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 CfgInGameUI
  159. {
  160. class FLIRModeNames
  161. {
  162. FLIRModeName[] = {
  163. "WHOT",//0
  164. "BHOT",
  165. "GHOT",//2
  166. "BHOT",
  167. "OHOT",//4
  168. "BHOT",
  169. "WHOT",//6
  170. "RAINBOW",
  171. "YHOT"//8
  172. };
  173. };
  174. };
  175. class CfgCoreData
  176. {
  177. textureTIConversionDX11 = "RD501_Main\textures\thermal\custom_thermals.png";
  178. };
  179. class CfgEditorSubcategories
  180. {
  181. class macro_editor_cat(aqua)
  182. {
  183. displayName = "Aqua";
  184. };
  185. class macro_editor_cat(car)
  186. {
  187. displayname = "Cars"
  188. };
  189. class macro_editor_cat(CIS_speeders)
  190. {
  191. displayName = "CIS Speeders";
  192. };
  193. class macro_editor_cat(B2)
  194. {
  195. displayName = "B2 Variants";
  196. };
  197. class macro_editor_cat(tank)
  198. {
  199. displayName = "Tanks";
  200. };
  201. class macro_editor_cat(resupply)
  202. {
  203. displayName= "Resupply"
  204. }
  205. class macro_editor_cat(IFV)
  206. {
  207. displayName = "IFV's";
  208. };
  209. class macro_editor_cat(APC)
  210. {
  211. displayName = "APC's";
  212. };
  213. class macro_editor_cat(AA)
  214. {
  215. displayName = "Anti Air";
  216. };
  217. class macro_editor_cat(heavy_armored_infantry)
  218. {
  219. displayName = "Heavy Armored Infantry";
  220. };
  221. class macro_editor_cat(bounty_hunters)
  222. {
  223. displayName = "Bounty Hunters";
  224. };
  225. class macro_editor_cat(syndicate)
  226. {
  227. displayName = "Syndicate";
  228. };
  229. class macro_editor_cat(arty)
  230. {
  231. displayName = "Artillery";
  232. };
  233. class macro_editor_cat(civ)
  234. {
  235. displayName = "Star Wars Civillians";
  236. };
  237. class macro_editor_cat(B1)
  238. {
  239. displayName = "B1 Droids";
  240. };
  241. class macro_editor_cat(Transport)
  242. {
  243. displayName = "Transports";
  244. };
  245. class macro_editor_cat(B1_lowpoly)
  246. {
  247. displayName = "Low Poly B1 Droids";
  248. };
  249. class macro_editor_cat(CIS_SpecOps)
  250. {
  251. displayName = "Special Forces";
  252. };
  253. class macro_editor_cat(CIS_Humans)
  254. {
  255. displayName = "Humans";
  256. };
  257. class macro_editor_cat(posters)
  258. {
  259. displayName = "Star Wars Posters";
  260. };
  261. class macro_editor_cat(static_ships)
  262. {
  263. displayName = "Static Ships";
  264. };
  265. class macro_editor_cat(wall)
  266. {
  267. displayName = "Shield Walls";
  268. };
  269. class macro_editor_cat(static_msc)
  270. {
  271. displayName = "Static Objects";
  272. };
  273. class macro_editor_cat(turrets)
  274. {
  275. displayName = "Turrets";
  276. };
  277. class macro_editor_cat(static_turrets)
  278. {
  279. displayName = "Static Emplacements";
  280. };
  281. class macro_editor_cat_air(Empire_vtol)
  282. {
  283. displayName = "Empire Aircraft";
  284. };
  285. class macro_editor_cat_air(First_Order)
  286. {
  287. displayName = "First Order Aircraft";
  288. };
  289. class macro_editor_cat_air(CIS)
  290. {
  291. displayName = "CIS Aircraft";
  292. };
  293. class macro_editor_cat_air(CIS_heli)
  294. {
  295. displayName = "CIS Helicopters";
  296. };
  297. class macro_editor_cat_air(Rebel_vtol)
  298. {
  299. displayName = "Rebel Aircraft";
  300. };
  301. class macro_editor_cat_air(Rebel_heli)
  302. {
  303. displayName = "Rebel Helicopters";
  304. };
  305. class macro_editor_cat_air(Republic_heli)
  306. {
  307. displayName = "Republic Helicopters";
  308. };
  309. class macro_editor_cat_air(Republic_vtol)
  310. {
  311. displayName = "Republic Aircraft";
  312. };
  313. class macro_editor_cat_air(Resistance)
  314. {
  315. displayName = "Resistance Aircraft";
  316. };
  317. class macro_editor_cat_air(vtol)
  318. {
  319. displayName = "Repulsorlift";
  320. };
  321. class macro_editor_cat_air(heli)
  322. {
  323. displayName = "Starfighter";
  324. };
  325. };
  326. class CfgVehicleClasses
  327. {
  328. class macro_editor_vehicle_type(Car)
  329. {
  330. displayName = "Cars"
  331. };
  332. class macro_editor_vehicle_type(turrets)
  333. {
  334. displayName = "turrets";
  335. };
  336. class macro_editor_vehicle_type(speeders)
  337. {
  338. displayName = "speeeeeders";
  339. };
  340. class macro_editor_vehicle_type_air(Empire)
  341. {
  342. displayName = "X Empire Aircraft";
  343. };
  344. class macro_editor_vehicle_type_air(First_Order)
  345. {
  346. displayName = "X First Order Aircraft";
  347. };
  348. class macro_editor_vehicle_type_air(CIS)
  349. {
  350. displayName = "X CIS Aircraft";
  351. };
  352. class macro_editor_vehicle_type_air(Rebel)
  353. {
  354. displayName = "X Rebel Aircraft";
  355. };
  356. class macro_editor_vehicle_type_air(Republic)
  357. {
  358. displayName = "X Republic Aircraft";
  359. };
  360. class macro_editor_vehicle_type_air(Resistance)
  361. {
  362. displayName = "X Resistance Aircraft";
  363. };
  364. class macro_editor_vehicle_type(tank)
  365. {
  366. displayName = "Tanks";
  367. };
  368. class macro_editor_vehicle_type(AA)
  369. {
  370. displayName = "Anti Air";
  371. };
  372. class macro_editor_vehicle_type(doggo)
  373. {
  374. displayName = "doggie";
  375. };
  376. class macro_editor_vehicle_type(heavy_armored_infantry)
  377. {
  378. displayName = "Heavy Armored Infantry";
  379. };
  380. class macro_editor_vehicle_type(IFV)
  381. {
  382. displayName = "IFV";
  383. };
  384. class macro_editor_vehicle_type(APC)
  385. {
  386. displayName = "APC";
  387. };
  388. class macro_editor_vehicle_type(arty)
  389. {
  390. displayName = "arty";
  391. };
  392. class macro_editor_vehicle_type(static_turrets)
  393. {
  394. displayName = "Static Emplacements";
  395. };
  396. class macro_editor_vehicle_type(statics)
  397. {
  398. displayName = "RD501 Static Walls";
  399. };
  400. };
  401. class CfgVehicles
  402. {
  403. class LandVehicle;
  404. class Car : LandVehicle
  405. {
  406. class ACE_Actions {
  407. class ACE_MainActions {
  408. class rd501_flip_vehicle_flip {
  409. displayName = "Flip Vehicle";
  410. condition = "[_player] call rd501_fnc_canFlipVehicle";
  411. statement = "[_target] call rd501_fnc_flipVehicle";
  412. exceptions[] = {};
  413. icon = "rd501_main\ui_icons\mynock_flip_ace_icon.paa";
  414. };
  415. };
  416. };
  417. };
  418. class Tank : LandVehicle
  419. {
  420. class ACE_Actions {
  421. class ACE_MainActions {
  422. class rd501_flip_vehicle_flip {
  423. displayName = "Flip Vehicle";
  424. condition = "[_player] call rd501_fnc_canFlipVehicle";
  425. statement = "[_target] call rd501_fnc_flipVehicle";
  426. exceptions[] = {};
  427. icon = "rd501_main\ui_icons\mynock_flip_ace_icon.paa";
  428. };
  429. };
  430. };
  431. };
  432. class StaticWeapon: LandVehicle {
  433. class ACE_Actions {
  434. class ACE_MainActions {
  435. class rd501_external_reload {
  436. displayName = "Reload";
  437. condition = "_this call rd501_fnc_canReloadExternal";
  438. statement = "_this call rd501_fnc_reloadExternal";
  439. exceptions[] = {};
  440. runOnHover = 0;
  441. };
  442. };
  443. };
  444. };
  445. class Man;
  446. class CAManBase: Man
  447. {
  448. class ACE_SelfActions
  449. {
  450. class ACE_Equipment
  451. {
  452. class slingHelmet
  453. {
  454. displayName="Sling Helmet";
  455. icon="RD501_Main\ui_icons\helmet_ca.paa";
  456. priority=3;
  457. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  458. class slingLeft
  459. {
  460. displayName="Sling Left";
  461. icon="RD501_Main\ui_icons\helmet_ca.paa";
  462. priority=3;
  463. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  464. statement="[_player, 'left'] call GEARF_fnc_slingHelmet";
  465. };
  466. class slingRight
  467. {
  468. displayName="Sling Right";
  469. icon="RD501_Main\ui_icons\helmet_ca.paa";
  470. priority=3;
  471. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  472. statement="[_player, 'right'] call GEARF_fnc_slingHelmet";
  473. };
  474. };
  475. class unslingHelmet
  476. {
  477. displayName="Unsling Helmet";
  478. icon="RD501_Main\ui_icons\helmet_ca.paa";
  479. priority=3;
  480. condition="_player getVariable ['GEARF_HelmetAttached', false]";
  481. statement="[_player] call GEARF_fnc_unslingHelmet";
  482. };
  483. class RD501_Auto_Radio_Freq
  484. {
  485. displayName = "A.R.F setter";
  486. exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
  487. condition = "call TFAR_fnc_haveLRRadio";
  488. showDisabled = 0;
  489. priority = 2.5;
  490. icon = "RD501_Main\ui_icons\arf.paa";
  491. statement = "[_player] call rd501_fnc_auto_radio_freq";
  492. runOnHover = 0;
  493. };
  494. };
  495. };
  496. class EventHandlers
  497. {
  498. init="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  499. killed="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  500. getInMan="[(_this select 0), true] call GEARF_fnc_hideSlungHelmet";
  501. getOutMan="[(_this select 0), false] call GEARF_fnc_hideSlungHelmet;";
  502. };
  503. };
  504. };