From dab4ef502387ef17cbdec671d31b0fdfb14a3283 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Thu, 5 Dec 2013 10:10:15 -0600 Subject: [PATCH] no fly sounds on zombies and lower limit --- SQF/dayz_code/compile/player_spawnCheck.sqf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/compile/player_spawnCheck.sqf b/SQF/dayz_code/compile/player_spawnCheck.sqf index fcb24ff64..e98864b41 100644 --- a/SQF/dayz_code/compile/player_spawnCheck.sqf +++ b/SQF/dayz_code/compile/player_spawnCheck.sqf @@ -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]);