HaodongMo / ARC-9

The nineth weapon base for Gmod by Arctic
90 stars 51 forks source link

Owner's CanZoom doesn't get reset when weapon is dropped or removed #225

Open grande1900 opened 9 months ago

grande1900 commented 9 months ago

addons/arc-9/lua/weapons/arc9_base/sh_init.lua:247:

function SWEP:OnDrop()
    self:EndLoop()
    self:KillShield()
    self:InvalidateCache()
    self:SetReady(false)
end

function SWEP:OnRemove()
    self:EndLoop()
    if SERVER then
        self:KillShield()
    end
end

and additionally OnRemove and OnDrop can't use GetOwner image