mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
no fly sounds on zombies and lower limit
This commit is contained in:
@@ -14,11 +14,13 @@ dayz_spawnZombies = 0;
|
|||||||
dayz_CurrentZombies = 0;
|
dayz_CurrentZombies = 0;
|
||||||
|
|
||||||
// experiment with adding fly sounds locally for both zombies and players.
|
// experiment with adding fly sounds locally for both zombies and players.
|
||||||
_soundLimit = 3;
|
_soundLimit = 2;
|
||||||
{
|
{
|
||||||
if (!alive _x) then {
|
if (!alive _x) then {
|
||||||
[player,"flysound",1,true] call dayz_zombieSpeak;
|
if (!(_x isKindOf "zZombie_Base")) then {
|
||||||
_soundLimit = _soundLimit - 1;
|
[player,"flysound",1,true] call dayz_zombieSpeak;
|
||||||
|
_soundLimit = _soundLimit - 1;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
if (_soundLimit == 0) exitWith {};
|
if (_soundLimit == 0) exitWith {};
|
||||||
} foreach (nearestObjects [player, ["CAManBase"], 8]);
|
} foreach (nearestObjects [player, ["CAManBase"], 8]);
|
||||||
|
|||||||
Reference in New Issue
Block a user