Audio Rejectz
Well-Known Member
Is anyone else getting this issue? As in hitting through almost any wall and hitting from like 10 meters away?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if ((_x distance player < dayz_areaAffect) and !(animationState _x == "ZombieFeed")) then {
[_x,"attack",(_chance),true] call dayz_zombieSpeak;
//perform an attack
_last = _x getVariable["lastAttack",0];
_entHeight = (getPosATL _x) select 2;
_delta = _pHeight - _entHeight;
if ( ((time - _last) > 1) and ((_delta < 1.5) and (_delta > -1.5)) ) then {
//_isZInside = [_x,_building] call fnc_isInsideBuilding;
//if ((_isPlayerInside and _isZInside) or (!_isPlayerInside and !_isZInside)) then {
_x spawn player_zombieAttack;
_x setVariable["lastAttack",time];
//};
};
_attacked = true;
}