handle optional pbos in checkFiles

This commit is contained in:
commy2 2015-09-17 02:13:21 +02:00
parent 15f4fc39e3
commit 014203413d
2 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,9 @@ _addons = [_addons, {_this find "ace_" == 0}] call FUNC(filter);
// check server version/addons
///////////////
if (isMultiplayer) then {
// don't check optional addons
_addons = [_addons, {getNumber (configFile >> "CfgPatches" >> _this >> "ACE_isOptional") != 1}] call FUNC(filter);
if (isServer) then {
// send servers version of ACE to all clients
GVAR(ServerVersion) = _version;

View File

@ -2,6 +2,7 @@
class CfgPatches {
class ADDON {
ACE_isOptional = 1;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;