config.cpp 11 KB

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