mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-17 13:42:57 +03:00
Add config for mutant heart protection
This commit is contained in:
@@ -16,7 +16,8 @@ local _target = objNull;
|
||||
local _scandist = 200;
|
||||
|
||||
{
|
||||
if !(_x hasWeapon "ItemMutantHeart") then {
|
||||
local _skip = (DZE_MutantHeartProtect && {_x hasWeapon "ItemMutantHeart"});
|
||||
if (!_skip) then {
|
||||
local _dist = _x distance _mutant;
|
||||
if (_dist < _scandist) then {
|
||||
_target = _x;
|
||||
|
||||
@@ -60,7 +60,8 @@ local _cantSee = false;
|
||||
if (_isZombie) then {
|
||||
[_x, "zombie"] spawn player_zombieAttack;
|
||||
} else {
|
||||
if (!(_refObj hasWeapon "ItemMutantHeart") && !_inVehicle) then {
|
||||
local _noAttack = (DZE_MutantHeartProtect && {_refObj hasWeapon "ItemMutantHeart"});
|
||||
if (!_noAttack && !_inVehicle) then {
|
||||
_x spawn player_mutantAttack;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user