Implemented Tourniquet functionality for amputations

This commit is contained in:
ZioPao
2024-04-30 17:09:18 +02:00
parent c4529d0890
commit bd8e4d6c86
5 changed files with 43 additions and 45 deletions

View File

@@ -282,47 +282,6 @@ function LocalPlayerController.ToggleUpdateAmputations()
CommonMethods.SafeStartEvent("EveryHours", LocalPlayerController.UpdateAmputations)
end
--* Tourniquet handling
function LocalPlayerController.HandleTourniquet()
-- TODO Add it!!!
-- TODO Triggered at startup or when Clothing Updates.
-- local playerObj = getPlayer()
-- for bl, ampGroup in pairs(StaticData.TOURNIQUET_BODYLOCS_TO_GROUPS_IND_STR) do
-- local item = playerObj:getWornItem(bl)
-- if item then
-- -- TODO Set to DataControlle
-- local cicTime = DataController.GetInstance():setTourniquet
-- end
-- end
-- for i=1, #tourniquetBodyLocations do
-- local bl = tourniquetBodyLocations[i]
-- if item and item:getFullType():contains("Surg_Arm_Tourniquet_")
-- end
-- local item = playerObj:getWornItem(bodyLocation)
-- local wornItems = playerObj:getWornItems()
-- for j=1,wornItems:size() do
-- local wornItem = wornItems:get(j-1)
-- end
end
Events.OnPuttingTourniquet.Add(LocalPlayerController.HandleTourniquet)
--* Object drop handling when amputation occurs