mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
No Uniform Restrictions - Update FUNC(exportConfig)
(#10198)
* Update fnc_exportConfig.sqf * Update fnc_exportConfig.sqf * Update fnc_exportConfig.sqf
This commit is contained in:
parent
cf3a86ffc7
commit
3d86fffef6
@ -23,28 +23,26 @@ private _baseClasses = [];
|
|||||||
if !(_baseClass in (_modifyClasses apply {_x select 0})) then {
|
if !(_baseClass in (_modifyClasses apply {_x select 0})) then {
|
||||||
_baseClasses pushBackUnique _baseClass;
|
_baseClasses pushBackUnique _baseClass;
|
||||||
};
|
};
|
||||||
false
|
} forEach ((toString {
|
||||||
} count (
|
!isNull (_x >> 'modelSides') &&
|
||||||
("!isNull (_x >> 'modelSides') &&" +
|
{(_x >> 'modelSides') in (configProperties [_x, 'true', false])} &&
|
||||||
"{(_x >> 'modelSides') in (configProperties [_x, 'true', false])} &&" +
|
{getArray (_x >> 'modelSides') isNotEqualTo [6]} &&
|
||||||
"{getArray (_x >> 'modelSides') isNotEqualTo [6]} &&" +
|
{getArray (_x >> 'modelSides') isNotEqualTo [0,1,2,3]}
|
||||||
"{getArray (_x >> 'modelSides') isNotEqualTo [0,1,2,3]}")
|
}) configClasses (configFile >> "CfgVehicles"));
|
||||||
configClasses (configFile >> "CfgVehicles")
|
|
||||||
);
|
|
||||||
|
|
||||||
private _nl = toString [13, 10];
|
private _nl = endl;
|
||||||
private _output = "class CfgVehicles {" + _nl;
|
private _output = ["class CfgVehicles {", _nl];
|
||||||
{
|
{
|
||||||
ADD(_output,format [ARR_3(" class %1;%2",configName _x,_nl)]);
|
_output pushBack format [" class %1;%2", configName _x, _nl];
|
||||||
false
|
} forEach _baseClasses;
|
||||||
} count _baseClasses;
|
_output pushBack _nl;
|
||||||
ADD(_output,_nl);
|
|
||||||
{
|
{
|
||||||
_x params ["_class", "_parent"];
|
_x params ["_class", "_parent"];
|
||||||
ADD(_output,format [ARR_4(" class %1: %2 {%3 modelSides[] = {6};%3 };%3",configName _class,configName _parent,_nl)]);
|
_output pushBack format [" class %1: %2 {%3 modelSides[] = {6};%3 };%3", configName _class, configName _parent, _nl];
|
||||||
false
|
} forEach _modifyClasses;
|
||||||
} count _modifyClasses;
|
_output pushBack "};";
|
||||||
ADD(_output,"};");
|
|
||||||
|
_output = _output joinString "";
|
||||||
|
|
||||||
copyToClipboard _output;
|
copyToClipboard _output;
|
||||||
_output;
|
_output // return
|
||||||
|
Loading…
Reference in New Issue
Block a user