diff --git a/media/lua/client/TOC/Controllers/LimitActionsController.lua b/media/lua/client/TOC/Controllers/LimitActionsController.lua index 70c7f8a..48a042e 100644 --- a/media/lua/client/TOC/Controllers/LimitActionsController.lua +++ b/media/lua/client/TOC/Controllers/LimitActionsController.lua @@ -268,7 +268,7 @@ end local function CheckLimbFeasibility(limbName) local dcInst = DataController.GetInstance() local isFeasible = not dcInst:getIsCut(limbName) or dcInst:getIsProstEquipped(limbName) - TOC_DEBUG.print("isFeasible="..tostring(isFeasible)) + --TOC_DEBUG.print("isFeasible="..tostring(isFeasible)) return isFeasible end diff --git a/media/lua/client/TOC/Controllers/TourniquetController.lua b/media/lua/client/TOC/Controllers/TourniquetController.lua index e91ed89..f66cc9c 100644 --- a/media/lua/client/TOC/Controllers/TourniquetController.lua +++ b/media/lua/client/TOC/Controllers/TourniquetController.lua @@ -71,11 +71,13 @@ function TourniquetController.WrapClothingAction(obj, wrappedFunc) group:setMultiItem(TourniquetController.bodyLoc, false) end - wrappedFunc(obj) + local ogValue = wrappedFunc(obj) if isTourniquet then group:setMultiItem(TourniquetController.bodyLoc, true) end + + return ogValue -- Needed for isValid end @@ -98,12 +100,12 @@ end local og_ISWearClothing_isValid = ISWearClothing.isValid function ISWearClothing:isValid() - TourniquetController.WrapClothingAction(self, og_ISWearClothing_isValid) + return TourniquetController.WrapClothingAction(self, og_ISWearClothing_isValid) end local og_ISUnequipAction_perform = ISUnequipAction.perform function ISUnequipAction:perform() - TourniquetController.WrapClothingAction(self, og_ISUnequipAction_perform) + return TourniquetController.WrapClothingAction(self, og_ISUnequipAction_perform) end