From 61bc16dae5a1b61bcd237d9f0be36125829d95b1 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Thu, 24 Aug 2017 18:08:10 -0400 Subject: Various update --- gamemode/core/combat/sv_weaponswing.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gamemode/core/combat/sv_weaponswing.lua') 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 -- cgit v1.2.3-70-g09d2