IA_liberation_config.sqf 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. /*
  2. CONFIG FILE FOR IA LIBERATION
  3. */
  4. /* - ACE settings.
  5. Enable ACE? (true,false). */
  6. IA_liberation_ace = true;
  7. // Vehicle classnames which also function as ACE medical vehicles.
  8. // TODO: Add SWOP Clone Wars Vechs
  9. IA_liberation_medical_vehicles = [
  10. "B_Truck_01_medical_F",
  11. "B_T_Truck_01_medical_F"
  12. ];
  13. // Classnames of ACE3 crates (which have to be in the unit preset as well).
  14. //TODO: Add SWOP Clone Wars Crates
  15. IA_liberation_ace_crates = [
  16. "ACE_Box_82mm_Mo_HE",
  17. "ACE_Box_82mm_Mo_Smoke",
  18. "ACE_Box_82mm_Mo_Illum",
  19. "ACE_medicalSupplyCrate_advanced"
  20. ];
  21. /* - Custom unit and arsenal preset settings.
  22. Which units preset should be used?
  23. 0 = Default vanilla with RHS USAF and BWMod, both optional (edit the custom.sqf in the presets\ folder to change things for your own versions and tweaks).
  24. 1 = Apex vanilla with RHS USAF and BWMod, both optional (edit the apex_tanoa.sqf in the presets\ folder to change things for your own versions and tweaks).
  25. 2 = RHS USAF and RHS AFRF.
  26. 3 = RHS USAF, RHS AFRF and BWMod.
  27. 4 = RHS USAF, RHS AFRF and Project OPFOR (Takistan)
  28. 5 = 3cbBAF, RHS USAF and RHS AFRF. */
  29. // 6 = SWOP
  30. // TODO: Clean this up, use 1 (create 501st Preset as 1)
  31. if ((paramsArray select 1) == 6) then{
  32. IA_liberation_preset = 6;
  33. }
  34. else{
  35. if ((paramsArray select 1) == 7) then{
  36. IA_liberation_preset = 7;
  37. }
  38. else{
  39. if ((paramsArray select 1) == 8) then{
  40. IA_liberation_preset = 8;
  41. }//end if
  42. else{
  43. if ((paramsArray select 1) == 9) then{
  44. IA_liberation_preset = 9;
  45. }
  46. }
  47. }//end else
  48. };
  49. /* Which arsenal preset should be used?
  50. 0 = Use the default blacklist method (defined below).
  51. 1 = Custom arsenal preset (edit the custom.sqf in the arsenal_presets\ folder to change things for your own versions and tweaks).
  52. 2 = Killah Potatoes Gaming Community arsenal preset.
  53. 3 = RHS USAF arsenal preset.
  54. 4 = RHS USAF arsenal preset with ACE.
  55. 5 = RHS USAF arsenal preset with ACE and ACRE.
  56. 6 = 3cbBAF and RHS USAF arsenal preset. */
  57. IA_liberation_arsenal = 0;
  58. /* - Fuel consumption settings.
  59. Time in minutes till a full tank depletes whilst the vehicle is standing still with a running engine. */
  60. IA_liberation_fuel_neutral = 180;
  61. // Time in minutes till a full tank depletes whilst the vehicle is driving below max speed.
  62. IA_liberation_fuel_normal = 90;
  63. // Time in minutes till a full tank depletes whilst the vehicle is driving at max speed.
  64. IA_liberation_fuel_max = 45;
  65. /* - Gameplay constant settings.
  66. Name of the savegame namespace inside of the [ServerProfileName].vars.Arma3Profile file. */
  67. GRLIB_save_key = "IA_LIBERATION_" + (toUpper worldName) + "_SAVEGAME";
  68. //Done: Debug Enabled for 501st Testing
  69. IA_liberation_debug = true; // Enables debug messages in the server log
  70. IA_liberation_savegame_debug = true; // Enables displaying of the whole save array in the server log on each save
  71. GRLIB_side_friendly = WEST; // Friendly side.
  72. GRLIB_side_enemy = EAST; // Enemy side.
  73. GRLIB_side_resistance = RESISTANCE; // Resistance side.
  74. GRLIB_side_civilian = CIVILIAN; // Civilian side.
  75. GRLIB_respawn_marker = "respawn_west"; // Respawn marker name.
  76. GRLIB_color_friendly = "ColorBLUFOR"; // Friendly sector marker color.
  77. GRLIB_color_enemy = "ColorOPFOR"; // Enemy sector marker color.
  78. GRLIB_color_enemy_bright = "ColorRED"; // Enemy sector marker color (activated).
  79. GRLIB_fob_range = 125; // Build range around the main FOB building.
  80. GRLIB_halo_altitude = 2500; // Altitude in metres for the HALO jump.
  81. GRLIB_secondary_missions_costs = [15, 10, 8]; // Intel price for the secondary missions [FOB hunting, Convoy ambush, SAR].
  82. GRLIB_secondary_objective_impact = 0.6; // The percentage impact against enemy combat readiness for a successful FOB hunt.
  83. GRLIB_recycling_percentage = 0.5; // Percentage of resources you get back from recycling.
  84. IA_liberation_production_interval = 30 / GRLIB_resources_multiplier; // Time in minutes until a production process is finished, when resources multiplier is set to 1.
  85. GRLIB_sector_size = 1000; // Range to activate a sector.
  86. GRLIB_capture_size = 175; // Range to capture a sector.
  87. GRLIB_defended_buildingpos_part = 0.4; // Multiplier for defenders in buildings.
  88. GRLIB_battlegroup_size = 6 * (sqrt GRLIB_unitcap) * (sqrt GRLIB_csat_aggressivity); // Size of enemy battlegroups.
  89. GRLIB_vulnerability_timer = 1200; // Time in seconds how long a captured sector is vulnerable to enemy troops.
  90. GRLIB_radiotower_size = 2500; // Radio Tower scanning range.
  91. GRLIB_surrender_chance = 80; // Chance that enemy infantry will surrender after heavy losses are encountered.
  92. GRLIB_civilians_amount = 10 * GRLIB_civilian_activity; // Civilian count multiplier.
  93. GRLIB_cleanup_delay = 1200; // Time in seconds until bodies of dead soldiers are cleaned up.
  94. GRLIB_blufor_cap = 100 * GRLIB_unitcap; // Cap for BLUFOR.
  95. GRLIB_sector_cap = 180 * GRLIB_unitcap; // Cap for sector defenders.
  96. GRLIB_battlegroup_cap = 150 * GRLIB_unitcap; // Cap for enemy battlegroups.
  97. GRLIB_patrol_cap = 150 * GRLIB_unitcap; // Cap for enemy patrols.
  98. /* - Default arsenal blacklist method.
  99. Useless if you're using anything other than "kp_liberation_arsenal = 0;" above. A whitelisted arsenal is always more performance friendly then a blacklisted arsenal.
  100. REMEMBER: All static turret and UAV bags should be defined here, to stop players from exploiting free resources via the virtual arsenal. */
  101. blacklisted_from_arsenal = [
  102. "B_Respawn_Sleeping_bag_blue_F",
  103. "B_Respawn_Sleeping_bag_brown_F",
  104. "B_Respawn_TentDome_F",
  105. "B_Respawn_Sleeping_bag_F",
  106. "B_Respawn_TentA_F",
  107. "I_HMG_01_weapon_F",
  108. "B_HMG_01_weapon_F",
  109. "O_HMG_01_weapon_F",
  110. "I_HMG_01_A_weapon_F",
  111. "B_HMG_01_A_weapon_F",
  112. "O_HMG_01_A_weapon_F",
  113. "I_HMG_01_high_weapon_F",
  114. "B_HMG_01_high_weapon_F",
  115. "O_HMG_01_high_weapon_F",
  116. "I_GMG_01_weapon_F",
  117. "B_GMG_01_weapon_F",
  118. "O_GMG_01_weapon_F",
  119. "I_GMG_01_A_weapon_F",
  120. "B_GMG_01_A_weapon_F",
  121. "O_GMG_01_A_weapon_F",
  122. "I_GMG_01_high_weapon_F",
  123. "B_GMG_01_high_weapon_F",
  124. "O_GMG_01_high_weapon_F",
  125. "I_Mortar_01_support_F",
  126. "B_Mortar_01_support_F",
  127. "O_Mortar_01_support_F",
  128. "I_Mortar_01_weapon_F",
  129. "B_Mortar_01_weapon_F",
  130. "O_Mortar_01_weapon_F",
  131. "I_HMG_01_support_F",
  132. "B_HMG_01_support_F",
  133. "O_HMG_01_support_F",
  134. "I_HMG_01_support_high_F",
  135. "B_HMG_01_support_high_F",
  136. "O_HMG_01_support_high_F",
  137. "I_AA_01_weapon_F",
  138. "B_AA_01_weapon_F",
  139. "O_AA_01_weapon_F",
  140. "I_AT_01_weapon_F",
  141. "B_AT_01_weapon_F",
  142. "O_AT_01_weapon_F",
  143. "I_UAV_01_backpack_F",
  144. "B_UAV_01_backpack_F",
  145. "O_UAV_01_backpack_F",
  146. "RHS_M2_Gun_Bag",
  147. "RHS_M2_Tripod_Bag",
  148. "rhs_M252_Gun_Bag",
  149. "rhs_M252_Bipod_Bag",
  150. "RHS_M2_MiniTripod_Bag",
  151. "RHS_Mk19_Gun_Bag",
  152. "RHS_Mk19_Tripod_Bag",
  153. "rhs_Tow_Gun_Bag",
  154. "rhs_TOW_Tripod_Bag",
  155. "RHS_Podnos_Bipod_Bag",
  156. "RHS_Podnos_Gun_Bag",
  157. "RHS_Metis_Gun_Bag",
  158. "RHS_Metis_Tripod_Bag",
  159. "RHS_Kornet_Gun_Bag",
  160. "RHS_Kornet_Tripod_Bag",
  161. "RHS_AGS30_Tripod_Bag",
  162. "RHS_AGS30_Gun_Bag",
  163. "RHS_DShkM_Gun_Bag",
  164. "RHS_DShkM_TripodHigh_Bag",
  165. "RHS_DShkM_TripodLow_Bag",
  166. "RHS_Kord_Tripod_Bag",
  167. "RHS_Kord_Gun_Bag",
  168. "RHS_NSV_Tripod_Bag",
  169. "RHS_NSV_Gun_Bag",
  170. "RHS_SPG9_Gun_Bag",
  171. "RHS_SPG9_Tripod_Bag",
  172. "optic_Nightstalker",
  173. "optic_tws",
  174. "optic_tws_mg"
  175. ];
  176. // Items which should be added as allowed Items, when they get blacklisted, even if they are not in the blacklisted_from_arsenal array
  177. IA_liberation_allowed_items_extension = [
  178. "ItemRadioAcreFlagged",
  179. "rhs_m72a7_mag",
  180. "rhsusf_acc_anpeq15_bk_light_h",
  181. "rhs_weap_M136_used",
  182. "rhs_m136_mag",
  183. "rhs_m136_hedp_mag",
  184. "rhs_m136_hp_mag"
  185. ];
  186. /* - Configuration settings for crates transported by vehicles.
  187. Format = ["classname", distance behind vehicle to unload crate, attachTo positions for each box], */
  188. box_transport_config = [
  189. ["C_Offroad_01_F", -6.5, [0,-1.7,0.4]],
  190. ["I_G_Offroad_01_F", -6.5, [0,-1.7,0.4]],
  191. ["O_G_Offroad_01_F", -6.5, [0,-1.7,0.4]],
  192. ["C_Van_01_transport_F", -6.5, [0,-1.1,0.25], [0,-2.6,0.25]],
  193. ["I_G_Van_01_transport_F", -6.5, [0,-1.1,0.25], [0,-2.6,0.25]],
  194. ["I_C_Van_01_transport_F", -6.5, [0,-1.1,0.25], [0,-2.6,0.25]],
  195. ["O_G_Van_01_transport_F", -6.5, [0,-1.1,0.25], [0,-2.6,0.25]],
  196. ["C_Truck_02_transport_F", -6.5, [0,0.3,0.05], [0,-1.3,0.05], [0,-2.9,0.05]],
  197. ["C_Truck_02_covered_F", -6.5, [0,0.3,0.05], [0,-1.3,0.05], [0,-2.9,0.05]],
  198. ["RHS_Ural_Open_Civ_03", -6.5, [0,-0.2,0.55], [0,-1.4,0.55], [0,-2.55,0.55]],
  199. ["RHS_Ural_Civ_03", -6.5, [0,-0.2,0.55], [0,-1.4,0.55], [0,-2.55,0.55]],
  200. ["LOP_TAK_Civ_Ural_open", -6.5, [0,-0.2,0.55], [0,-1.4,0.55], [0,-2.55,0.55]],
  201. ["LOP_TAK_Civ_Ural", -6.5, [0,-0.2,0.55], [0,-1.4,0.55], [0,-2.55,0.55]],
  202. ["B_Truck_01_transport_F", -6.5, [0,-0.4,0.4], [0,-2.1,0.4], [0,-3.8,0.4]],
  203. ["rhsusf_M977A4_usarmy_wd", -8.5, [0.5,0.5,0.4], [0.5,-1.0,0.4], [0.5,-2.5,0.4], [0.5,-4.0,0.4], [-0.5,0.5,0.4], [-0.5,-1.0,0.4], [-0.5,-2.5,0.4], [-0.5,-4.0,0.4]],
  204. ["rhsusf_M977A4_BKIT_M2_usarmy_wd", -8.5, [0.5,0.5,0.4], [0.5,-1.0,0.4], [0.5,-2.5,0.4], [0.5,-4.0,0.4], [-0.5,0.5,0.4], [-0.5,-1.0,0.4], [-0.5,-2.5,0.4], [-0.5,-4.0,0.4]],
  205. ["B_Truck_01_covered_F", -6.5, [0,-0.4,0.4], [0,-2.1,0.4], [0,-3.8,0.4]],
  206. ["B_T_Truck_01_transport_F", -6.5, [0,-0.4,0.4], [0,-2.1,0.4], [0,-3.8,0.4]],
  207. ["B_T_Truck_01_covered_F", -6.5, [0,-0.4,0.4], [0,-2.1,0.4], [0,-3.8,0.4]],
  208. ["rhsusf_M977A4_BKIT_usarmy_d", -8.5, [0.5,0.5,0.4], [0.5,-1.0,0.4], [0.5,-2.5,0.4], [0.5,-4.0,0.4], [-0.5,0.5,0.4], [-0.5,-1.0,0.4], [-0.5,-2.5,0.4], [-0.5,-4.0,0.4]],
  209. ["rhsusf_M977A4_BKIT_M2_usarmy_d", -8.5, [0.5,0.5,0.4], [0.5,-1.0,0.4], [0.5,-2.5,0.4], [0.5,-4.0,0.4], [-0.5,0.5,0.4], [-0.5,-1.0,0.4], [-0.5,-2.5,0.4], [-0.5,-4.0,0.4]],
  210. ["rhsusf_M977A4_BKIT_usarmy_wd", -8.5, [0.5,0.5,0.4], [0.5,-1.0,0.4], [0.5,-2.5,0.4], [0.5,-4.0,0.4], [-0.5,0.5,0.4], [-0.5,-1.0,0.4], [-0.5,-2.5,0.4], [-0.5,-4.0,0.4]],
  211. ["I_Heli_Transport_02_F", -6.5, [0,4.2,-1.45], [0,2.5,-1.45], [0,0.8,-1.45], [0,-0.9,-1.45]],
  212. ["B_Heli_Transport_03_F", -7.5, [0,2.2,-1], [0,0.5,-1], [0,-1.2,-1]],
  213. ["B_Heli_Transport_03_unarmed_F", -7.5, [0,2.2,-1], [0,0.5,-1], [0,-1.2,-1]],
  214. ["rhsusf_CH53E_USMC", -7.5, [0,2.2,-1.4], [0,0.5,-1.4], [0,-1.2,-1.4]],
  215. ["RHS_CH_47F_10", -7.5, [0,2.2,-1.7], [0,0.5,-1.7], [0,-1.2,-1.7]],
  216. ["RHS_CH_47F_light", -7.5, [0,2.2,-1.7], [0,0.5,-1.7], [0,-1.2,-1.7]],
  217. ["RHS_CH_47F", -7.5, [0,2.2,-1.7], [0,0.5,-1.7], [0,-1.2,-1.7]],
  218. ["UK3CB_BAF_Merlin_HC3_18_DPMT", -7.5, [0.25,3.7,-1.5], [0.25,1.6,-1.5], [0.25,-0.4,-1.5]],
  219. ["UK3CB_BAF_Merlin_HC3_32_MTP", -7.5, [0.25,3.7,-1.5], [0.25,1.6,-1.5], [0.25,-0.4,-1.5]],
  220. ["UK3CB_BAF_Merlin_HC3_CSAR_MTP", -7.5, [0.25,3.7,-1.5], [0.25,1.6,-1.5], [0.25,-0.4,-1.5]],
  221. ["O_Truck_03_transport_F", -6.5, [0,-0.8,0.4], [0,-2.4,0.4], [0,-4.0,0.4]],
  222. ["O_Truck_03_covered_F", -6.5, [0,-0.8,0.4], [0,-2.4,0.4], [0,-4.0,0.4]],
  223. ["O_T_Truck_03_transport_ghex_F", -6.5, [0,-0.8,0.4], [0,-2.4,0.4], [0,-4.0,0.4]],
  224. ["O_T_Truck_03_covered_ghex_F", -6.5, [0,-0.8,0.4], [0,-2.4,0.4], [0,-4.0,0.4]],
  225. ["greuh_eh101_gr", -6.5, [0,4.2,-1.45], [0,2.5,-1.45], [0,0.8,-1.45], [0,-0.9,-1.45]],
  226. ["swop_LAAT", -8.5, [0.5,2.5,1.0], [0.5,1.0,1.0], [0.5,-0.5,1.0], [0.5,2.5,2.0], [0.5,1.0,2.0], [0.5,-0.5,2.0]]
  227. ];
  228. /* Various other settings.
  229. Everything the AI troups should be able to resupply from. */
  230. ai_resupply_sources = [
  231. "B_Truck_01_ammo_F",
  232. "B_T_Truck_01_ammo_F",
  233. "B_Slingload_01_Ammo_F",
  234. "B_APC_Tracked_01_CRV_F",
  235. "B_T_APC_Tracked_01_CRV_F"
  236. ];
  237. // Everything that can resupply other vehicles.
  238. vehicle_repair_sources = [
  239. "C_Offroad_01_repair_F",
  240. "B_Truck_01_Repair_F",
  241. "B_T_Truck_01_Repair_F",
  242. "B_Slingload_01_Repair_F",
  243. "B_APC_Tracked_01_CRV_F",
  244. "B_T_APC_Tracked_01_CRV_F"
  245. ];
  246. vehicle_rearm_sources = [
  247. "B_Truck_01_ammo_F",
  248. "B_T_Truck_01_ammo_F",
  249. "B_Slingload_01_Ammo_F",
  250. "B_APC_Tracked_01_CRV_F",
  251. "B_T_APC_Tracked_01_CRV_F"
  252. ];
  253. vehicle_refuel_sources = [
  254. "C_Van_01_fuel_F",
  255. "C_Truck_02_fuel_F",
  256. "B_Truck_01_fuel_F",
  257. "B_T_Truck_01_fuel_F",
  258. "B_Slingload_01_Fuel_F",
  259. "B_APC_Tracked_01_CRV_F",
  260. "B_T_APC_Tracked_01_CRV_F"
  261. ];
  262. // Classnames of boats, so they can be built on water.
  263. boats_names = [
  264. "B_Boat_Transport_01_F",
  265. "B_Boat_Armed_01_minigun_F",
  266. "B_T_Boat_Transport_01_F",
  267. "B_T_Boat_Armed_01_minigun_F",
  268. "O_Boat_Transport_01_F",
  269. "O_Boat_Armed_01_hmg_F",
  270. "O_T_Boat_Transport_01_F",
  271. "O_T_Boat_Armed_01_hmg_F"
  272. ];
  273. // Large storage area placement position offsets.
  274. IA_liberation_large_storage_positions = [
  275. [-5.59961,3.60938,0.6],
  276. [-3.99902,3.60938,0.6],
  277. [-2.39941,3.60938,0.6],
  278. [-0.799805,3.60938,0.6],
  279. [0.800781,3.60938,0.6],
  280. [2.40039,3.60938,0.6],
  281. [4.00098,3.60938,0.6],
  282. [5.60059,3.60938,0.6],
  283. [-5.59961,1.80859,0.6],
  284. [-3.99902,1.80859,0.6],
  285. [-2.39941,1.80859,0.6],
  286. [-0.799805,1.80859,0.6],
  287. [0.800781,1.80859,0.6],
  288. [2.40039,1.80859,0.6],
  289. [4.00098,1.80859,0.6],
  290. [5.60059,1.80859,0.6],
  291. [-5.59961,0.00976563,0.6],
  292. [-3.99902,0.00976563,0.6],
  293. [-2.39941,0.00976563,0.6],
  294. [-0.799805,0.00976563,0.6],
  295. [0.800781,0.00976563,0.6],
  296. [2.40039,0.00976563,0.6],
  297. [4.00098,0.00976563,0.6],
  298. [5.60059,0.00976563,0.6],
  299. [-5.59961,-1.79102,0.6],
  300. [-3.99902,-1.79102,0.6],
  301. [-2.39941,-1.79102,0.6],
  302. [-0.799805,-1.79102,0.6],
  303. [0.800781,-1.79102,0.6],
  304. [2.40039,-1.79102,0.6],
  305. [4.00098,-1.79102,0.6],
  306. [5.60059,-1.79102,0.6],
  307. [-5.59961,-3.58984,0.6],
  308. [-3.99902,-3.58984,0.6],
  309. [-2.39941,-3.58984,0.6],
  310. [-0.799805,-3.58984,0.6],
  311. [0.800781,-3.58984,0.6],
  312. [2.40039,-3.58984,0.6],
  313. [4.00098,-3.58984,0.6],
  314. [5.60059,-3.58984,0.6]
  315. ];
  316. // Small storage area placement position offsets.
  317. IA_liberation_small_storage_positions = [
  318. [-2.34961,1.80078,0.6],
  319. [-0.75,1.80078,0.6],
  320. [0.850586,1.80078,0.6],
  321. [2.4502,1.80078,0.6],
  322. [-2.34961,0,0.6],
  323. [-0.75,0,0.6],
  324. [0.850586,0,0.6],
  325. [2.4502,0,0.6],
  326. [-2.34961,-1.79883,0.6],
  327. [-0.75,-1.79883,0.6],
  328. [0.850586,-1.79883,0.6],
  329. [2.4502,-1.79883,0.6]
  330. ];
  331. // DO NOT CHANGE (unless you know what you are doing).
  332. GRLIB_endgame = 0;
  333. if ( GRLIB_blufor_cap > 100 ) then { GRLIB_blufor_cap = 100 };
  334. GRLIB_offload_diag = false;
  335. IA_liberation_production_interval = ceil IA_liberation_production_interval;
  336. if (IA_liberation_debug) then {private _text = format ["[IA LIBERATION] [DEBUG] config loaded for: %1", (name player)];_text remoteExec ["diag_log",2];};