mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
1.0.2.4 RC1
This commit is contained in:
@@ -1,33 +1,26 @@
|
||||
private ["_target","_ent","_rnd","_move","_isZombie"];
|
||||
_target = _this select 3;
|
||||
_ent = _target;
|
||||
private ["_ent","_rnd","_move","_isZombie"];
|
||||
|
||||
// remove menu
|
||||
player removeAction s_player_pzombiesattack;
|
||||
s_player_pzombiesattack = 1;
|
||||
if (!isNull cursorTarget) then {
|
||||
|
||||
_rnd = (round(random 9)) + 1;
|
||||
_move = "ZombieStandingAttack" + str(_rnd);
|
||||
player playMoveNow _move;
|
||||
_ent = cursorTarget;
|
||||
_rnd = (round(random 9)) + 1;
|
||||
_move = "ZombieStandingAttack" + str(_rnd);
|
||||
player playMoveNow _move;
|
||||
_isZombie = _ent isKindOf "zZombie_base";
|
||||
|
||||
_isZombie = _ent isKindOf "zZombie_base";
|
||||
if(player distance _ent < 5) then {
|
||||
|
||||
if(player distance _target < 5) then {
|
||||
if (_ent isKindOf "Animal" or _isZombie) then {
|
||||
_ent setDamage 1;
|
||||
} else {
|
||||
//["usecBreakLegs",[_target,player]] call broadcastRpcCallAll;
|
||||
usecBreakLegs = [_ent,player];
|
||||
publicVariable "usecBreakLegs";
|
||||
};
|
||||
|
||||
[player,"hit",0,false] call dayz_zombieSpeak;
|
||||
|
||||
if (_ent isKindOf "Animal" or _isZombie) then {
|
||||
_ent setDamage 1;
|
||||
} else {
|
||||
//["usecBreakLegs",[_target,player]] call broadcastRpcCallAll;
|
||||
usecBreakLegs = [_target,player];
|
||||
publicVariable "usecBreakLegs";
|
||||
};
|
||||
|
||||
[player,"hit",0,false] call dayz_zombieSpeak;
|
||||
|
||||
};
|
||||
|
||||
sleep 1;
|
||||
|
||||
player switchmove "";
|
||||
|
||||
s_player_pzombiesattack = -1;
|
||||
sleep 1;
|
||||
player switchmove "";
|
||||
};
|
||||
Reference in New Issue
Block a user