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

@@ -77,4 +77,38 @@ class gangsta_faces_mask : Man {};
class HeadMaskWinter : Man {};
class HeadMaskSnow : Man {};
class HeadMaskSkull : Man {};
class ZFaces //Epoch player zombies
{
class Default
{
name = "PZombie 1";
texture = "\dayz\textures\faces\zombie_03_co.paa";
identityTypes[] = {"PZombie1"};
disabled = 0;
material = "\ca\characters\heads\male\defaulthead\data\hhl_white.rvmat";
head = "defaultHead";
};
class Zombie1 : Default
{
name = "PZombie 1";
texture = "\dayz\textures\faces\zombie_03_co.paa";
identityTypes[] = {"PZombie1"};
disabled = 0;
};
class Zombie2 : Default
{
name = "PZombie 2";
texture = "\dayz\textures\faces\zombie_03_co.paa";
identityTypes[] = {"PZombie2"};
disabled = 0;
};
class Zombie3 : Default {
name = "Zombie 3";
texture = "z\addons\dayz_communityassets\faces\zombie_03_co.paa";
material = "z\addons\dayz_communityassets\faces\zombie_03.rvmat";
identityTypes[] = {"Zombie3"};
disabled = 0;
};
};
};

View File

@@ -1,26 +1,24 @@
private ["_ent","_rnd","_move","_isZombie"];
player removeAction s_player_attack;
s_player_attack = 1;
if (!isNull cursorTarget) then {
private ["_ent","_rnd","_move"];
_ent = cursorTarget;
_rnd = (round(random 9)) + 1;
_move = "ZombieStandingAttack" + str(_rnd);
player playMoveNow _move;
_isZombie = _ent isKindOf "zZombie_base";
if(player distance _ent < 5) then {
if (_ent isKindOf "Animal" || _isZombie) then {
_ent setDamage 1;
} else {
/* PVS/PVC - Skaronator */
PVDZ_send = [_ent,"Legs",[_ent,player]];
publicVariableServer "PVDZ_send";
};
[player,"hit",0,false] call dayz_zombieSpeak;
_ent = _this select 3;
_rnd = (round(random 9)) + 1;
_move = "ZombieStandingAttack" + str(_rnd);
player playMoveNow _move;
if (!isNull _ent && {player distance _ent < 5}) then {
if (_ent isKindOf "Animal" || _ent isKindOf "zZombie_base") then {
_ent setDamage 1;
} else {
/* PVS/PVC - Skaronator */
PVDZ_send = [_ent,"Legs",[_ent,player]];
publicVariableServer "PVDZ_send";
};
uiSleep 1;
player switchmove "";
};
[player,"hit",0,false] call dayz_zombieSpeak;
};
uiSleep 1;
player switchMove "";
s_player_attack = -1;

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;

View File

@@ -34,7 +34,6 @@ DZE_ForceNameTagsInTrader = false; // Force name display when looking at player
DZE_HumanityTargetDistance = 25; // Distance to show name tags (red for bandit, blue for hero, green for friend)
DZE_HeartBeat = false; // Enable heartbeat sound when looking at bandit (<= -3000 humanity) up close
DZE_HeliLift = true; // Enable Epoch heli lift system
DZE_PlayerZed = false; // Enable spawning as a player zombie when players die with infected status
DZE_R3F_WEIGHT = false; // Enable R3F weight. Players carrying too much will be overburdened and knocked out.
DZE_RestrictSkins = []; // Clothes that players are not allowed to wear. i.e. ["Skin_GUE_Soldier_CO_DZ","Skin_GUE_Soldier_2_DZ"] etc.
DZE_TRADER_SPAWNMODE = false; // Vehicles purchased at traders will be parachuted in

View File

@@ -172,7 +172,6 @@ if (!isDedicated) then {
player_unlockVault = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_unlockVault.sqf";
player_upgradeVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_upgradeVehicle.sqf";
player_vaultPitch = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\vault_pitch.sqf";
pz_attack = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\pzombie\pz_attack.sqf";
dayz_losChance = {
private["_agent","_maxDis","_dis","_val","_maxExp","_myExp"];

View File

@@ -200,6 +200,7 @@ dayz_resetSelfActions = {
s_player_packvault = -1;
s_player_lockvault = -1;
s_player_unlockvault = -1;
s_player_attack = -1;
s_player_callzombies = -1;
s_player_showname = -1;
s_player_pzombiesattack = -1;
@@ -646,7 +647,6 @@ if (!isDedicated) then {
DZE_6 = false;
DZE_F = false;
DZE_cancelBuilding = false;
DZE_PZATTACK = false;
DZE_TEMP_treedmg = 1;
DZE_Surrender = false;
DZE_Quarantine = false;

View File

@@ -13178,6 +13178,15 @@
<French>Ne pas afficher le nom</French>
<Czech>Nezobrazovat jména</Czech>
</Key>
<Key ID="STR_EPOCH_ACTIONS_ATTACK">
<English>Attack</English>
<German>Attacke</German>
<Russian>Атака</Russian>
<Spanish>Ataque</Spanish>
<Dutch>Aanval</Dutch>
<French>Attaque</French>
<Czech>Záchvat</Czech>
</Key>
<Key ID="STR_EPOCH_ACTIONS_RAISEHORDE">
<English>Raise Horde</English>
<!-- <German></German> -->

View File

@@ -75,7 +75,7 @@ if (_characterID != "0") then {
};
if (_isNewGear) then {
if (typeName _magazines == "ARRAY") then {
if ((typeName _magazines == "ARRAY") && !(_character isKindOf "PZombie_VB")) then {
_playerGear = [weapons _character,_magazines select 0,_magazines select 1];
};
};

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible

View File

@@ -55,6 +55,7 @@ DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zone
DZE_BuildOnRoads = false; // Allow building on roads
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic
DZE_MissionLootTable = false; // Use custom CfgLoot defined in mission file
DZE_PlayerZed = true; // Enable spawning as a player zombie when players die with infected status
DZE_slowZombies = false; // Force zombies to always walk
DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
DZE_GodModeBase = false; // Make player built base objects indestructible