working no foot animations in mp

This commit is contained in:
Pao
2023-02-09 22:13:51 +01:00
parent 21af15ed0e
commit 65ca3d285e
3 changed files with 11 additions and 25 deletions

View File

@@ -129,16 +129,10 @@ end
-- Used to propagate animation changes after amputating a foot
ServerCommands["SetCrawlAnimation"] = function(args)
local source = getPlayer()
local player = getPlayerByOnlineID(args.id)
local check = args.check
if source ~= player then
if args.hasInjury then
player:setVariable('SetCrawlAnimation', 'true');
else
player:setVariable('SetCrawlAnimation', 'false');
end
end
player:setVariable('IsCrawling', tostring(check))
end