config.cpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  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 ATTE_lift
  32. {
  33. file= macro_mod_script_path\vehicle_lift\ATTE_Lift.sqf
  34. };
  35. class Vehicle_lift
  36. {
  37. file=macro_mod_script_path\vehicle_lift\Vehicle_Lift.sqf
  38. };
  39. class mtt_deploy_droids
  40. {
  41. file=macro_mod_script_path\MTT\mtt_deploy_droids.sqf
  42. };
  43. };
  44. };
  45. class rd501_scripts//This will be the name of the mods functions,in functionViewer.
  46. {
  47. tag="RD501";
  48. class rd501_test_fnc
  49. {
  50. // class test_fnc
  51. // {
  52. // file = "RD501_Main\functions\test_fnc_midnight.sqf";
  53. // postinit=1;
  54. // };
  55. class auto_radio_freq
  56. {
  57. file = "RD501_Main\functions\auto_radio_freq.sqf";
  58. };
  59. class enable_arf
  60. {
  61. file = "RD501_Main\functions\auto_radio_freq_enabler.sqf";
  62. };//[player,['35.1','35.2','35.3','35.4','35','36','35.5','42','42'] ]call rd501_fnc_enable_arf
  63. };
  64. class the_cleanman
  65. {
  66. class ya_yeet_man
  67. {
  68. postInit = 1;
  69. file = macro_mod_script_path\add_radio_freq_shower.sqf
  70. };
  71. };
  72. };
  73. class GEARF
  74. {
  75. class vectorFunctions
  76. {
  77. file="RD501_Main\functions\sling_helmet\Vectors";
  78. class rotateObject
  79. {
  80. };
  81. };
  82. class helmetFunctions
  83. {
  84. file="RD501_Main\functions\sling_helmet\Helmet";
  85. class slingHelmet
  86. {
  87. };
  88. class unslingHelmet
  89. {
  90. };
  91. class hideSlungHelmet
  92. {
  93. };
  94. };
  95. };
  96. };
  97. class Extended_Init_EventHandlers
  98. {
  99. class CAManBase
  100. {
  101. class RD501_MedNotif
  102. {
  103. init = call macro_fnc_name(add_med_notification);
  104. };
  105. };
  106. };
  107. //Run once at a point in time before all the mission units and vehicles have their own init event handlers processed
  108. class Extended_PreInit_EventHandlers
  109. {
  110. class XEH_Preinit
  111. {
  112. init="call compile preprocessFileLineNumbers 'RD501_Main\XEH_preInit.sqf'";
  113. };
  114. };
  115. //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
  116. class Extended_PostInit_EventHandlers {
  117. class XEH_Postinit {
  118. init = "call compile preprocessFileLineNumbers 'RD501_Main\XEH_postinit.sqf'";
  119. };
  120. };
  121. // class CfgMagazines
  122. // {
  123. // class CA_Magazine;
  124. // class 2Rnd_12Gauge_Pellets:CA_Magazine
  125. // {
  126. // displayName = "120 Gauge 2Rnd Pellets";
  127. // count = 200;
  128. // };
  129. // };
  130. // class CfgAmmo
  131. // {
  132. // class BulletBase;
  133. // class B_12Gauge_Pellets_Submunition:BulletBase
  134. // {
  135. // //model = "\SWOP_Main\Effects\Tracer\LaserRed";
  136. // model = "\A3\Weapons_f\Data\bullettracer\tracer_red";
  137. // effectFly = "SWOP_BlueLaserEffect";
  138. // CraterEffects = "ExploAmmoLaserCrater";
  139. // explosionEffects = "SWOP_LaserExploSmall";
  140. // triggerTime = .2;
  141. // submunitionAmmo = "G_40mm_HEDP";//G_40mm_HEDP
  142. // submunitionConeType[] = {"poissondisc", 80};
  143. // submunitionConeAngle = 90.8;
  144. // triggerSpeedCoef[] = {0.01, .1};
  145. // };
  146. // class G_40mm_HE;
  147. // class G_40mm_HEDP:G_40mm_HE
  148. // {
  149. // model = "\SWOP_Main\Effects\Tracer\LaserBlue";
  150. // effectFly = "SWOP_BlueLaserEffect";
  151. // timeToLive = 30.15;
  152. // };
  153. // class B_12Gauge_Pellets_Submunition_Deploy: BulletBase
  154. // {
  155. // //model = "\SWOP_Main\Effects\Tracer\LaserRed";
  156. // model = "\A3\Weapons_f\Data\bullettracer\tracer_red";
  157. // effectFly = "SWOP_RedLaserEffect";
  158. // CraterEffects = "ExploAmmoLaserCrater";
  159. // explosionEffects = "SWOP_LaserExploSmall";
  160. // };
  161. // };
  162. // class cfgFactionClasses
  163. // {
  164. // class RD_Op_Fac
  165. // {
  166. // displayName="RD501 OPFOR Faction";
  167. // priority=3;
  168. // side=0;
  169. // };
  170. // class RD_Blu_Fac
  171. // {
  172. // displayName="RD501 BLUFOR Faction";
  173. // priority= 3;
  174. // side=1;
  175. // };
  176. // class RD_Ind_Fac
  177. // {
  178. // displayName="RD501 Independent Faction";
  179. // priority=3;
  180. // side= 2;
  181. // };
  182. // class RD_Civ_Fac
  183. // {
  184. // displayName="RD501 Star Wars Civ";
  185. // priority=3;
  186. // side= 3;
  187. // };
  188. // class RD501_Faction_LPB1
  189. // {
  190. // displayName="Low Poly Assets";
  191. // priority=3;
  192. // side=0;
  193. // };
  194. // };
  195. class cfgFactionClasses
  196. {
  197. class macro_cis_faction
  198. {
  199. displayName="RD501 C.I.S Faction";
  200. priority=3;
  201. side=0;
  202. };
  203. class macro_empire_faction
  204. {
  205. displayName="RD501 Empire Faction";
  206. priority=3;
  207. side=0;
  208. };
  209. class macro_first_order_faction
  210. {
  211. displayName="RD501 First Order Faction";
  212. priority=3;
  213. side=0;
  214. };
  215. class macro_republic_faction
  216. {
  217. displayName="RD501 Republic Faction";
  218. priority= 3;
  219. side=1;
  220. };
  221. class macro_rebel_faction
  222. {
  223. displayName="RD501 Rebel Faction";
  224. priority= 3;
  225. side=1;
  226. };
  227. class macro_resistance_faction
  228. {
  229. displayName="RD501 Resistance Faction";
  230. priority= 3;
  231. side=1;
  232. };
  233. class macro_ind_faction
  234. {
  235. displayName="RD501 Independent Faction";
  236. priority=3;
  237. side= 2;
  238. };
  239. class macro_civ_faction
  240. {
  241. displayName="RD501 Civillian Faction";
  242. priority=3;
  243. side= 3;
  244. };
  245. };
  246. class CfgEditorCategories
  247. {
  248. class RD501_Aux
  249. {
  250. displayName = "501st Aux Mod";
  251. };
  252. class macro_editor_cat(suppplies)
  253. {
  254. displayName= "RD501 Supplies"
  255. };
  256. class macro_editor_cat(statics)
  257. {
  258. displayName = "RD501 Static Objects";
  259. };
  260. class macro_editor_cat(Speeders)
  261. {
  262. displayName = "Speeders";
  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(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";
  311. };
  312. class macro_editor_cat(APC)
  313. {
  314. displayName = "APC";
  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(B1_lowpoly)
  341. {
  342. displayName = "Low Poly B1 Droids";
  343. };
  344. class macro_editor_cat(CIS_SpecOps)
  345. {
  346. displayName = "Speciaw fOwOces";
  347. };
  348. class macro_editor_cat(posters)
  349. {
  350. displayName = "Star Wars Posters";
  351. };
  352. class macro_editor_cat(static_ships)
  353. {
  354. displayName = "Static Ships";
  355. };
  356. class macro_editor_cat(wall)
  357. {
  358. displayName = "sheild walls";
  359. };
  360. class macro_editor_cat(static_msc)
  361. {
  362. displayName = "static stuff";
  363. };
  364. class macro_editor_cat(turrets)
  365. {
  366. displayName = "Turrets";
  367. };
  368. class macro_editor_cat(static_turrets)
  369. {
  370. displayName = "Static Emplacements";
  371. };
  372. class macro_editor_cat_air(Empire_vtol)
  373. {
  374. displayName = "Empire Aircraft";
  375. };
  376. class macro_editor_cat_air(First_Order)
  377. {
  378. displayName = "First Order Aircraft";
  379. };
  380. class macro_editor_cat_air(CIS)
  381. {
  382. displayName = "CIS Aircraft";
  383. };
  384. class macro_editor_cat_air(CIS_heli)
  385. {
  386. displayName = "CIS Helicopters";
  387. };
  388. class macro_editor_cat_air(Rebel_vtol)
  389. {
  390. displayName = "Rebel Aircraft";
  391. };
  392. class macro_editor_cat_air(Rebel_heli)
  393. {
  394. displayName = "Rebel Helicopters";
  395. };
  396. class macro_editor_cat_air(Republic_heli)
  397. {
  398. displayName = "Republic Helicopters";
  399. };
  400. class macro_editor_cat_air(Republic_vtol)
  401. {
  402. displayName = "Republic Aircraft";
  403. };
  404. class macro_editor_cat_air(Resistance)
  405. {
  406. displayName = "Resistance Aircraft";
  407. };
  408. class macro_editor_cat_air(vtol)
  409. {
  410. displayName = "Repulsorlift";
  411. };
  412. class macro_editor_cat_air(heli)
  413. {
  414. displayName = "Starfighter";
  415. };
  416. };
  417. class CfgVehicleClasses
  418. {
  419. class macro_editor_vehicle_type(turrets)
  420. {
  421. displayName = "turrets";
  422. };
  423. class macro_editor_vehicle_type(speeders)
  424. {
  425. displayName = "speeeeeders";
  426. };
  427. class macro_editor_vehicle_type_air(Empire)
  428. {
  429. displayName = "X Empire Aircraft";
  430. };
  431. class macro_editor_vehicle_type_air(First_Order)
  432. {
  433. displayName = "X First Order Aircraft";
  434. };
  435. class macro_editor_vehicle_type_air(CIS)
  436. {
  437. displayName = "X CIS Aircraft";
  438. };
  439. class macro_editor_vehicle_type_air(Rebel)
  440. {
  441. displayName = "X Rebel Aircraft";
  442. };
  443. class macro_editor_vehicle_type_air(Republic)
  444. {
  445. displayName = "X Republic Aircraft";
  446. };
  447. class macro_editor_vehicle_type_air(Resistance)
  448. {
  449. displayName = "X Resistance Aircraft";
  450. };
  451. class macro_editor_vehicle_type(tank)
  452. {
  453. displayName = "Tanks";
  454. };
  455. class macro_editor_vehicle_type(AA)
  456. {
  457. displayName = "Anti Air";
  458. };
  459. class macro_editor_vehicle_type(doggo)
  460. {
  461. displayName = "doggie";
  462. };
  463. class macro_editor_vehicle_type(heavy_armored_infantry)
  464. {
  465. displayName = "Heavy Armored Infantry";
  466. };
  467. class macro_editor_vehicle_type(IFV)
  468. {
  469. displayName = "IFV";
  470. };
  471. class macro_editor_vehicle_type(APC)
  472. {
  473. displayName = "APC";
  474. };
  475. class macro_editor_vehicle_type(arty)
  476. {
  477. displayName = "arty";
  478. };
  479. class macro_editor_vehicle_type(static_turrets)
  480. {
  481. displayName = "Static Emplacements";
  482. };
  483. class macro_editor_vehicle_type(statics)
  484. {
  485. displayName = "RD501 Static Walls";
  486. };
  487. };
  488. class CfgVehicles
  489. {
  490. class Man;
  491. class CAManBase: Man
  492. {
  493. class ACE_SelfActions
  494. {
  495. class ACE_Equipment
  496. {
  497. class slingHelmet
  498. {
  499. displayName="Sling Helmet";
  500. icon="RD501_Main\ui_icons\helmet_ca.paa";
  501. priority=3;
  502. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  503. class slingLeft
  504. {
  505. displayName="Sling Left";
  506. icon="RD501_Main\ui_icons\helmet_ca.paa";
  507. priority=3;
  508. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  509. statement="[_player, 'left'] call GEARF_fnc_slingHelmet";
  510. };
  511. class slingRight
  512. {
  513. displayName="Sling Right";
  514. icon="RD501_Main\ui_icons\helmet_ca.paa";
  515. priority=3;
  516. condition="!(_player getVariable ['GEARF_HelmetAttached', false])";
  517. statement="[_player, 'right'] call GEARF_fnc_slingHelmet";
  518. };
  519. };
  520. class unslingHelmet
  521. {
  522. displayName="Unsling Helmet";
  523. icon="RD501_Main\ui_icons\helmet_ca.paa";
  524. priority=3;
  525. condition="_player getVariable ['GEARF_HelmetAttached', false]";
  526. statement="[_player] call GEARF_fnc_unslingHelmet";
  527. };
  528. class RD501_Auto_Radio_Freq
  529. {
  530. displayName = "A.R.F setter";
  531. exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
  532. condition = "call TFAR_fnc_haveLRRadio";
  533. showDisabled = 0;
  534. priority = 2.5;
  535. icon = "RD501_Main\ui_icons\arf.paa";
  536. statement = "[_player] call rd501_fnc_auto_radio_freq";
  537. runOnHover = 0;
  538. };
  539. };
  540. };
  541. class EventHandlers
  542. {
  543. init="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  544. killed="(_this select 0) setVariable ['GEARF_HelmetAttached', false]; (_this select 0) setVariable ['GEARF_HelmetAttachedClass','']; (_this select 0) setVariable ['GEARF_HelmetAdditionalClass',''];";
  545. getInMan="[(_this select 0), true] call GEARF_fnc_hideSlungHelmet";
  546. getOutMan="[(_this select 0), false] call GEARF_fnc_hideSlungHelmet;";
  547. };
  548. };
  549. };