fix: wearing amputation in MP 42.13
This commit is contained in:
@@ -46,6 +46,17 @@ function ClientRelayCommands.ReceiveApplyFromServer()
|
||||
end
|
||||
|
||||
|
||||
--* RELOAD MODEL *--
|
||||
function ClientRelayCommands.ReceiveReloadModel(args)
|
||||
local texId = args.texId
|
||||
local itemName = args.itemName
|
||||
TOC_DEBUG.print("Resetting visuals locally for item " .. itemName .. " with texId " .. tostring(texId))
|
||||
|
||||
local clothingItem = getPlayer():getInventory():FindAndReturn(itemName)
|
||||
getPlayer():setWornItem(clothingItem:getBodyLocation(), clothingItem)
|
||||
|
||||
end
|
||||
|
||||
--* TRIGGERED BY ADMINS *--
|
||||
|
||||
function ClientRelayCommands.ReceiveExecuteInitialization()
|
||||
|
||||
@@ -184,8 +184,6 @@ function AmputationHandler:execute(damagePlayer)
|
||||
sendClientCommand(CommandsData.modules.TOC_ITEMS, "SpawnAmputationItem",
|
||||
{playerNum = self.patientPl:getOnlineID(), limbName = self.limbName})
|
||||
|
||||
--ItemsController.Player.DeleteOldAmputationItem(self.patientPl, self.limbName)
|
||||
--ItemsController.Player.SpawnAmputationItem(self.patientPl, self.limbName)
|
||||
|
||||
-- Add it to the list of cut limbs on this local client
|
||||
local username = self.patientPl:getUsername()
|
||||
|
||||
Reference in New Issue
Block a user