diff --git a/SQF/dayz_code/actions/cargocheck.sqf b/SQF/dayz_code/actions/cargocheck.sqf index 6a0fa4d78..f9d47ff54 100644 --- a/SQF/dayz_code/actions/cargocheck.sqf +++ b/SQF/dayz_code/actions/cargocheck.sqf @@ -30,4 +30,4 @@ _weaponsCount = (_weaponsCount_raw select 1) call vehicle_gear_count; // Count and show weapons available space _backpackCount = (_backpackCount_raw select 1) call vehicle_gear_count; -TitleText [format[(localize "str_epoch_player_1"),_magazineCount,_maxMagazines,_weaponsCount,_maxWeapons,_backpackCount,_maxBackpacks], "PLAIN DOWN"]; \ No newline at end of file +cutText [format[(localize "str_epoch_player_1"),_magazineCount,_maxMagazines,_weaponsCount,_maxWeapons,_backpackCount,_maxBackpacks], "PLAIN DOWN"]; diff --git a/SQF/dayz_code/actions/player_drink.sqf b/SQF/dayz_code/actions/player_drink.sqf index 4494a8689..ae4783c7d 100644 --- a/SQF/dayz_code/actions/player_drink.sqf +++ b/SQF/dayz_code/actions/player_drink.sqf @@ -48,10 +48,15 @@ if (["ItemSoda",_itemorignal] call fnc_inString) then { [player,_dis,true,(getPosATL player)] spawn player_alertZombies; }; -if (_hasoutput and !_invehicle) then { +if (_hasoutput) then { // Selecting output _itemtodrop = drink_output select (drink_with_output find _itemorignal); + if (_invehicle) exitWith { + sleep 2; + (vehicle player) addMagazineCargoGlobal [_itemtodrop,1]; + }; + sleep 3; _nearByPile= nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2]; if (count _nearByPile ==0) then { @@ -84,4 +89,4 @@ dayz_thirst = 0; _display = uiNamespace getVariable 'DAYZ_GUI_display'; (_display displayCtrl 1302) ctrlShow true; -cutText [format[(localize "str_player_consumed"),_text], "PLAIN DOWN"]; \ No newline at end of file +cutText [format[(localize "str_player_consumed"),_text], "PLAIN DOWN"]; diff --git a/SQF/dayz_code/actions/player_eat.sqf b/SQF/dayz_code/actions/player_eat.sqf index 93ad2242f..8d08e6176 100644 --- a/SQF/dayz_code/actions/player_eat.sqf +++ b/SQF/dayz_code/actions/player_eat.sqf @@ -48,10 +48,15 @@ if (dayz_lastMeal < 3600) then { }; }; -if (_hasoutput and !_invehicle) then { +if (_hasoutput) then { // Selecting output _itemtodrop = food_output select (food_with_output find _itemorignal); + if (_invehicle) exitWith { + sleep 2; + (vehicle player) addMagazineCargoGlobal [_itemtodrop,1]; + }; + sleep 3; _nearByPile= nearestObjects [(getposATL player), ["WeaponHolder","WeaponHolderBase"],2]; 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 { (_display displayCtrl 1300) ctrlShow true; }; -cutText [format[(localize "str_player_consumed"),_text], "PLAIN DOWN"]; \ No newline at end of file +cutText [format[(localize "str_player_consumed"),_text], "PLAIN DOWN"];