mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 10:26:28 +03:00
Revert "test new way of zombie attack using PEH"
This reverts commit 177138f7ac.
This commit is contained in:
@@ -17,21 +17,23 @@ if ((speed _vehicle > 10)) exitWith {
|
||||
if (r_player_unconscious && _vehicle == player && _type == "zombie") then {
|
||||
_rnd = (round(random 4)) + 1;
|
||||
_move = "ZombieFeed" + str(_rnd);
|
||||
_zattacktype = 0;
|
||||
} else {
|
||||
_zattacktype = 1;
|
||||
_rnd = (round(random 9)) + 1;
|
||||
_move = "ZombieStandingAttack" + str(_rnd);
|
||||
if (_type == "zombie") then {
|
||||
_rnd = (round(random 9)) + 1;
|
||||
_move = "ZombieStandingAttack" + str(_rnd);
|
||||
} else {
|
||||
_move = "Dog_Attack";
|
||||
};
|
||||
};
|
||||
|
||||
_dir = [_unit,player] call BIS_Fnc_dirTo;
|
||||
_unit setDir _dir;
|
||||
|
||||
// _unit playMove _move;
|
||||
|
||||
if (local _unit) then {
|
||||
_unit setDir _dir;
|
||||
_unit switchMove _move;
|
||||
} else {
|
||||
PVDZE_zmb_switchMove = [_unit,_zattacktype,_rnd,_dir];
|
||||
(owner _unit) publicVariableClient "PVDZE_zmb_switchMove";
|
||||
[objNull, _unit, rSwitchMove, _move] call RE;
|
||||
};
|
||||
|
||||
//Wait
|
||||
|
||||
Reference in New Issue
Block a user