how can i have infinite ammo in sweps ?
By setting the default clip and clipsize into -1?
self:TakePrimaryAmmo(0) ?
snip
[lua]function SWEP:PrimaryAttack()
code
self.TakePrimaryAmmo(0)
code
end[/lua]
Tadah, problem solved, an even easier one for a swep pack of some kind would be
[lua]SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1[/lua]
That goes in the root SWEP table in your shared.lua file, at the top of the SWEP.
Who makes an swep with unlimited ammo wf!?
Maybe he wants a SWEP that shoots confetti. It’d be dumb to have to collect confetti as ammo unlimited confetti wooooo!
confetti!
Yeah, real fun playing with someone that over powered:colbert: