Remove unnecessary prints to console

This commit is contained in:
LostTrackpad 2024-07-16 19:38:58 +07:00
parent bd0201f70b
commit 31d332bfb3

View file

@ -1347,10 +1347,7 @@ end)
local function JumpAnim(event, ply) local function JumpAnim(event, ply)
if !animsetchange then animsetchange = false end if !animsetchange then animsetchange = false end
print("-------------")
print("JumpAnim called -- " .. engine.TickCount())
if animsetchange != UseOldAnims:GetBool() then if animsetchange != UseOldAnims:GetBool() then
print("---- BodyAnim removed -- " .. engine.TickCount())
RemoveBodyAnim() RemoveBodyAnim()
end end
if animsetchange != UseOldAnims:GetBool() then if animsetchange != UseOldAnims:GetBool() then
@ -1360,7 +1357,6 @@ local function JumpAnim(event, ply)
animtable.animmodelstring = "climbanim" animtable.animmodelstring = "climbanim"
end end
StartBodyAnim(animtable) StartBodyAnim(animtable)
print("---- BodyAnim recreated -- " .. engine.TickCount())
if not IsValid(BodyAnim) then return end if not IsValid(BodyAnim) then return end
@ -1381,7 +1377,6 @@ local function JumpAnim(event, ply)
hook.Add("PostDrawOpaqueRenderables", "JumpArmDraw", JumpArmDraw) hook.Add("PostDrawOpaqueRenderables", "JumpArmDraw", JumpArmDraw)
end end
if events[event] then if events[event] then
print("-- JumpAnim in event -- " .. engine.TickCount())
local wasjumpanim = fbanims[BodyAnimString] and IsValid(BodyAnim) local wasjumpanim = fbanims[BodyAnimString] and IsValid(BodyAnim)
if changedanimset then if changedanimset then
@ -1389,7 +1384,6 @@ local function JumpAnim(event, ply)
end end
if not wasjumpanim then if not wasjumpanim then
print("---- BodyAnim removed -- " .. engine.TickCount())
RemoveBodyAnim() RemoveBodyAnim()
end end
@ -1424,7 +1418,6 @@ local function JumpAnim(event, ply)
animtable.animmodelstring = "climbanim" animtable.animmodelstring = "climbanim"
end end
StartBodyAnim(animtable) StartBodyAnim(animtable)
print("---- BodyAnim recreated -- " .. engine.TickCount())
if not IsValid(BodyAnim) then return end if not IsValid(BodyAnim) then return end