From 2373dbf7f5128e1a204b03885dafdd7fbc4e3330 Mon Sep 17 00:00:00 2001 From: Pao Date: Mon, 9 Jan 2023 22:11:18 +0100 Subject: [PATCH] Trying stuff with bandages --- media/lua/client/TOC_GlobalFunctions.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/media/lua/client/TOC_GlobalFunctions.lua b/media/lua/client/TOC_GlobalFunctions.lua index 6b1c571..3fe6dc0 100644 --- a/media/lua/client/TOC_GlobalFunctions.lua +++ b/media/lua/client/TOC_GlobalFunctions.lua @@ -29,6 +29,11 @@ function CutArm(partName, surgeonFact, useBandage, bandageAlcool, usePainkiller, --TODO this is broken -- Bandage + + + if useBandage then + bodyPart:setBandaged(true, 10) + --if useBandage and bandageAlcool then -- bodyPart:setBandaged(true, 10, true, bandage:getType()); --elseif useBandage and not bandageAlcool then @@ -212,7 +217,7 @@ function OperateArm(partName, surgeonFact, useOven) end end - FixDeepWound(partname) + FixDeepWound(partName) player:transmitModData();