reworking

This commit is contained in:
ZioPao
2023-11-06 04:16:43 +01:00
parent d79dfcc509
commit 875e0fdceb
207 changed files with 113 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
-- Thanks to Glytcher and Matías N. Salas for helping out with this
if TOC_Anims == nil then
TOC_Anims = {}
end
TOC_Anims.SetMissingFootAnimation = function(check)
local player = getPlayer()
player:setVariable("IsCrawling", tostring(check))
if not isServer() and not isClient() then
print("SP, so it's fine")
else
sendClientCommand(player, "TOC", "NotifyNewCrawlAnimation", {id = player:getOnlineID(), check = check})
end
end
TOC_Anims.CheckAndSetMissingFootAnims = function(modData)
if modData.TOC.limbs["Left_Foot"].isCut or modData.TOC.limbs["Right_Foot"].isCut then
TOC_Anims.SetMissingFootAnimation(true)
end
end