Remove points from refilling turrets.
Fixes an infinite points exploit.
This commit is contained in:
parent
afc59337c2
commit
7c67ef1fdc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue