Fix medical aura persisting when it shouldn't.
This commit is contained in:
parent
f9c12c63b3
commit
6d5ed28bbf
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue