diff --git a/dayz_code/actions/call_zombies.sqf b/dayz_code/actions/call_zombies.sqf index da6edb4f4..fbab91b09 100644 --- a/dayz_code/actions/call_zombies.sqf +++ b/dayz_code/actions/call_zombies.sqf @@ -4,7 +4,7 @@ _item = _this select 3; //player removeAction s_player_callzombies; //s_player_callzombies = -1; -player playActionNow "Surrender"; +// player playActionNow "Surrender"; [player,"spotted",0,false] call dayz_zombieSpeak; diff --git a/dayz_code/actions/pzombie/pz_feed.sqf b/dayz_code/actions/pzombie/pz_feed.sqf index 27877f545..32939d0f2 100644 --- a/dayz_code/actions/pzombie/pz_feed.sqf +++ b/dayz_code/actions/pzombie/pz_feed.sqf @@ -1,7 +1,16 @@ private["_item","_id","_regen","_isAnimal","_animalType","_isMan","_config","_isListed","_qty"]; _item = _this select 3; -player playActionNow "PutDown"; +player removeAction s_player_butcher; + +_item setDammage 1; + +// wait until dead +waitUntil {not alive _item}; + +s_player_butcher = -1; + +// player playActionNow "PutDown"; _id = [player,50,true,(getPosATL player)] spawn player_alertZombies; [player,"gut",0,false] call dayz_zombieSpeak; diff --git a/dayz_code/compile/fn_selfActions.sqf b/dayz_code/compile/fn_selfActions.sqf index 51f0beb42..38b07f522 100644 --- a/dayz_code/compile/fn_selfActions.sqf +++ b/dayz_code/compile/fn_selfActions.sqf @@ -48,7 +48,8 @@ if(_isPZombie) then { //hint str(_state); if (s_player_callzombies < 0) then { s_player_callzombies = player addAction ["Call Zombies", "\z\addons\dayz_code\actions\call_zombies.sqf",player, 5, true, false, "",""]; - // s_player_callzombies1 = player addAction ["Zombie Vison", "\z\addons\dayz_code\actions\vison_zombie.sqf",player, 4, true, false, "",""]; + //s_player_callzombies1 = player addAction ["Zombie Vison", "\z\addons\dayz_code\actions\vison_zombie.sqf",player, 4, true, false, "",""]; + }; }; @@ -139,7 +140,7 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 4)) if(_isPZombie) then { // Pzombie Gut human corpse or animal - if (!alive cursorTarget and (_isAnimal or _isMan) and !_isHarvested and _canDo) then { + if ((_isAnimal or _isMan) and !_isHarvested and _canDo) then { if (s_player_butcher < 0) then { s_player_butcher = player addAction ["Feed", "\z\addons\dayz_code\actions\pzombie\pz_feed.sqf",cursorTarget, 3, true, false, "",""]; }; diff --git a/dayz_code/compile/player_checkStealth.sqf b/dayz_code/compile/player_checkStealth.sqf index b472239f6..2066bde0a 100644 --- a/dayz_code/compile/player_checkStealth.sqf +++ b/dayz_code/compile/player_checkStealth.sqf @@ -7,6 +7,9 @@ _scaleMvmt = 0.2; //0.4; _scaleLight = 0.5; _scaleAlert = 1; +_isPZombie = player isKindOf "PZombie_VB"; +if(_isPZombie) exitWith {}; + //Assess Players Position _anim = animationState player; _anim4 = toArray _anim; @@ -123,4 +126,6 @@ _audial = round(_speed * dayz_surfaceNoise * _scaleMvmt * _scaleSound); if ((_audial > DAYZ_disAudial) or ((time - dayz_firedCooldown) > 0.3)) then { DAYZ_disAudial = _audial; }; -DAYZ_disVisual = (round((_initial + (_speed * 3)) * _scalePose * _scaleLight)) * 1.5; \ No newline at end of file + + +DAYZ_disVisual = (round((_initial + (_speed * 3)) * _scalePose * _scaleLight)) * 1.5; diff --git a/dayz_code/compile/zombie_findTarget.sqf b/dayz_code/compile/zombie_findTarget.sqf index adf82a7c4..207a718dc 100644 --- a/dayz_code/compile/zombie_findTarget.sqf +++ b/dayz_code/compile/zombie_findTarget.sqf @@ -17,7 +17,7 @@ _targets = _lead nearTargets _range; private["_obj","_dis"]; _obj = _x select 4; _dis = _obj distance _lead; - if (_obj isKindOf "Man" and !(_obj isKindOf "PZombie_VB")) then { + if (_obj isKindOf "Man") then { if (!(_obj isKindOf "zZombie_Base") and !(_obj in _targetMen)) then { //process man targets _targetMen set [count _targetMen,_obj];