mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +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.
25 lines
916 B
Plaintext
25 lines
916 B
Plaintext
private["_ammoType","_vehicle","_ammo","_weapon","_turret","_text","_array"];
|
|
_array = _this select 3;
|
|
_vehicle = _array select 0;
|
|
_weapon = _array select 1;
|
|
_turret = _array select 2;
|
|
_ammo = "";
|
|
_text = [];
|
|
|
|
call r_player_removeActions2;
|
|
_magazines = getArray (configFile >> "cfgWeapons" >> _weapon >> "magazines");
|
|
{
|
|
_ammoType = getText (configFile >> "cfgMagazines" >> _x >> "displayName");
|
|
if (_ammoType == "") then {_ammoType = _x;};
|
|
if (!(_ammoType in _text)) then {_text set [count _text,_ammoType];};
|
|
if (_x in magazines player) exitWith {_ammo = _x;};
|
|
} forEach _magazines;
|
|
if (_ammo != "") then {
|
|
_vehicle removeMagazineTurret [_ammo,_turret];
|
|
_vehicle addMagazineTurret [_ammo,_turret];
|
|
player removeMagazine _ammo;
|
|
|
|
cutText [format["You have successfully loaded %1 ammunition.",_ammoType], "PLAIN DOWN"];
|
|
} else {
|
|
cutText [format["You need %1 type of ammo to do this.",_text], "PLAIN DOWN"];
|
|
}; |