diff --git a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicalkit.lua b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicalkit.lua index bb11d4c..2e1be8d 100644 --- a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicalkit.lua +++ b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicalkit.lua @@ -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 diff --git a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicgun.lua b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicgun.lua index 96c1f35..e3a908a 100644 --- a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicgun.lua +++ b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicgun.lua @@ -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