Remove points from refilling turrets.

Fixes an infinite points exploit.
This commit is contained in:
JetBoom 2014-12-26 22:50:35 -05:00
parent afc59337c2
commit 7c67ef1fdc

View file

@ -183,7 +183,7 @@ function ENT:Use(activator, caller)
activator:RemoveAmmo(togive, "smg1") activator:RemoveAmmo(togive, "smg1")
activator:RestartGesture(ACT_GMOD_GESTURE_ITEM_GIVE) activator:RestartGesture(ACT_GMOD_GESTURE_ITEM_GIVE)
self:EmitSound("npc/turret_floor/click1.wav") self:EmitSound("npc/turret_floor/click1.wav")
gamemode.Call("PlayerRepairedObject", activator, self, togive * 1.5, self) --gamemode.Call("PlayerRepairedObject", activator, self, togive * 1.5, self)
end end
else else
self:SetObjectOwner(activator) self:SetObjectOwner(activator)