Let's switch back to the OG name
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
-- Thanks to Glytcher and Matías N. Salas for helping out with this
|
||||
|
||||
if JCIO_Anims == nil then
|
||||
JCIO_Anims = {}
|
||||
if TOC_Anims == nil then
|
||||
TOC_Anims = {}
|
||||
end
|
||||
|
||||
|
||||
JCIO_Anims.SetMissingFootAnimation = function(check)
|
||||
TOC_Anims.SetMissingFootAnimation = function(check)
|
||||
local player = getPlayer()
|
||||
player:setVariable("IsCrawling", tostring(check))
|
||||
|
||||
@@ -13,13 +13,13 @@ JCIO_Anims.SetMissingFootAnimation = function(check)
|
||||
print("SP, so it's fine")
|
||||
else
|
||||
|
||||
sendClientCommand(player, "JCIO", "NotifyNewCrawlAnimation", {id = player:getOnlineID(), check = check})
|
||||
sendClientCommand(player, "TOC", "NotifyNewCrawlAnimation", {id = player:getOnlineID(), check = check})
|
||||
end
|
||||
end
|
||||
|
||||
JCIO_Anims.CheckAndSetMissingFootAnims = function(modData)
|
||||
TOC_Anims.CheckAndSetMissingFootAnims = function(modData)
|
||||
|
||||
if modData.JCIO.limbs["Left_Foot"].isCut or modData.JCIO.limbs["Right_Foot"].isCut then
|
||||
JCIO_Anims.SetMissingFootAnimation(true)
|
||||
if modData.TOC.limbs["Left_Foot"].isCut or modData.TOC.limbs["Right_Foot"].isCut then
|
||||
TOC_Anims.SetMissingFootAnimation(true)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user