mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
re-revert logic here
This commit is contained in:
parent
b37a425d8c
commit
98ffecd417
@ -39,13 +39,13 @@ _jammers = [];
|
|||||||
_config = 'CfgEpochClient' call EPOCH_returnConfig;
|
_config = 'CfgEpochClient' call EPOCH_returnConfig;
|
||||||
_jammerRange = getNumber(_config >> "buildingJammerRange");
|
_jammerRange = getNumber(_config >> "buildingJammerRange");
|
||||||
_jammers = nearestObjects[_targetPos, ["PlotPole_EPOCH"], _jammerRange];
|
_jammers = nearestObjects[_targetPos, ["PlotPole_EPOCH"], _jammerRange];
|
||||||
if(count _jammers > 0 && !(_unitClass in _nonJammer))exitWith{
|
if(count _jammers > 0 && (_unitClass in _nonJammer))exitWith{
|
||||||
if(_doVariable)then{["<t size='1.6' color='#99ffffff'>Not allowed near a base - Please respawn !</t>", 5] call Epoch_dynamicText;};
|
if(_doVariable)then{["<t size='1.6' color='#99ffffff'>Not allowed near a base - Please respawn !</t>", 5] call Epoch_dynamicText;};
|
||||||
};
|
};
|
||||||
|
|
||||||
_restricted = [];
|
_restricted = [];
|
||||||
_restricted = nearestObjects [_targetPos, ["ProtectionZone_Invisible_F"], _nonTraderAIRange];
|
_restricted = nearestObjects [_targetPos, ["ProtectionZone_Invisible_F"], _nonTraderAIRange];
|
||||||
if(count _restricted > 0 && !(_unitClass in _nonTrader))exitWith{
|
if(count _restricted > 0 && (_unitClass in _nonTrader))exitWith{
|
||||||
if(_doVariable)then{["<t size='1.6' color='#99ffffff'>Not allowed near a trader - Please respawn !</t>", 5] call Epoch_dynamicText;};
|
if(_doVariable)then{["<t size='1.6' color='#99ffffff'>Not allowed near a trader - Please respawn !</t>", 5] call Epoch_dynamicText;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user