diff options
Diffstat (limited to 'gamemode/core/combat/cl_weaponswing.lua')
| -rw-r--r-- | gamemode/core/combat/cl_weaponswing.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gamemode/core/combat/cl_weaponswing.lua b/gamemode/core/combat/cl_weaponswing.lua index 7f2c927..61c31b0 100644 --- a/gamemode/core/combat/cl_weaponswing.lua +++ b/gamemode/core/combat/cl_weaponswing.lua @@ -6,7 +6,6 @@ function finddmgpoint(name) local filetext = file.Read(filepath,"DATA") local outfit = CompileString(string.format("return {%s}",filetext),name)() ball = LocalPlayer():FindPACPart(outfit, "wep_point") - print("point is",ball,type(ball)) end function finddmgbox(who,name) local filepath = string.format(CLIENT_PAC_DIR .. "/%s.txt",name) @@ -61,7 +60,6 @@ net.Receive("artery_doanimation",function() --pac.SetupENT(who) finddmgbox(who,pacname) animent = who - print("Doing animation:",animname,animtime,echoname) who:SetupBones() who:SetLuaAnimation(animname) stt.invopen = true @@ -71,7 +69,6 @@ net.Receive("artery_doanimation",function() timer.Simple(animtime,function() tracking = false stt.invopen = false - print("Stopping animation",animname) who:StopLuaAnimation(animname) net.Start("artery_notifyserverofswing") net.WriteString(wepname) @@ -99,10 +96,8 @@ local lastpos hook.Add("Tick","trace_weppos",function() if not IsValid(ball) or not IsValid(ball.Entity) then return end if lastpos == nil then lastpos = ball.Entity:GetPos() end - --print("Distance between ", ball.Entity:GetPos(), "and", lastpos, " is" ,ball.Entity:GetPos():Distance(lastpos)) - if --[[ball.Entity:GetPos():Distance(lastpos) > 0.5 and]] tracking then + if tracking then swingtbl[#swingtbl + 1] = ball.Entity:GetPos() - animent:GetPos() - --print(ball.Entity:GetPos() - animent:GetPos()) lastpos = ball.Entity:GetPos() end end) |
