Fix dropped weapons + ammo counting towards logic_pickups.
This commit is contained in:
parent
64bd994e0f
commit
e9cf988143
2 changed files with 6 additions and 2 deletions
|
@ -62,7 +62,9 @@ function ENT:Use(activator, caller)
|
|||
|
||||
activator:GiveAmmo(self:GetAmmo(), self:GetAmmoType())
|
||||
|
||||
activator.AmmoPickups = (activator.AmmoPickups or 0) + 1
|
||||
if self.PlacedInMap then
|
||||
activator.AmmoPickups = (activator.AmmoPickups or 0) + 1
|
||||
end
|
||||
|
||||
self:RemoveNextFrame(0)
|
||||
else
|
||||
|
|
|
@ -89,7 +89,9 @@ function ENT:Use(activator, caller)
|
|||
wep:SetClip2(self:GetClip2())
|
||||
end
|
||||
|
||||
activator.WeaponPickups = (activator.WeaponPickups or 0) + 1
|
||||
if self.PlacedInMap then
|
||||
activator.WeaponPickups = (activator.WeaponPickups or 0) + 1
|
||||
end
|
||||
|
||||
self:RemoveNextFrame()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue