aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/combat/sv_weaponswing.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-08-24 18:08:10 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-08-24 18:08:10 -0400
commit61bc16dae5a1b61bcd237d9f0be36125829d95b1 (patch)
treec9deebda1190e23073240d2bbe4ecabee668d742 /gamemode/core/combat/sv_weaponswing.lua
parent0f3211e4fb0cf27684079e6195995947c9f9027f (diff)
downloadartery-61bc16dae5a1b61bcd237d9f0be36125829d95b1.tar.gz
artery-61bc16dae5a1b61bcd237d9f0be36125829d95b1.tar.bz2
artery-61bc16dae5a1b61bcd237d9f0be36125829d95b1.zip
Various update
Diffstat (limited to 'gamemode/core/combat/sv_weaponswing.lua')
-rw-r--r--gamemode/core/combat/sv_weaponswing.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/gamemode/core/combat/sv_weaponswing.lua b/gamemode/core/combat/sv_weaponswing.lua
index 29afd7a..f754000 100644
--- a/gamemode/core/combat/sv_weaponswing.lua
+++ b/gamemode/core/combat/sv_weaponswing.lua
@@ -86,6 +86,11 @@ function ws.doSwing(weapon,ply,callback)
for k,v in pairs(hitthings) do
callback(v)
end
+ if #hitthings == 0 then
+ if weapon.onMiss then
+ weapon:onMiss(ply)
+ end
+ end
end)
end