mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-10 18:22:52 +03:00
Update player_eat.sqf
Add empty food/drink cans into vehicle inventory. Falls out if theres no inventory space.
This commit is contained in:
@@ -48,10 +48,15 @@ if (dayz_lastMeal < 3600) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_hasoutput and !_invehicle) then {
|
if (_hasoutput) then {
|
||||||
// Selecting output
|
// Selecting output
|
||||||
_itemtodrop = food_output select (food_with_output find _itemorignal);
|
_itemtodrop = food_output select (food_with_output find _itemorignal);
|
||||||
|
|
||||||
|
if (_invehicle) exitWith {
|
||||||
|
sleep 2;
|
||||||
|
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||||
|
};
|
||||||
|
|
||||||
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 {
|
||||||
@@ -98,4 +103,4 @@ _display = uiNamespace getVariable 'DAYZ_GUI_display';
|
|||||||
if (r_player_blood / r_player_bloodTotal >= 0.2) then {
|
if (r_player_blood / r_player_bloodTotal >= 0.2) then {
|
||||||
(_display displayCtrl 1300) ctrlShow true;
|
(_display displayCtrl 1300) ctrlShow true;
|
||||||
};
|
};
|
||||||
cutText [format[(localize "str_player_consumed"),_text], "PLAIN DOWN"];
|
cutText [format[(localize "str_player_consumed"),_text], "PLAIN DOWN"];
|
||||||
|
|||||||
Reference in New Issue
Block a user