mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
+ Corrected conversion rate for silver to gold when selling bulk supply
crates.
+ Added sleep within spawn {} for fetching vehicle ID, should reduce db
spam.
+ Switched normal wire to fortrazor_wire and added as builtitems
+ Potential fix for wild spawning helicopters in forests.
+ Player zombies should now be able to break the legs of other players.
+ Purchased vehicles now spawn on the closestHeliHCivil within 200m.
35 lines
655 B
Plaintext
35 lines
655 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 1;
|
|
|
|
_isZombie = _ent isKindOf "zZombie_base";
|
|
|
|
// TODO add distance check and maybe los
|
|
|
|
if (_ent isKindOf "Animal" or _isZombie) then {
|
|
_ent setDamage 1;
|
|
} else {
|
|
["usecBreakLegs",[_unit,player]] call broadcastRpcCallAll;
|
|
};
|
|
|
|
|
|
|
|
|
|
[player,"hit",0,false] call dayz_zombieSpeak;
|
|
|
|
|
|
player switchmove "";
|
|
|
|
sleep 1;
|
|
|
|
s_player_pzombiesattack = -1; |