From dfae5b6aa3a75eeeea701653f2fb3c21d6f28354 Mon Sep 17 00:00:00 2001 From: Pao Date: Fri, 3 Feb 2023 14:47:56 +0100 Subject: [PATCH] Added a check to let the player know that they're fucking up --- media/lua/client/TOC_OverridenFunctions.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/media/lua/client/TOC_OverridenFunctions.lua b/media/lua/client/TOC_OverridenFunctions.lua index 8dd7148..858d9fd 100644 --- a/media/lua/client/TOC_OverridenFunctions.lua +++ b/media/lua/client/TOC_OverridenFunctions.lua @@ -154,6 +154,20 @@ function ISEquipWeaponAction:perform() end + -- Check if it's a prosthesis and let the player know that they're fucking things up + if self.item then + local item_name = self.item:getFullType() + + for _, prost_v in ipairs(GetProsthesisList()) do + local prosthesis_name = string.match(item_name, prost_v) + if prosthesis_name then + self.character:Say("This isn't the right way to equip this...") + end + end + + end + + end