aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/combat/cl_weaponswing.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-11-11 14:20:00 -0500
committerAlexander Pickering <alexandermpickering@gmail.com>2017-11-11 14:20:00 -0500
commit93568fcb09f3e971c50ca10da9b57eccc754cbe6 (patch)
tree63a353d1436f199e08fe17a527c55e879ec75077 /gamemode/core/combat/cl_weaponswing.lua
parent2252904b8147419c551ad2653a20627281d0531f (diff)
downloadartery-93568fcb09f3e971c50ca10da9b57eccc754cbe6.tar.gz
artery-93568fcb09f3e971c50ca10da9b57eccc754cbe6.tar.bz2
artery-93568fcb09f3e971c50ca10da9b57eccc754cbe6.zip
Removed most of the debug print statements in the core
Also did some other stuff I guess
Diffstat (limited to 'gamemode/core/combat/cl_weaponswing.lua')
-rw-r--r--gamemode/core/combat/cl_weaponswing.lua7
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)