From 33cf7611ed0183b64f50722c09c6080685bd899b Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Wed, 21 Sep 2016 16:53:29 -0400 Subject: [PATCH] Don't allow jerry fill from destroyed fuel source Vanilla commit: https://github.com/DayZMod/DayZ/commit/90251abab3fd272527fc10d5ed673ce5c230e19f https://github.com/DayZMod/DayZ/commit/9204c15d3f3874014842deafc4d825cc11b64252 --- SQF/dayz_code/compile/fn_selfActions.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index 0fad33f9a..d4719d258 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -311,7 +311,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur }; //Allow player to fill Fuel can - if (_hasEmptyFuelCan && {_isFuel} && {!a_player_jerryfilling}) then { + if (_hasEmptyFuelCan && {_isFuel} && {!a_player_jerryfilling} && {_isAlive}) then { if (s_player_fillfuel < 0) then { s_player_fillfuel = player addAction [localize "str_actions_self_10", "\z\addons\dayz_code\actions\jerry_fill.sqf",_cursorTarget, 1, false, true]; };