Fix medical aura persisting when it shouldn't.

This commit is contained in:
JetBoom 2014-11-21 02:28:59 -05:00
parent f9c12c63b3
commit 6d5ed28bbf
2 changed files with 14 additions and 0 deletions

View file

@ -130,6 +130,13 @@ function SWEP:Holster()
return true
end
function SWEP:OnRemove()
if CLIENT and self.Owner == LocalPlayer() then
hook.Remove("PostPlayerDraw", "PostPlayerDrawMedical")
GAMEMODE.MedicalAura = false
end
end
function SWEP:Reload()
end

View file

@ -101,3 +101,10 @@ function SWEP:Holster()
return true
end
function SWEP:OnRemove()
if CLIENT and self.Owner == LocalPlayer() then
hook.Remove("PostPlayerDraw", "PostPlayerDrawMedical")
GAMEMODE.MedicalAura = false
end
end