mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
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:
@@ -31,11 +31,13 @@ dayz_maxGlobalZombies = dayz_maxGlobalZombiesInit;
|
|||||||
if(isPlayer _x) then {
|
if(isPlayer _x) then {
|
||||||
dayz_maxGlobalZombies = dayz_maxGlobalZombies + dayz_maxGlobalZombiesIncrease;
|
dayz_maxGlobalZombies = dayz_maxGlobalZombies + dayz_maxGlobalZombiesIncrease;
|
||||||
} else {
|
} else {
|
||||||
|
if (_x isKindOf "zZombie_Base") then {
|
||||||
if (local _x) then {
|
if (local _x) then {
|
||||||
dayz_spawnZombies = dayz_spawnZombies + 1;
|
dayz_spawnZombies = dayz_spawnZombies + 1;
|
||||||
};
|
};
|
||||||
dayz_CurrentZombies = dayz_CurrentZombies + 1;
|
dayz_CurrentZombies = dayz_CurrentZombies + 1;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
} foreach _players;
|
} foreach _players;
|
||||||
|
|
||||||
if ("ItemMap_Debug" in items player) then {
|
if ("ItemMap_Debug" in items player) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user