Block Door interactions for ACE-Mod

This commit is contained in:
He-Man 2019-01-11 16:51:58 +01:00
parent a6b7eb94b4
commit 52b41f4ac3
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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})