config.cpp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  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 CfgMagazines
  118. // {
  119. // class CA_Magazine;
  120. // class 2Rnd_12Gauge_Pellets:CA_Magazine
  121. // {
  122. // displayName = "120 Gauge 2Rnd Pellets";
  123. // count = 200;
  124. // };
  125. // };
  126. // class CfgAmmo
  127. // {
  128. // class BulletBase;
  129. // class B_12Gauge_Pellets_Submunition:BulletBase
  130. // {
  131. // //model = "\SWOP_Main\Effects\Tracer\LaserRed";
  132. // model = "\A3\Weapons_f\Data\bullettracer\tracer_red";
  133. // effectFly = "SWOP_BlueLaserEffect";
  134. // CraterEffects = "ExploAmmoLaserCrater";
  135. // explosionEffects = "SWOP_LaserExploSmall";
  136. // triggerTime = .2;
  137. // submunitionAmmo = "G_40mm_HEDP";//G_40mm_HEDP
  138. // submunitionConeType[] = {"poissondisc", 80};
  139. // submunitionConeAngle = 90.8;
  140. // triggerSpeedCoef[] = {0.01, .1};
  141. // };
  142. // class G_40mm_HE;
  143. // class G_40mm_HEDP:G_40mm_HE
  144. // {
  145. // model = "\SWOP_Main\Effects\Tracer\LaserBlue";
  146. // effectFly = "SWOP_BlueLaserEffect";
  147. // timeToLive = 30.15;
  148. // };
  149. // class B_12Gauge_Pellets_Submunition_Deploy: BulletBase
  150. // {
  151. // //model = "\SWOP_Main\Effects\Tracer\LaserRed";
  152. // model = "\A3\Weapons_f\Data\bullettracer\tracer_red";
  153. // effectFly = "SWOP_RedLaserEffect";
  154. // CraterEffects = "ExploAmmoLaserCrater";
  155. // explosionEffects = "SWOP_LaserExploSmall";
  156. // };
  157. // };
  158. // class cfgFactionClasses
  159. // {
  160. // class RD_Op_Fac
  161. // {
  162. // displayName="RD501 OPFOR Faction";
  163. // priority=3;
  164. // side=0;
  165. // };
  166. // class RD_Blu_Fac
  167. // {
  168. // displayName="RD501 BLUFOR Faction";
  169. // priority= 3;
  170. // side=1;
  171. // };
  172. // class RD_Ind_Fac
  173. // {
  174. // displayName="RD501 Independent Faction";
  175. // priority=3;
  176. // side= 2;
  177. // };
  178. // class RD_Civ_Fac
  179. // {
  180. // displayName="RD501 Star Wars Civ";
  181. // priority=3;
  182. // side= 3;
  183. // };
  184. // class RD501_Faction_LPB1
  185. // {
  186. // displayName="Low Poly Assets";
  187. // priority=3;
  188. // side=0;
  189. // };
  190. // };
  191. class cfgFactionClasses
  192. {
  193. class macro_cis_faction
  194. {
  195. displayName="RD501 C.I.S Faction";
  196. priority=3;
  197. side=0;
  198. };
  199. class macro_empire_faction
  200. {
  201. displayName="RD501 Empire Faction";
  202. priority=3;
  203. side=0;
  204. };
  205. class macro_first_order_faction
  206. {
  207. displayName="RD501 First Order Faction";
  208. priority=3;
  209. side=0;
  210. };
  211. class macro_republic_faction
  212. {
  213. displayName="RD501 Republic Faction";
  214. priority= 3;
  215. side=1;
  216. };
  217. class macro_rebel_faction
  218. {
  219. displayName="RD501 Rebel Faction";
  220. priority= 3;
  221. side=1;
  222. };
  223. class macro_resistance_faction
  224. {
  225. displayName="RD501 Resistance Faction";
  226. priority= 3;
  227. side=1;
  228. };
  229. class macro_ind_faction
  230. {
  231. displayName="RD501 Independent Faction";
  232. priority=3;
  233. side= 2;
  234. };
  235. class macro_civ_faction
  236. {
  237. displayName="RD501 Civillian Faction";
  238. priority=3;
  239. side= 3;
  240. };
  241. };
  242. class CfgEditorCategories
  243. {
  244. class RD501_Aux
  245. {
  246. displayName = "501st Aux Mod";
  247. };
  248. class macro_editor_cat(suppplies)
  249. {
  250. displayName= "RD501 Supplies"
  251. };
  252. class macro_editor_cat(statics)
  253. {
  254. displayName = "RD501 Static Objects";
  255. };
  256. class macro_editor_cat(Speeders)
  257. {
  258. displayName = "Speeders";
  259. };
  260. };
  261. class CfgInGameUI
  262. {
  263. class FLIRModeNames
  264. {
  265. FLIRModeName[] = {
  266. "WHOT",//0
  267. "BHOT",
  268. "GHOT",//2
  269. "BHOT",
  270. "OHOT",//4
  271. "BHOT",
  272. "WHOT",//6
  273. "RAINBOW",
  274. "YHOT"//8
  275. };
  276. };
  277. };
  278. class CfgCoreData
  279. {
  280. textureTIConversionDX11 = "RD501_Main\textures\thermal\custom_thermals.png";
  281. };
  282. class CfgEditorSubcategories
  283. {
  284. class macro_editor_cat(aqua)
  285. {
  286. displayName = "Aqua";
  287. };
  288. class macro_editor_cat(car)
  289. {
  290. displayname = "Cars"
  291. };
  292. class macro_editor_cat(CIS_speeders)
  293. {
  294. displayName = "CIS Speeders";
  295. };
  296. class macro_editor_cat(B2)
  297. {
  298. displayName = "B2 Variants";
  299. };
  300. class macro_editor_cat(tank)
  301. {
  302. displayName = "Tanks";
  303. };
  304. class macro_editor_cat(resupply)
  305. {
  306. displayName= "Resupply"
  307. }
  308. class macro_editor_cat(IFV)
  309. {
  310. displayName = "IFV's";
  311. };
  312. class macro_editor_cat(APC)
  313. {
  314. displayName = "APC's";
  315. };
  316. class macro_editor_cat(AA)
  317. {
  318. displayName = "Anti Air";
  319. };
  320. class macro_editor_cat(heavy_armored_infantry)
  321. {
  322. displayName = "Heavy Armored Infantry";
  323. };
  324. class macro_editor_cat(doggo)
  325. {
  326. displayName = "Doge Squadron";
  327. };
  328. class macro_editor_cat(arty)
  329. {
  330. displayName = "Artillery";
  331. };
  332. class macro_editor_cat(civ)
  333. {
  334. displayName = "Star Wars Civillians";
  335. };
  336. class macro_editor_cat(B1)
  337. {
  338. displayName = "B1 Droids";
  339. };
  340. class macro_editor_cat(Transport)
  341. {
  342. displayName = "Transports";
  343. };
  344. class macro_editor_cat(B1_lowpoly)
  345. {
  346. displayName = "Low Poly B1 Droids";
  347. };
  348. class macro_editor_cat(CIS_SpecOps)
  349. {
  350. displayName = "Special Forces";
  351. };
  352. class macro_editor_cat(CIS_Humans)
  353. {
  354. displayName = "Humans";
  355. };
  356. class macro_editor_cat(posters)
  357. {
  358. displayName = "Star Wars Posters";
  359. };
  360. class macro_editor_cat(static_ships)
  361. {
  362. displayName = "Static Ships";
  363. };
  364. class macro_editor_cat(wall)
  365. {
  366. displayName = "Shield Walls";
  367. };
  368. class macro_editor_cat(static_msc)
  369. {
  370. displayName = "Static Objects";
  371. };
  372. class macro_editor_cat(turrets)
  373. {
  374. displayName = "Turrets";
  375. };
  376. class macro_editor_cat(static_turrets)
  377. {
  378. displayName = "Static Emplacements";
  379. };
  380. class macro_editor_cat_air(Empire_vtol)
  381. {
  382. displayName = "Empire Aircraft";
  383. };
  384. class macro_editor_cat_air(First_Order)
  385. {
  386. displayName = "First Order Aircraft";
  387. };
  388. class macro_editor_cat_air(CIS)
  389. {
  390. displayName = "CIS Aircraft";
  391. };
  392. class macro_editor_cat_air(CIS_heli)
  393. {
  394. displayName = "CIS Helicopters";
  395. };
  396. class macro_editor_cat_air(Rebel_vtol)
  397. {
  398. displayName = "Rebel Aircraft";
  399. };
  400. class macro_editor_cat_air(Rebel_heli)
  401. {
  402. displayName = "Rebel Helicopters";
  403. };
  404. class macro_editor_cat_air(Republic_heli)
  405. {
  406. displayName = "Republic Helicopters";
  407. };
  408. class macro_editor_cat_air(Republic_vtol)
  409. {
  410. displayName = "Republic Aircraft";
  411. };
  412. class macro_editor_cat_air(Resistance)
  413. {
  414. displayName = "Resistance Aircraft";
  415. };
  416. class macro_editor_cat_air(vtol)
  417. {
  418. displayName = "Repulsorlift";
  419. };
  420. class macro_editor_cat_air(heli)
  421. {
  422. displayName = "Starfighter";
  423. };
  424. };
  425. class CfgVehicleClasses
  426. {
  427. class macro_editor_vehicle_type(Car)
  428. {
  429. displayName = "Cars"
  430. };
  431. class macro_editor_vehicle_type(turrets)
  432. {
  433. displayName = "turrets";
  434. };
  435. class macro_editor_vehicle_type(speeders)
  436. {
  437. displayName = "speeeeeders";
  438. };
  439. class macro_editor_vehicle_type_air(Empire)
  440. {
  441. displayName = "X Empire Aircraft";
  442. };
  443. class macro_editor_vehicle_type_air(First_Order)
  444. {
  445. displayName = "X First Order Aircraft";
  446. };
  447. class macro_editor_vehicle_type_air(CIS)
  448. {
  449. displayName = "X CIS Aircraft";
  450. };
  451. class macro_editor_vehicle_type_air(Rebel)
  452. {
  453. displayName = "X Rebel Aircraft";
  454. };
  455. class macro_editor_vehicle_type_air(Republic)
  456. {
  457. displayName = "X Republic Aircraft";
  458. };
  459. class macro_editor_vehicle_type_air(Resistance)
  460. {
  461. displayName = "X Resistance Aircraft";
  462. };
  463. class macro_editor_vehicle_type(tank)
  464. {
  465. displayName = "Tanks";
  466. };
  467. class macro_editor_vehicle_type(AA)
  468. {
  469. displayName = "Anti Air";
  470. };
  471. class macro_editor_vehicle_type(doggo)
  472. {
  473. displayName = "doggie";
  474. };
  475. class macro_editor_vehicle_type(heavy_armored_infantry)
  476. {
  477. displayName = "Heavy Armored Infantry";
  478. };
  479. class macro_editor_vehicle_type(IFV)
  480. {
  481. displayName = "IFV";
  482. };
  483. class macro_editor_vehicle_type(APC)
  484. {
  485. displayName = "APC";
  486. };
  487. class macro_editor_vehicle_type(arty)
  488. {
  489. displayName = "arty";
  490. };
  491. class macro_editor_vehicle_type(static_turrets)
  492. {
  493. displayName = "Static Emplacements";
  494. };
  495. class macro_editor_vehicle_type(statics)
  496. {
  497. displayName = "RD501 Static Walls";
  498. };
  499. };
  500. class CfgVehicles
  501. {
  502. class LandVehicle;
  503. class Car : LandVehicle
  504. {
  505. class ACE_Actions {
  506. class ACE_MainActions {
  507. class rd501_flip_vehicle_flip {
  508. displayName = "Flip Vehicle";
  509. condition = "[_player] call rd501_fnc_canFlipVehicle";
  510. statement = "[_target] call rd501_fnc_flipVehicle";
  511. exceptions[] = {};
  512. icon = "rd501_main\ui_icons\mynock_flip_ace_icon.paa";
  513. };
  514. };
  515. };
  516. };
  517. class Tank : LandVehicle
  518. {
  519. class ACE_Actions {
  520. class ACE_MainActions {
  521. class rd501_flip_vehicle_flip {
  522. displayName = "Flip Vehicle";
  523. condition = "[_player] call rd501_fnc_canFlipVehicle";
  524. statement = "[_target] call rd501_fnc_flipVehicle";
  525. exceptions[] = {};
  526. icon = "rd501_main\ui_icons\mynock_flip_ace_icon.paa";
  527. };
  528. };
  529. };
  530. };
  531. class StaticWeapon: LandVehicle {
  532. class ACE_Actions {
  533. class ACE_MainActions {
  534. class rd501_external_reload {
  535. displayName = "Reload";
  536. condition = "_this call rd501_fnc_canReloadExternal";
  537. statement = "_this call rd501_fnc_reloadExternal";
  538. exceptions[] = {};
  539. runOnHover = 0;
  540. };
  541. };
  542. };
  543. };
  544. class Man;
  545. class CAManBase: Man
  546. {
  547. class ACE_SelfActions
  548. {
  549. class ACE_Equipment
  550. {
  551. class slingHelmet
  552. {
  553. displayName="Sling Helmet";
  554. icon="RD501_Main\ui_icons\helmet_ca.paa";
  555. priority=3;
  556. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  557. class slingLeft
  558. {
  559. displayName="Sling Left";
  560. icon="RD501_Main\ui_icons\helmet_ca.paa";
  561. priority=3;
  562. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  563. statement="[_player, 'left'] call GEARF_fnc_slingHelmet";
  564. };
  565. class slingRight
  566. {
  567. displayName="Sling Right";
  568. icon="RD501_Main\ui_icons\helmet_ca.paa";
  569. priority=3;
  570. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  571. statement="[_player, 'right'] call GEARF_fnc_slingHelmet";
  572. };
  573. };
  574. class unslingHelmet
  575. {
  576. displayName="Unsling Helmet";
  577. icon="RD501_Main\ui_icons\helmet_ca.paa";
  578. priority=3;
  579. condition="_player getVariable ['GEARF_HelmetAttached', false]";
  580. statement="[_player] call GEARF_fnc_unslingHelmet";
  581. };
  582. class RD501_Auto_Radio_Freq
  583. {
  584. displayName = "A.R.F setter";
  585. exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
  586. condition = "call TFAR_fnc_haveLRRadio";
  587. showDisabled = 0;
  588. priority = 2.5;
  589. icon = "RD501_Main\ui_icons\arf.paa";
  590. statement = "[_player] call rd501_fnc_auto_radio_freq";
  591. runOnHover = 0;
  592. };
  593. };
  594. };
  595. class EventHandlers
  596. {
  597. init="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  598. killed="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  599. getInMan="[(_this select 0), true] call GEARF_fnc_hideSlungHelmet";
  600. getOutMan="[(_this select 0), false] call GEARF_fnc_hideSlungHelmet;";
  601. };
  602. };
  603. };