From e6c9733f1edaf2220377c8e7ec2d6237373cf5cd Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Tue, 10 Dec 2013 18:56:08 -0600 Subject: [PATCH] disallow changing clothes with full chainsaw --- SQF/dayz_code/actions/player_wearClothes.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_wearClothes.sqf b/SQF/dayz_code/actions/player_wearClothes.sqf index df2871732..87b1e426e 100644 --- a/SQF/dayz_code/actions/player_wearClothes.sqf +++ b/SQF/dayz_code/actions/player_wearClothes.sqf @@ -21,7 +21,9 @@ if (!_hasclothesitem) exitWith { DZE_ActionInProgress = false; cutText [format[( if (vehicle player != player) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_85"), "PLAIN DOWN"]}; -if (!isNull (unitBackpack player)) exitWith { DZE_ActionInProgress = false; cutText ["\n\nUnable to change clothes while still hearing backpack.", "PLAIN DOWN"] }; +if (!isNull (unitBackpack player)) exitWith { DZE_ActionInProgress = false; cutText ["\n\nUnable to change clothes while wearing backpack.", "PLAIN DOWN"] }; + +if ("CSGAS" in (magazines player)) exitWith { DZE_ActionInProgress = false; cutText ["\n\nUnable to change clothes while carrying a filled chainsaw.", "PLAIN DOWN"] }; _myModel = (typeOf player); _itemNew = "Skin_" + _myModel;