Fix AI from being counted as zeds.

As it was, the loop simply counted everything within a certain radius
that was not a player but is a CAManBase as a zombie.
This commit is contained in:
jwo7777777
2014-01-29 01:53:03 -06:00
parent 68f587de3c
commit 78d0338386

View File

@@ -31,10 +31,12 @@ dayz_maxGlobalZombies = dayz_maxGlobalZombiesInit;
if(isPlayer _x) then {
dayz_maxGlobalZombies = dayz_maxGlobalZombies + dayz_maxGlobalZombiesIncrease;
} else {
if (local _x) then {
dayz_spawnZombies = dayz_spawnZombies + 1;
if (_x isKindOf "zZombie_Base") then {
if (local _x) then {
dayz_spawnZombies = dayz_spawnZombies + 1;
};
dayz_CurrentZombies = dayz_CurrentZombies + 1;
};
dayz_CurrentZombies = dayz_CurrentZombies + 1;
};
} foreach _players;