Add config for mutant heart protection

This commit is contained in:
worldwidesorrow
2021-08-18 14:19:44 -05:00
parent 8422133a7d
commit cc1babf570
4 changed files with 6 additions and 3 deletions

View File

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