From 919404b3a915689a45353386613354082a14cee6 Mon Sep 17 00:00:00 2001 From: SilvDev Date: Sat, 15 Feb 2014 18:03:43 +0000 Subject: [PATCH 1/2] Update player_unlockVault.sqf Fixed infinite chainsaw fuel when put into vaults/lockboxes. --- SQF/dayz_code/compile/player_unlockVault.sqf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/compile/player_unlockVault.sqf b/SQF/dayz_code/compile/player_unlockVault.sqf index f32ee770f..25004956f 100644 --- a/SQF/dayz_code/compile/player_unlockVault.sqf +++ b/SQF/dayz_code/compile/player_unlockVault.sqf @@ -120,8 +120,12 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then { _objWpnQty = _backpacks select 1; _countr = 0; { - _holder addbackpackcargoGlobal [_x,(_objWpnQty select _countr)]; - _countr = _countr + 1; + + if( _x != "CSGAS" ) then + { + _holder addbackpackcargoGlobal [_x,(_objWpnQty select _countr)]; + _countr = _countr + 1; + }; } forEach _objWpnTypes; }; @@ -141,4 +145,4 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then { cutText [format[(localize "str_epoch_player_126"),_text], "PLAIN DOWN"]; }; s_player_unlockvault = -1; -DZE_ActionInProgress = false; \ No newline at end of file +DZE_ActionInProgress = false; From 3301f7bb3136233d24db939ea68c12964b5c7a73 Mon Sep 17 00:00:00 2001 From: SilvDev Date: Sat, 15 Feb 2014 18:23:00 +0000 Subject: [PATCH 2/2] Update player_unlockVault.sqf --- SQF/dayz_code/compile/player_unlockVault.sqf | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/SQF/dayz_code/compile/player_unlockVault.sqf b/SQF/dayz_code/compile/player_unlockVault.sqf index 25004956f..a41c23135 100644 --- a/SQF/dayz_code/compile/player_unlockVault.sqf +++ b/SQF/dayz_code/compile/player_unlockVault.sqf @@ -109,8 +109,11 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then { _objWpnQty = _magazines select 1; _countr = 0; { - _holder addmagazinecargoGlobal [_x,(_objWpnQty select _countr)]; - _countr = _countr + 1; + if( _x != "CSGAS" ) then + { + _holder addmagazinecargoGlobal [_x,(_objWpnQty select _countr)]; + _countr = _countr + 1; + }; } forEach _objWpnTypes; }; @@ -120,12 +123,8 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then { _objWpnQty = _backpacks select 1; _countr = 0; { - - if( _x != "CSGAS" ) then - { - _holder addbackpackcargoGlobal [_x,(_objWpnQty select _countr)]; - _countr = _countr + 1; - }; + _holder addbackpackcargoGlobal [_x,(_objWpnQty select _countr)]; + _countr = _countr + 1; } forEach _objWpnTypes; };