From 923a41abff7616d159fcc44057c4a8bb40522b30 Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 9 Mar 2018 22:37:51 +0100 Subject: [PATCH] Config to block ATMs in Plot Range --- Sources/epoch_code/compile/EPOCH_lootTrash.sqf | 6 ++++++ Sources/epoch_config/Configs/CfgEpochClient.hpp | 1 + changelog.md | 1 + 3 files changed, 8 insertions(+) diff --git a/Sources/epoch_code/compile/EPOCH_lootTrash.sqf b/Sources/epoch_code/compile/EPOCH_lootTrash.sqf index c718b09e..53791cfd 100644 --- a/Sources/epoch_code/compile/EPOCH_lootTrash.sqf +++ b/Sources/epoch_code/compile/EPOCH_lootTrash.sqf @@ -90,6 +90,12 @@ if (diag_tickTime - EPOCH_lastTrash > 2) then { }; }; if (!isNull _bankTerminal) then { + _AtmBlockedAtPlot = ["CfgEpochClient", "AtmBlockedAtPlot", false] call EPOCH_fnc_returnConfigEntryV2; + _buildingJammerRange = getNumber(_config >> "buildingJammerRange"); + _jammer = nearestObjects[player, ["PlotPole_EPOCH"], _buildingJammerRange]; + if (!(_jammer isequalto []) && _AtmBlockedAtPlot) exitwith { + ["Bank Terminal blocked by Jammer Signal",5] call Epoch_Message; + }; // make balance request if (isNil "EPOCH_bankTransferActive") then { [player, [], Epoch_personalToken] remoteExec ["EPOCH_server_storeCrypto",2]; diff --git a/Sources/epoch_config/Configs/CfgEpochClient.hpp b/Sources/epoch_config/Configs/CfgEpochClient.hpp index 96b4d2e1..d7bad07e 100644 --- a/Sources/epoch_config/Configs/CfgEpochClient.hpp +++ b/Sources/epoch_config/Configs/CfgEpochClient.hpp @@ -56,6 +56,7 @@ class CfgEpochClient maxdoors = 10; // Max allowed doors per Group maxgates = 5; // Max allowed Gates per Group + AtmBlockedAtPlot = "true"; // Block ATM's in Plotpole-Range disableRemoteSensors = "true"; // disableRemoteSensors true/false epochMessageBackgroundCol[] = {0,0,0,0.2}; //Epoch_message background color (format: {R,G,B,A}) diff --git a/changelog.md b/changelog.md index b9232510..e6ab7385 100644 --- a/changelog.md +++ b/changelog.md @@ -31,6 +31,7 @@ All changes for [Arma 3](https://arma3.com/) [Epoch Mod](https://epochmod.com) a - If the terrain is too steep, you only walk in AutoRun - Inside Water, you can not Autorun - Helper 3D-Icon + Line on the part, where element is snapped on (while Base-Building) @He-Man +- Config in cfgepochclient.hpp to block ATM's in Plotpole range @He-Man ### Fixed - False BE kicks since Arma 3 1.80 update. - Nightlight now also follow players inside Vehicles @He-Man