From 72f6dbc849ff03402b2b258e8ac097a14cb60283 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 16 Aug 2016 15:09:10 -0400 Subject: [PATCH] Fix can't pack tent with DZE_permanentPlot=true Thanks @nigeyuk and @oiad --- SQF/dayz_code/compile/player_packTent.sqf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SQF/dayz_code/compile/player_packTent.sqf b/SQF/dayz_code/compile/player_packTent.sqf index 755bced51..541ff48e4 100644 --- a/SQF/dayz_code/compile/player_packTent.sqf +++ b/SQF/dayz_code/compile/player_packTent.sqf @@ -10,20 +10,19 @@ _objectUID = _obj getVariable["ObjectUID","0"]; if (DZE_permanentPlot) then { _ownerID = _obj getVariable["ownerPUID","0"]; }; -_pickup = false; + _packobj = getText (configFile >> "CfgVehicles" >> typeOf _obj >> "pack"); _activatingPlayer = player; -player playActionNow "Medic"; player removeAction s_player_packtent; s_player_packtent = -1; player removeAction s_player_packtentinfected; s_player_packtentinfected = -1; _campItems = ["IC_DomeTent","IC_Tent"]; -if (_ownerID == dayz_characterID or (typeOf _obj in _campItems)) then { _pickup = true; }; -if (_pickup) then { +if (_ownerID in [dayz_characterID,dayz_playerUID] or typeOf _obj in _campItems) then { + player playActionNow "Medic"; _alreadyPacking = _obj getVariable["packing",0]; if (_alreadyPacking == 1) exitWith {localize "str_player_beingpacked" call dayz_rollingMessages; DZE_ActionInProgress = false;};