mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-05-15 15:13:22 +03:00
fixed #1311
This commit is contained in:
@@ -48,7 +48,10 @@ if (["ItemSoda",_itemorignal] call fnc_inString) then {
|
|||||||
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_hasoutput && !_invehicle) 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);
|
||||||
|
|
||||||
@@ -63,11 +66,13 @@ if (_hasoutput && !_invehicle) then {
|
|||||||
_item = _nearByPile select 0;
|
_item = _nearByPile select 0;
|
||||||
};
|
};
|
||||||
_item addMagazineCargoGlobal [_itemtodrop,1];
|
_item addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_hasoutput && _invehicle) then {
|
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