config.cpp 11 KB

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