Pylons - Remove ace_zeus from requiredAddons (#6808)

This commit is contained in:
PabstMirror 2019-02-11 14:19:19 -06:00 committed by GitHub
parent 30ecfb0a71
commit 1abe622e28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@ class CfgPatches {
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interact_menu", "ace_zeus"}; requiredAddons[] = {"ace_interact_menu"};
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"654wak654"}; authors[] = {"654wak654"};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);

View File

@ -18,6 +18,8 @@
params ["_aircraft", ["_isCurator", false]]; params ["_aircraft", ["_isCurator", false]];
if (_isCurator && {!(["ace_zeus"] call EFUNC(common,isModLoaded))}) exitWith { WARNING("ace_zeus not loaded"); };
if !(typeOf _aircraft in GVAR(aircraftWithPylons)) exitWith { if !(typeOf _aircraft in GVAR(aircraftWithPylons)) exitWith {
if (_isCurator) then { if (_isCurator) then {
[LSTRING(AircraftDoesntHavePylons)] call EFUNC(zeus,showMessage); [LSTRING(AircraftDoesntHavePylons)] call EFUNC(zeus,showMessage);