mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +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.
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
private ["_objects"];
|
|
_objects = nearestObjects [getPosATL player, ["Car", "Helicopter", "Motorcycle", "Ship", "TentStorage","VaultStorage"], 10];
|
|
{
|
|
//["dayzUpdateVehicle",[_x,"gear"]] call callRpcProcedure;
|
|
dayzUpdateVehicle = [_x,"gear"];
|
|
publicVariableServer "dayzUpdateVehicle";
|
|
|
|
} foreach _objects;
|
|
|
|
private["_dialog","_magazineArray","_control","_item","_val","_max"];
|
|
|
|
disableSerialization;
|
|
_dialog = _this select 0;
|
|
_magazineArray = [];
|
|
|
|
//Primary Mags
|
|
for "_i" from 109 to 120 do
|
|
{
|
|
_control = _dialog displayCtrl _i;
|
|
_item = gearSlotData _control;
|
|
_val = gearSlotAmmoCount _control;
|
|
_max = getNumber (configFile >> "CfgMagazines" >> _item >> "count");
|
|
if (_item != "") then {
|
|
if (_item == "BoltSteel") then { _item = "WoodenArrow" };
|
|
if (_val != _max) then {
|
|
_magazineArray set [count _magazineArray,[_item,_val]];
|
|
} else {
|
|
_magazineArray set [count _magazineArray,_item];
|
|
};
|
|
};
|
|
};
|
|
|
|
//Secondary Mags
|
|
for "_i" from 122 to 129 do
|
|
{
|
|
_control = _dialog displayCtrl _i;
|
|
_item = gearSlotData _control;
|
|
_val = gearSlotAmmoCount _control;
|
|
_max = getNumber (configFile >> "CfgMagazines" >> _item >> "count");
|
|
if (_item != "") then {
|
|
if (_val != _max) then {
|
|
_magazineArray set [count _magazineArray,[_item,_val]];
|
|
} else {
|
|
_magazineArray set [count _magazineArray,_item];
|
|
};
|
|
};
|
|
};
|
|
dayz_unsaved = true;
|
|
dayz_Magazines = _magazineArray;
|