2015-01-11 16:42:31 +00:00
|
|
|
// by CAA-Picard
|
2015-01-12 11:14:15 +00:00
|
|
|
#include "\z\ace\addons\core\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
// Read ACE_Parameters from config and set them on the mission namespace
|
|
|
|
_config = configFile >> "ACE_Parameters_Numeric";
|
2015-01-11 16:42:31 +00:00
|
|
|
_count = count _config;
|
|
|
|
for "_index" from 0 to (_count - 1) do {
|
|
|
|
_x = _config select _index;
|
|
|
|
|
|
|
|
_name = configName _x;
|
|
|
|
_value = _x call bis_fnc_getcfgdata;
|
2015-01-11 18:20:14 +00:00
|
|
|
[_name, _value] call FUNC(setParameter);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
_config = configFile >> "ACE_Parameters_Boolean";
|
2015-01-11 16:42:31 +00:00
|
|
|
_count = count _config;
|
|
|
|
for "_index" from 0 to (_count - 1) do {
|
|
|
|
_x = _config select _index;
|
|
|
|
|
|
|
|
_name = configName _x;
|
|
|
|
_value = _x call bis_fnc_getcfgdata;
|
2015-01-11 18:20:14 +00:00
|
|
|
[_name, _value > 0] call FUNC(setParameter);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
// Read ACE_Parameters from mission and set them on the mission namespace, replacing defaults if necesary
|
|
|
|
_config = missionConfigFile >> "ACE_Parameters";
|
2015-01-11 16:42:31 +00:00
|
|
|
_count = count _config;
|
|
|
|
for "_index" from 0 to (_count - 1) do {
|
|
|
|
_x = _config select _index;
|
|
|
|
|
|
|
|
_name = configName _x;
|
|
|
|
_value = _x call bis_fnc_getcfgdata;
|
2015-01-11 18:20:14 +00:00
|
|
|
[_name, _value] call FUNC(setParameter);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
_config = missionConfigFile >> "ACE_Parameters_Numeric";
|
2015-01-11 16:42:31 +00:00
|
|
|
_count = count _config;
|
|
|
|
for "_index" from 0 to (_count - 1) do {
|
|
|
|
_x = _config select _index;
|
|
|
|
|
|
|
|
_name = configName _x;
|
|
|
|
_value = _x call bis_fnc_getcfgdata;
|
2015-01-11 18:20:14 +00:00
|
|
|
[_name, _value] call FUNC(setParameter);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
_config = missionConfigFile >> "ACE_Parameters_Boolean";
|
2015-01-11 16:42:31 +00:00
|
|
|
_count = count _config;
|
|
|
|
for "_index" from 0 to (_count - 1) do {
|
|
|
|
_x = _config select _index;
|
|
|
|
|
|
|
|
_name = configName _x;
|
|
|
|
_value = _x call bis_fnc_getcfgdata;
|
2015-01-11 18:20:14 +00:00
|
|
|
[_name, _value > 0] call FUNC(setParameter);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|