mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +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;
|
||||
|
||||
// experiment with adding fly sounds locally for both zombies and players.
|
||||
_soundLimit = 3;
|
||||
_soundLimit = 2;
|
||||
{
|
||||
if (!alive _x) then {
|
||||
[player,"flysound",1,true] call dayz_zombieSpeak;
|
||||
_soundLimit = _soundLimit - 1;
|
||||
if (!(_x isKindOf "zZombie_Base")) then {
|
||||
[player,"flysound",1,true] call dayz_zombieSpeak;
|
||||
_soundLimit = _soundLimit - 1;
|
||||
};
|
||||
};
|
||||
if (_soundLimit == 0) exitWith {};
|
||||
} foreach (nearestObjects [player, ["CAManBase"], 8]);
|
||||
|
||||
Reference in New Issue
Block a user