mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Add config for mutant heart protection
This commit is contained in:
@@ -16,7 +16,8 @@ local _target = objNull;
|
|||||||
local _scandist = 200;
|
local _scandist = 200;
|
||||||
|
|
||||||
{
|
{
|
||||||
if !(_x hasWeapon "ItemMutantHeart") then {
|
local _skip = (DZE_MutantHeartProtect && {_x hasWeapon "ItemMutantHeart"});
|
||||||
|
if (!_skip) then {
|
||||||
local _dist = _x distance _mutant;
|
local _dist = _x distance _mutant;
|
||||||
if (_dist < _scandist) then {
|
if (_dist < _scandist) then {
|
||||||
_target = _x;
|
_target = _x;
|
||||||
|
|||||||
@@ -60,7 +60,8 @@ local _cantSee = false;
|
|||||||
if (_isZombie) then {
|
if (_isZombie) then {
|
||||||
[_x, "zombie"] spawn player_zombieAttack;
|
[_x, "zombie"] spawn player_zombieAttack;
|
||||||
} else {
|
} else {
|
||||||
if (!(_refObj hasWeapon "ItemMutantHeart") && !_inVehicle) then {
|
local _noAttack = (DZE_MutantHeartProtect && {_refObj hasWeapon "ItemMutantHeart"});
|
||||||
|
if (!_noAttack && !_inVehicle) then {
|
||||||
_x spawn player_mutantAttack;
|
_x spawn player_mutantAttack;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -301,6 +301,7 @@ if (!isDedicated) then {
|
|||||||
DZE_BloodsuckersMaxLocal = 2; // Maximum number of bloodsuckers that can spawn per client.
|
DZE_BloodsuckersMaxLocal = 2; // Maximum number of bloodsuckers that can spawn per client.
|
||||||
DZE_BloodsuckerScreenEffect = true; // On screen slash marks when the bloodsuckers attack.
|
DZE_BloodsuckerScreenEffect = true; // On screen slash marks when the bloodsuckers attack.
|
||||||
DZE_BloodsuckerDeleteNearTrader = true; // Deletes bloodsuckers when near trader cities.
|
DZE_BloodsuckerDeleteNearTrader = true; // Deletes bloodsuckers when near trader cities.
|
||||||
|
DZE_MutantHeartProtect = true; // Disables targeting and attack if the player has a mutant heart in inventory.
|
||||||
};
|
};
|
||||||
|
|
||||||
// Garage Door Opener
|
// Garage Door Opener
|
||||||
|
|||||||
@@ -27350,7 +27350,7 @@
|
|||||||
<English>Mutant Heart</English>
|
<English>Mutant Heart</English>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_MUTANT_HEART_DESC">
|
<Key ID="STR_MUTANT_HEART_DESC">
|
||||||
<English>Bloodsuckers will not attack a player that keeps one in their inventory.</English>
|
<English>Mutant heart</English>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_EPOCH_COMBINATIONLOCK">
|
<Key ID="STR_EPOCH_COMBINATIONLOCK">
|
||||||
<English>Combination Lock</English>
|
<English>Combination Lock</English>
|
||||||
|
|||||||
Reference in New Issue
Block a user