This commit is contained in:
[VB]AWOL
2014-06-07 18:05:19 -05:00
parent d4bfc2e4c1
commit c9c6f0309a

View File

@@ -48,7 +48,10 @@ if (["ItemSoda",_itemorignal] call fnc_inString) then {
[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
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
@@ -63,11 +66,13 @@ if (_hasoutput && !_invehicle) then {
_item = _nearByPile select 0;
};
_item addMagazineCargoGlobal [_itemtodrop,1];
};
};
if (_hasoutput && _invehicle) then {
if (_invehicle) then {
sleep 2;
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
};
};
//add infection chance for "ItemWaterbottle",