Initialization and some other stuff done

This commit is contained in:
Pao
2023-02-26 19:22:35 +01:00
parent 65697cff04
commit 56f43a658d
10 changed files with 218 additions and 205 deletions

View File

@@ -0,0 +1,25 @@
-- Thanks to Glytcher and Matías N. Salas for helping out with this
if JCIOAnims == nil then
JCIOAnims = {}
end
JCIOAnims.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
JCIOAnims.CheckAndSetMissingFootAnims = function(modData)
if modData.JCIO.limbs["Left_Foot"].isCut or modData.JCIO.limbs["Right_Foot"].isCut then
JCIOAnims.SetMissingFootAnimation(true)
end
end