I found a simple yet effective way to have the "no-spawn" zone (aka "safe zone"), and prevent the cheesy log-off/on to get rid of the zombies while looting. This reduces the "no-spawn" zone for all newly logged in players from 450 to 1 for 30 seconds. So, it is a punishment to log in close to zombie spawn points (like in the middle of a town).
In dayz_code\compile\zombie_generate.sqf I changed this:
to this:
In dayz_code\compile\zombie_generate.sqf I changed this:
Code:
_isNoone = {isPlayer _x} count (_position nearEntities ["AllVehicles",450]) == 0;
to this:
Code:
if (time > 30) then {
_isNoone = {isPlayer _x} count (_position nearEntities ["AllVehicles",450]) == 0;
} else {
_isNoone = {isPlayer _x} count (_position nearEntities ["AllVehicles",1]) == 0;
};