mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
+ Fixed females unable to select gender after death. + Fixed Alice and Assault packs inventory issues created with last patch. + Fixed being unable to take items that may have already been claimed by another player. Should work if no other players are within 6 meters. + Cooking, Crafting, Repairing, and Salvaging all now require full Medic animation cycle to complete. You can cancel the process just by moving. + Traders that deal with magazine items now require full Medic animation cycle per trade. Also, number of possible trades now based on quantity of available items being sold or cost divided by available bars. + Changed several PublicVariable calls from 1.7.6.1 code sync that should have been PublicVariableServer. + Fixed Bio-meat was not causing infection and increased chance of infection from "Bad Food" to 50/50. + Added distance checks (5m) for player zombie attacks. + Fixed player zombie was unable to feed.
24 lines
709 B
Plaintext
24 lines
709 B
Plaintext
private["_unit","_hitPoints","_selection","_killer"];
|
|
|
|
_unit = _this select 0;
|
|
_killer = _this select 1;
|
|
|
|
_hitPoints = _unit call vehicle_getHitpoints;
|
|
{
|
|
_selection = getText (configFile >> "CfgVehicles" >> (typeof _unit) >> "HitPoints" >> _x >> "name");
|
|
_unit setVariable [_selection, 1, true];
|
|
} forEach _hitPoints;
|
|
|
|
//["dayzUpdateVehicle",[_unit, "damage"]] call callRpcProcedure;
|
|
if (isServer) then {
|
|
[_unit, "killed"] call server_updateObject;
|
|
} else {
|
|
dayzUpdateVehicle = [_unit, "killed"];
|
|
publicVariableServer "dayzUpdateVehicle";
|
|
};
|
|
|
|
_unit removeAllEventHandlers "HandleDamage";
|
|
_unit removeAllEventHandlers "Killed";
|
|
_unit removeAllEventHandlers "GetIn";
|
|
_unit removeAllEventHandlers "GetOut";
|