mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
@@ -49,30 +49,25 @@ if (["ItemSoda",_itemorignal] call fnc_inString) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (_hasoutput) then {
|
if (_hasoutput) then {
|
||||||
_itemtodrop = drink_output select(drink_with_output find _itemorignal);
|
|
||||||
|
|
||||||
if (!_invehicle) then {
|
|
||||||
// Selecting output
|
// Selecting output
|
||||||
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
|
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
|
||||||
|
|
||||||
|
if (!_invehicle) then {
|
||||||
sleep 3;
|
sleep 3;
|
||||||
_nearByPile = nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
_nearByPile = nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
||||||
if (count _nearByPile == 0) then {
|
if (count _nearByPile == 0) then {
|
||||||
_iPos = getPosATL player;
|
_iPos = getPosATL player;
|
||||||
_radius = 0.0;
|
_radius = 0.0;
|
||||||
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
||||||
_item setposATL _iPos;
|
_item setPosATL _iPos;
|
||||||
} else {
|
} else {
|
||||||
_item = _nearByPile select 0;
|
_item = _nearByPile select 0;
|
||||||
};
|
};
|
||||||
_item addMagazineCargoGlobal [_itemtodrop,1];
|
_item addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
};
|
} else {
|
||||||
|
|
||||||
if (_invehicle) then {
|
|
||||||
sleep 2;
|
sleep 2;
|
||||||
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//add infection chance for "ItemWaterbottle",
|
//add infection chance for "ItemWaterbottle",
|
||||||
|
|||||||
Reference in New Issue
Block a user