zombie attack range set to static 2.5m

This commit is contained in:
[VB]AWOL
2013-12-09 16:17:59 -06:00
parent 46984fd14d
commit f52c774883
2 changed files with 5 additions and 8 deletions

View File

@@ -614,7 +614,7 @@ if(!isDedicated) then {
dayz_clientPreload = false; dayz_clientPreload = false;
dayz_authed = false; dayz_authed = false;
dayz_panicCooldown = 0; dayz_panicCooldown = 0;
dayz_areaAffect = 3.5; dayz_areaAffect = 2.5;
dayz_heartBeat = false; dayz_heartBeat = false;
dayzClickTime = 0; dayzClickTime = 0;
dayz_spawnDelay = 120; dayz_spawnDelay = 120;

View File

@@ -18,11 +18,11 @@ while {true} do {
_refObj = vehicle player; _refObj = vehicle player;
_factor = 0.6; _factor = 0.6;
_inVehicle = (_refObj != player); _inVehicle = (_refObj != player);
_size = (sizeOf typeOf _refObj) * _factor; // _size = (sizeOf typeOf _refObj) * _factor;
_vel = velocity player; _vel = velocity player;
_speed = round((_vel distance [0,0,0]) * 3.5); _speed = round((_vel distance [0,0,0]) * 3.5);
dayz_areaAffect = _size; // dayz_areaAffect = _size;
//Record Check //Record Check
_lastUpdate = time - dayZ_lastPlayerUpdate; _lastUpdate = time - dayZ_lastPlayerUpdate;
@@ -150,17 +150,14 @@ while {true} do {
if(_radTimer > 5 AND _radTimer < 10) then { if(_radTimer > 5 AND _radTimer < 10) then {
_radsound = "radzone2"; _radsound = "radzone2";
_bloodloss = 20; _bloodloss = 20;
playSound "breath_1";
}; };
if(_radTimer > 10) then { if(_radTimer > 10) then {
_radsound = "radzone3"; _radsound = "radzone3";
_bloodloss = 30; _bloodloss = 30;
addCamShake [2, 1, 25];
}; };
if(_radTimer > 15) then { if(_radTimer > 15) then {
_radsound = "radzone4"; _radsound = "radzone4";
_bloodloss = 50; _bloodloss = 50;
[player,"cough",_rnd,false,9] call dayz_zombieSpeak;
}; };
_result = r_player_blood - _bloodloss; _result = r_player_blood - _bloodloss;
if (_result < 0) then { if (_result < 0) then {
@@ -168,7 +165,7 @@ while {true} do {
} else { } else {
r_player_blood = _result; r_player_blood = _result;
}; };
addCamShake [2, 1, 25];
[player,_radsound,0,true] call dayz_zombieSpeak; [player,_radsound,0,true] call dayz_zombieSpeak;
_radTimer = _radTimer + 1; _radTimer = _radTimer + 1;
} else { } else {
@@ -177,7 +174,7 @@ while {true} do {
// Health uptick when healty not thirsty or hungry // Health uptick when healty not thirsty or hungry
if (_foodVal >= 0.9 and _thirstVal >= 0.9) then { if (_foodVal >= 0.9 and _thirstVal >= 0.9) then {
if (!r_player_infected and !r_player_inpain and !r_player_injured) then { if (!r_player_infected and !r_player_inpain and !r_player_injured and !DZE_InRadiationZone) then {
_result = r_player_blood + 10; _result = r_player_blood + 10;
if (_result >= r_player_bloodTotal) then { if (_result >= r_player_bloodTotal) then {
r_player_blood = r_player_bloodTotal; r_player_blood = r_player_bloodTotal;