mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
v02
This commit is contained in:
@@ -4,7 +4,7 @@ _item = _this select 3;
|
|||||||
//player removeAction s_player_callzombies;
|
//player removeAction s_player_callzombies;
|
||||||
//s_player_callzombies = -1;
|
//s_player_callzombies = -1;
|
||||||
|
|
||||||
player playActionNow "Surrender";
|
// player playActionNow "Surrender";
|
||||||
|
|
||||||
[player,"spotted",0,false] call dayz_zombieSpeak;
|
[player,"spotted",0,false] call dayz_zombieSpeak;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,16 @@
|
|||||||
private["_item","_id","_regen","_isAnimal","_animalType","_isMan","_config","_isListed","_qty"];
|
private["_item","_id","_regen","_isAnimal","_animalType","_isMan","_config","_isListed","_qty"];
|
||||||
_item = _this select 3;
|
_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;
|
_id = [player,50,true,(getPosATL player)] spawn player_alertZombies;
|
||||||
|
|
||||||
[player,"gut",0,false] call dayz_zombieSpeak;
|
[player,"gut",0,false] call dayz_zombieSpeak;
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ if(_isPZombie) then {
|
|||||||
//hint str(_state);
|
//hint str(_state);
|
||||||
if (s_player_callzombies < 0) then {
|
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_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 {
|
if(_isPZombie) then {
|
||||||
// Pzombie Gut human corpse or animal
|
// 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 {
|
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, "",""];
|
s_player_butcher = player addAction ["Feed", "\z\addons\dayz_code\actions\pzombie\pz_feed.sqf",cursorTarget, 3, true, false, "",""];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ _scaleMvmt = 0.2; //0.4;
|
|||||||
_scaleLight = 0.5;
|
_scaleLight = 0.5;
|
||||||
_scaleAlert = 1;
|
_scaleAlert = 1;
|
||||||
|
|
||||||
|
_isPZombie = player isKindOf "PZombie_VB";
|
||||||
|
if(_isPZombie) exitWith {};
|
||||||
|
|
||||||
//Assess Players Position
|
//Assess Players Position
|
||||||
_anim = animationState player;
|
_anim = animationState player;
|
||||||
_anim4 = toArray _anim;
|
_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 {
|
if ((_audial > DAYZ_disAudial) or ((time - dayz_firedCooldown) > 0.3)) then {
|
||||||
DAYZ_disAudial = _audial;
|
DAYZ_disAudial = _audial;
|
||||||
};
|
};
|
||||||
DAYZ_disVisual = (round((_initial + (_speed * 3)) * _scalePose * _scaleLight)) * 1.5;
|
|
||||||
|
|
||||||
|
DAYZ_disVisual = (round((_initial + (_speed * 3)) * _scalePose * _scaleLight)) * 1.5;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ _targets = _lead nearTargets _range;
|
|||||||
private["_obj","_dis"];
|
private["_obj","_dis"];
|
||||||
_obj = _x select 4;
|
_obj = _x select 4;
|
||||||
_dis = _obj distance _lead;
|
_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 {
|
if (!(_obj isKindOf "zZombie_Base") and !(_obj in _targetMen)) then {
|
||||||
//process man targets
|
//process man targets
|
||||||
_targetMen set [count _targetMen,_obj];
|
_targetMen set [count _targetMen,_obj];
|
||||||
|
|||||||
Reference in New Issue
Block a user