0.3.9 b556

fixed unneeded message when suppressing forced AI spawn.
fixed no message if player does not have energy for NVG.
This commit is contained in:
vbawol 2016-07-06 20:48:53 -05:00
parent 415d9d7157
commit 1da15073d8
33 changed files with 8 additions and 11 deletions

View File

@ -43,15 +43,11 @@ _jammers = [];
_config = 'CfgEpochClient' call EPOCH_returnConfig;
_jammerRange = getNumber(_config >> "buildingJammerRange");
_jammers = nearestObjects[_targetPos, ["PlotPole_EPOCH"], _jammerRange];
if(count _jammers > 0 && (_unitClass in _nonJammer))exitWith{
if(_doVariable)then{["Not allowed near a base - Please respawn !", 5] call Epoch_message;};
};
if(count _jammers > 0 && (_unitClass in _nonJammer))exitWith{};
_restricted = [];
_restricted = nearestObjects [_targetPos, ["ProtectionZone_Invisible_F"], _nonTraderAIRange];
if(count _restricted > 0 && (_unitClass in _nonTrader))exitWith{
if(_doVariable)then{["Not allowed near a trader - Please respawn !", 5] call Epoch_message;};
};
if(count _restricted > 0 && (_unitClass in _nonTrader))exitWith{};
_disableAI = {
{_this disableAI _x}forEach["TARGET","AUTOTARGET","FSM"];

View File

@ -261,6 +261,7 @@ if (_dikCode in (actionKeys "TacticalView")) then {
};
if (_dikCode in (actionKeys "NightVision")) then {
if (EPOCH_playerEnergy == 0) then {
["Night Vision Goggles: Need Energy", 5] call Epoch_message;
_handled = true;
};
};

View File

@ -1 +1 @@
build=555;
build=556;

View File

@ -1 +1 @@
build=555;
build=556;

View File

@ -1 +1 @@
build=555;
build=556;

View File

@ -1 +1 @@
build=555;
build=556;

View File

@ -1 +1 @@
555
556