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; [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);
@@ -65,11 +68,13 @@ if (_hasoutput && !_invehicle) then {
_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",
if ((random 15 < 1) && (_itemorignal == "ItemWaterbottle")) then { if ((random 15 < 1) && (_itemorignal == "ItemWaterbottle")) then {
r_player_infected = true; r_player_infected = true;