ACE auto detect

This commit is contained in:
Christian 2017-11-02 07:23:28 +01:00
parent d03e92c99d
commit 547bc37057
4 changed files with 7 additions and 16 deletions

View File

@ -29,7 +29,6 @@ if ( isMultiplayer ) then {
KP_liberation_mobilerespawn = ["MobileRespawn",1] call bis_fnc_getParamValue;
KP_liberation_mobilearsenal = ["MobileArsenal",1] call bis_fnc_getParamValue;
KP_liberation_ailogistics = ["AiLogistics",1] call bis_fnc_getParamValue;
KP_liberation_ace = ["AceEnable",0] call bis_fnc_getParamValue;
// Arty Supp deactivated for now - KP_liberation_suppMod_enb = ["SuppMod",1] call BIS_fnc_getParamValue;
KP_liberation_restart = ["ServerRestart",0] call BIS_fnc_getParamValue;
KP_liberation_cr_param_buildings = ["CR_Building",0] call BIS_fnc_getParamValue;
@ -74,7 +73,6 @@ if ( isMultiplayer ) then {
KP_liberation_mobilerespawn = 1;
KP_liberation_mobilearsenal = 1;
KP_liberation_ailogistics = 1;
KP_liberation_ace = 0;
// Arty Supp deactivated for now - KP_liberation_suppMod_enb = 1;
KP_liberation_restart = 0;
KP_liberation_cr_param_buildings = 0;
@ -106,10 +104,12 @@ if (KP_liberation_mapmarkers == 1) then {KP_liberation_mapmarkers = true; GREUH_
if (KP_liberation_mobilerespawn == 1) then {KP_liberation_mobilerespawn = true} else {KP_liberation_mobilerespawn = false};
if (KP_liberation_mobilearsenal == 1) then {KP_liberation_mobilearsenal = true} else {KP_liberation_mobilearsenal = false};
if (KP_liberation_ailogistics == 1) then {KP_liberation_ailogistics = true} else {KP_liberation_ailogistics = false};
if (KP_liberation_ace == 1) then {KP_liberation_ace = true} else {KP_liberation_ace = false};
if (KP_liberation_cr_param_buildings == 1) then {KP_liberation_cr_param_buildings = true} else {KP_liberation_cr_param_buildings = false};
if (KP_liberation_clear_cargo == 1) then {KP_liberation_clear_cargo = true} else {KP_liberation_clear_cargo = false};
// Check if ACE is running
if (isClass (configFile >> "CfgVehicles" >> "ACE_module")) then {KP_liberation_ace = true; diag_log "[KP LIBERATION] ACE detected. Deactivating resupply and weather scripts from Liberation."} else {KP_liberation_ace = false};
// Fix for not working float values in mission params
switch (GRLIB_unitcap) do {
case 0: {GRLIB_unitcap = 0.5;};

View File

@ -2379,6 +2379,7 @@
</Key>
<Key ID="STR_PARAM_CLEAR_CARGO">
<Original>Clear spawned vehicle cargo</Original>
<German>Inventar gespawnter Fahrzeuge leeren</German>
</Key>
<Key ID="STR_DEPLOY_IN_PROGRESS">
<Original>Deployment in progress...</Original>
@ -4451,13 +4452,6 @@
<Chinesesimp>-- 推货箱</Chinesesimp>
<Turkish>-- KUTUYU İTTİR</Turkish>
</Key>
<Key ID="STR_PARAMS_ACE_ENABLE">
<Original>ACE Compatibility (deactivates the Liberation weather and resupply script)</Original>
<German>ACE Kompatibilität (deaktiviert das Liberation Wetter- und Versorgungsscript)</German>
<Italian>Compatibilità ACE (disattiva il clima e l'approvvigionamento)</Italian>
<Chinesesimp>ACE模组兼容关闭Liberation天气和补给脚本</Chinesesimp>
<Turkish>ACE Uyumluluğu (Liberation hava ve mühimmat scriptini kapatır)</Turkish>
</Key>
<Key ID="STR_ACTION_SORT_STORAGE">
<Original>-- STACK AND SORT</Original>
<German>-- STAPELN UND SORTIEREN</German>

View File

@ -178,12 +178,6 @@ class Params
texts[] = { "" };
default = "";
};
class AceEnable {
title = $STR_PARAMS_ACE_ENABLE;
values[] = { 0, 1 };
texts[] = { $STR_PARAMS_DISABLED, $STR_PARAMS_ENABLED };
default = 0;
};
class Fatigue {
title = $STR_PARAMS_FATIGUE;
values[] = { 0, 1 };

View File

@ -161,6 +161,9 @@ class Missions
## Changelog
### 0.961 (in development)
* Added: ACE auto detection. (BI Revive still has to be disabled manually)
* Added: Parameter to decide if vehicles should have cleared cargo or not. Thanks to [veteran29](https://github.com/veteran29)
* Removed: ACE compatibility parameter.
* Updated: ACE settings from our community due to the new pylons system in ACE.
* Updated: Italian localization. Thanks to [k4s0](https://github.com/k4s0)
* Updated: Chinese Simplified localization. Thanks to [nercon](https://github.com/nercon)