mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-19 18:06:32 +03:00
+ Increased raise horde range to 100m. + Fixed player zombie ability to attack and cause bleeding and infect. + Server side change to prevent some common duping issues. + Fixed parachute dropping vehicles without helipad as marker.
33 lines
719 B
Plaintext
33 lines
719 B
Plaintext
private ["_item","_ent","_cnt","_index","_wound","_damage","_rnd","_move"];
|
|
_item = _this select 3;
|
|
_ent = _item;
|
|
|
|
// remove menu
|
|
player removeAction s_player_pzombiesattack;
|
|
s_player_pzombiesattack = 1;
|
|
|
|
_rnd = round(random 9) + 1;
|
|
_move = "ZombieStandingAttack" + str(_rnd);
|
|
player playMoveNow _move;
|
|
|
|
sleep 0.25;
|
|
|
|
_isZombie = _ent isKindOf "zZombie_base";
|
|
|
|
// TODO add distance check and maybe los
|
|
|
|
if (_ent isKindOf "Animal" or _isZombie) then {
|
|
_ent setDamage 1;
|
|
} else {
|
|
//["usecBreakLegs",[_item,player]] call broadcastRpcCallAll;
|
|
usecBreakLegs = [_item,player];
|
|
publicVariable "usecBreakLegs";
|
|
};
|
|
|
|
[player,"hit",0,false] call dayz_zombieSpeak;
|
|
|
|
player switchmove "";
|
|
|
|
sleep 1;
|
|
|
|
s_player_pzombiesattack = -1; |