mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Increase the range of zombie checks
Currently zombies can spawn directly next to the player or in the line of sight.
This commit is contained in:
@@ -9,7 +9,7 @@ _isWreck = _this select 3;
|
|||||||
|
|
||||||
if (surfaceIsWater _position) exitWith { diag_log "Zombie_Generate: Location is in Water Abort"; };
|
if (surfaceIsWater _position) exitWith { diag_log "Zombie_Generate: Location is in Water Abort"; };
|
||||||
|
|
||||||
if (([_position, 15, 10, 70] call fnc_fieldOfView) || {_isWreck}) then {
|
if (([_position, 30, 10, 200] call fnc_fieldOfView) || _isWreck) then {
|
||||||
|
|
||||||
if (count _unitTypes == 0) then {
|
if (count _unitTypes == 0) then {
|
||||||
_unitTypes = getArray (missionConfigFile >> "CfgLoot" >> "Buildings" >> "Default" >> "zombieClass");
|
_unitTypes = getArray (missionConfigFile >> "CfgLoot" >> "Buildings" >> "Default" >> "zombieClass");
|
||||||
|
|||||||
Reference in New Issue
Block a user