Fix dropped weapons + ammo counting towards logic_pickups.

This commit is contained in:
JetBoom 2014-11-26 09:27:17 -05:00
parent 64bd994e0f
commit e9cf988143
2 changed files with 6 additions and 2 deletions

View file

@ -62,7 +62,9 @@ function ENT:Use(activator, caller)
activator:GiveAmmo(self:GetAmmo(), self:GetAmmoType())
if self.PlacedInMap then
activator.AmmoPickups = (activator.AmmoPickups or 0) + 1
end
self:RemoveNextFrame(0)
else

View file

@ -89,7 +89,9 @@ function ENT:Use(activator, caller)
wep:SetClip2(self:GetClip2())
end
if self.PlacedInMap then
activator.WeaponPickups = (activator.WeaponPickups or 0) + 1
end
self:RemoveNextFrame()
end