From 52b41f4ac38a7d6384f7098394685d46c12547c4 Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 11 Jan 2019 16:51:58 +0100 Subject: [PATCH] Block Door interactions for ACE-Mod --- Sources/epoch_code/init/client_init.sqf | 10 ++++++++++ Sources/epoch_config/Configs/CfgEpochClient.hpp | 1 + 2 files changed, 11 insertions(+) diff --git a/Sources/epoch_code/init/client_init.sqf b/Sources/epoch_code/init/client_init.sqf index 482e79a0..397101f5 100644 --- a/Sources/epoch_code/init/client_init.sqf +++ b/Sources/epoch_code/init/client_init.sqf @@ -94,4 +94,14 @@ call EPOCH_clientInit; [] execFSM "epoch_code\system\player_login.fsm"; +if (isclass (configFile >> "CfgPatches" >> "ace_common")) then { + if (["CfgEpochClient", "DisableDoorInteractForACE", true] call EPOCH_fnc_returnConfigEntryV2) then { + [] spawn { + private _start = diag_ticktime; + waituntil {!isnil "MACRO_DOOR_REACH_DISTANCE" || diag_ticktime - _start > 90}; + MACRO_DOOR_REACH_DISTANCE = -1; + }; + }; +}; + true diff --git a/Sources/epoch_config/Configs/CfgEpochClient.hpp b/Sources/epoch_config/Configs/CfgEpochClient.hpp index 41058cb5..8d740834 100644 --- a/Sources/epoch_config/Configs/CfgEpochClient.hpp +++ b/Sources/epoch_config/Configs/CfgEpochClient.hpp @@ -67,6 +67,7 @@ class CfgEpochClient ActionHookRope = "true"; // Rope is needed to hook vehicles (get back on release) DefuseBombChance = 0.4; // Chance for successfully defuse a bomb -> If fail, the bomb will explode + DisableDoorInteractForACE = "true"; // If true, Door-Interactions from ACE-Mod will be blocked (no effect, if ACE is not running) epochMessageBackgroundCol[] = {0,0,0,0.2}; //Epoch_message background color (format: {R,G,B,A}) epochMessageTextCol[] = {1,1,1,0.95}; //Epoch_message text color (format: {R,G,B,A})