Add back player zombie faces

Also moved player zombie attack from 'v' key to an addaction with
localized string.
This commit is contained in:
ebaydayz
2016-04-20 14:50:12 -04:00
parent 9d4bd9221a
commit 14dacf269c
33 changed files with 99 additions and 34 deletions

View File

@@ -189,13 +189,12 @@ if (DZE_NameTags > 0) then {
};
if (_isPZombie) then {
if (s_player_attack < 0) then {
s_player_attack = player addAction [localize "STR_EPOCH_ACTIONS_ATTACK", "\z\addons\dayz_code\actions\pzombie\pz_attack.sqf", _cursorTarget, 6, false, true];
};
if (s_player_callzombies < 0) then {
s_player_callzombies = player addAction [localize "STR_EPOCH_ACTIONS_RAISEHORDE", "\z\addons\dayz_code\actions\pzombie\call_zombies.sqf",player, 5, true, false];
};
if (DZE_PZATTACK) then {
call pz_attack;
DZE_PZATTACK = false;
};
if (s_player_pzombiesvision < 0) then {
s_player_pzombiesvision = player addAction [localize "STR_EPOCH_ACTIONS_NIGHTVIS", "\z\addons\dayz_code\actions\pzombie\pz_vision.sqf", [], 4, false, true, "nightVision", "_this == _target"];
};
@@ -207,7 +206,7 @@ if (_isPZombie) then {
// Pzombie Gut human corpse or animal
if (!alive _cursorTarget && (_isAnimal || _isMan) && !_isZombie && !_isHarvested) then {
if (s_player_pzombiesfeed < 0) then {
s_player_pzombiesfeed = player addAction [localize "STR_EPOCH_ACTIONS_FEED", "\z\addons\dayz_code\actions\pzombie\pz_feed.sqf",cursorTarget, 3, true, false];
s_player_pzombiesfeed = player addAction [localize "STR_EPOCH_ACTIONS_FEED", "\z\addons\dayz_code\actions\pzombie\pz_feed.sqf",_cursorTarget, 3, true, false];
};
} else {
player removeAction s_player_pzombiesfeed;

View File

@@ -259,8 +259,7 @@ if (isNil "keyboard_keys") then {
r_interrupt = true;
};
if (player isKindOf "PZombie_VB") then {
_handled = true;
DZE_PZATTACK = true;
_handled = true; // do not allow player zombies to vault or jump
} else {
_nearbyObjects = nearestObjects[getPosATL player, dayz_disallowedVault, 8];
if (count _nearbyObjects > 0) then {

View File

@@ -7,7 +7,12 @@ _scaleMvmt = 0.2; //0.4;
_scaleLight = 0.5;
//_scaleAlert = 1;
_isPZombie = player isKindOf "PZombie_VB";
if(_isPZombie) exitWith { DAYZ_disAudial = 0; DAYZ_disVisual = 0; };
if (_isPZombie) exitWith {
DAYZ_disAudial = 0;
DAYZ_disVisual = 0;
player_zombieAttack = {}; // Other zombies don't attack player zombies
player_zombieCheck = {};
};
//Assess Players Position
_anim = animationState player;