Whenever a weapon is spawned it starts with ammo, does anyone know the function or anything were we can remove the ammo you start with? its for a friends server and we are trying to figgure it out as we want players to find/buy ammo rather than starting with some.
Go to the weapon's shared lua and find:
[code] SWEP.Primary.DefaultClip = 64[/code]
Change it to:
[code]SWEP.Primary.DefaultClip = 0[/code]
If for some reason that line of code doesn't exist, go ahead and create it.
[QUOTE=WeeabooSlayer;52044606]Go to the weapon's shared lua and find:
[code] SWEP.Primary.DefaultClip = 64[/code]
Change it to:
[code]SWEP.Primary.DefaultClip = 0[/code]
If for some reason that line of code doesn't exist, go ahead and create it.[/QUOTE]
I'm pretty sure the base will still add a few extra magazines' worth of reserve ammo if you don't edit the SWEP.ExtraMags value in each weapon script. I haven't tested it, though, so I'd edit the relevant function instead, SWEP:Equip, which is at around line 925 in the base's shared.lua.
its working. but not for all, i need go ahead and change all values in weapon section.
but anyway thanks.
Sorry, you need to Log In to post a reply to this thread.