config.cpp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  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. class kobra
  261. {
  262. displayname = "[K] Kobra";
  263. };
  264. };
  265. class CfgInGameUI
  266. {
  267. class FLIRModeNames
  268. {
  269. FLIRModeName[] = {
  270. "WHOT",//0
  271. "BHOT",
  272. "GHOT",//2
  273. "BHOT",
  274. "OHOT",//4
  275. "BHOT",
  276. "WHOT",//6
  277. "RAINBOW",
  278. "YHOT"//8
  279. };
  280. };
  281. };
  282. class CfgCoreData
  283. {
  284. textureTIConversionDX11 = "RD501_Main\textures\thermal\custom_thermals.png";
  285. };
  286. class CfgEditorSubcategories
  287. {
  288. class macro_editor_cat(aqua)
  289. {
  290. displayName = "Aqua";
  291. };
  292. class macro_editor_cat(car)
  293. {
  294. displayname = "Cars"
  295. };
  296. class macro_editor_cat(CIS_speeders)
  297. {
  298. displayName = "CIS Speeders";
  299. };
  300. class macro_editor_cat(B2)
  301. {
  302. displayName = "B2 Variants";
  303. };
  304. class macro_editor_cat(tank)
  305. {
  306. displayName = "Tanks";
  307. };
  308. class macro_editor_cat(resupply)
  309. {
  310. displayName= "Resupply"
  311. }
  312. class macro_editor_cat(IFV)
  313. {
  314. displayName = "IFV's";
  315. };
  316. class macro_editor_cat(APC)
  317. {
  318. displayName = "APC's";
  319. };
  320. class macro_editor_cat(AA)
  321. {
  322. displayName = "Anti Air";
  323. };
  324. class macro_editor_cat(heavy_armored_infantry)
  325. {
  326. displayName = "Heavy Armored Infantry";
  327. };
  328. class macro_editor_cat(doggo)
  329. {
  330. displayName = "Doge Squadron";
  331. };
  332. class macro_editor_cat(arty)
  333. {
  334. displayName = "Artillery";
  335. };
  336. class macro_editor_cat(civ)
  337. {
  338. displayName = "Star Wars Civillians";
  339. };
  340. class macro_editor_cat(B1)
  341. {
  342. displayName = "B1 Droids";
  343. };
  344. class macro_editor_cat(Transport)
  345. {
  346. displayName = "Transports";
  347. };
  348. class macro_editor_cat(B1_lowpoly)
  349. {
  350. displayName = "Low Poly B1 Droids";
  351. };
  352. class macro_editor_cat(CIS_SpecOps)
  353. {
  354. displayName = "Special Forces";
  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 = "sheild walls";
  367. };
  368. class macro_editor_cat(static_msc)
  369. {
  370. displayName = "static stuff";
  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. class 442_ships
  425. {
  426. displayname = "Static Ship";
  427. };
  428. class 442_ships_parts
  429. {
  430. displayname = "Static Ship Parts";
  431. };
  432. class 442_hallway
  433. {
  434. displayname = "Hallways";
  435. };
  436. };
  437. class CfgVehicleClasses
  438. {
  439. class macro_editor_vehicle_type(Car)
  440. {
  441. displayName = "Cars"
  442. };
  443. class macro_editor_vehicle_type(turrets)
  444. {
  445. displayName = "turrets";
  446. };
  447. class macro_editor_vehicle_type(speeders)
  448. {
  449. displayName = "speeeeeders";
  450. };
  451. class macro_editor_vehicle_type_air(Empire)
  452. {
  453. displayName = "X Empire Aircraft";
  454. };
  455. class macro_editor_vehicle_type_air(First_Order)
  456. {
  457. displayName = "X First Order Aircraft";
  458. };
  459. class macro_editor_vehicle_type_air(CIS)
  460. {
  461. displayName = "X CIS Aircraft";
  462. };
  463. class macro_editor_vehicle_type_air(Rebel)
  464. {
  465. displayName = "X Rebel Aircraft";
  466. };
  467. class macro_editor_vehicle_type_air(Republic)
  468. {
  469. displayName = "X Republic Aircraft";
  470. };
  471. class macro_editor_vehicle_type_air(Resistance)
  472. {
  473. displayName = "X Resistance Aircraft";
  474. };
  475. class macro_editor_vehicle_type(tank)
  476. {
  477. displayName = "Tanks";
  478. };
  479. class macro_editor_vehicle_type(AA)
  480. {
  481. displayName = "Anti Air";
  482. };
  483. class macro_editor_vehicle_type(doggo)
  484. {
  485. displayName = "doggie";
  486. };
  487. class macro_editor_vehicle_type(heavy_armored_infantry)
  488. {
  489. displayName = "Heavy Armored Infantry";
  490. };
  491. class macro_editor_vehicle_type(IFV)
  492. {
  493. displayName = "IFV";
  494. };
  495. class macro_editor_vehicle_type(APC)
  496. {
  497. displayName = "APC";
  498. };
  499. class macro_editor_vehicle_type(arty)
  500. {
  501. displayName = "arty";
  502. };
  503. class macro_editor_vehicle_type(static_turrets)
  504. {
  505. displayName = "Static Emplacements";
  506. };
  507. class macro_editor_vehicle_type(statics)
  508. {
  509. displayName = "RD501 Static Walls";
  510. };
  511. };
  512. class CfgVehicles
  513. {
  514. class Man;
  515. class CAManBase: Man
  516. {
  517. class ACE_SelfActions
  518. {
  519. class ACE_Equipment
  520. {
  521. class slingHelmet
  522. {
  523. displayName="Sling Helmet";
  524. icon="RD501_Main\ui_icons\helmet_ca.paa";
  525. priority=3;
  526. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  527. class slingLeft
  528. {
  529. displayName="Sling Left";
  530. icon="RD501_Main\ui_icons\helmet_ca.paa";
  531. priority=3;
  532. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  533. statement="[_player, 'left'] call GEARF_fnc_slingHelmet";
  534. };
  535. class slingRight
  536. {
  537. displayName="Sling Right";
  538. icon="RD501_Main\ui_icons\helmet_ca.paa";
  539. priority=3;
  540. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  541. statement="[_player, 'right'] call GEARF_fnc_slingHelmet";
  542. };
  543. };
  544. class unslingHelmet
  545. {
  546. displayName="Unsling Helmet";
  547. icon="RD501_Main\ui_icons\helmet_ca.paa";
  548. priority=3;
  549. condition="_player getVariable ['GEARF_HelmetAttached', false]";
  550. statement="[_player] call GEARF_fnc_unslingHelmet";
  551. };
  552. class RD501_Auto_Radio_Freq
  553. {
  554. displayName = "A.R.F setter";
  555. exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
  556. condition = "call TFAR_fnc_haveLRRadio";
  557. showDisabled = 0;
  558. priority = 2.5;
  559. icon = "RD501_Main\ui_icons\arf.paa";
  560. statement = "[_player] call rd501_fnc_auto_radio_freq";
  561. runOnHover = 0;
  562. };
  563. };
  564. };
  565. class EventHandlers
  566. {
  567. init="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  568. killed="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  569. getInMan="[(_this select 0), true] call GEARF_fnc_hideSlungHelmet";
  570. getOutMan="[(_this select 0), false] call GEARF_fnc_hideSlungHelmet;";
  571. };
  572. };
  573. };
  574. class cfgheads
  575. {
  576. class head_maul_head;
  577. class rd501_invis_head: head_maul_head
  578. {
  579. model = "";
  580. selectionHeadWound = "injury_head";
  581. selectionPersonality = "personality";
  582. selectionPersonalityHL = "hl";
  583. };
  584. };
  585. class cfgfaces
  586. {
  587. class man_a3
  588. {
  589. class head_maul;
  590. class rd501_invis_head: head_maul
  591. {
  592. disabled = 0;
  593. displayname = "Invisible Head";
  594. head = "rd501_invis_head";
  595. identityTypes[] = {"rd501_invis_head"};
  596. material = "A3\Characters_F\Heads\Data\m_White_01.rvmat";
  597. materialHL = "\A3\Characters_F\Heads\Data\hl_white_bald_muscular.rvmat";
  598. materialHL2 = "\A3\Characters_F\Heads\Data\hl_white_bald_muscular.rvmat";
  599. name = "Clone";
  600. texture = "";
  601. textureHL = "\A3\Characters_F\Heads\Data\hl_white_bald_co.paa";
  602. textureHL2 = "\A3\Characters_F\Heads\Data\hl_white_bald_co.paa";
  603. };
  604. };
  605. };
  606. class cfgidentities
  607. {
  608. class headmaul;
  609. class rd501_invis_head: headmaul
  610. {
  611. name = "Clone";
  612. };
  613. };