Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local do_shit = {
- "class_name_here",
- "class_name_here",
- "class_name_here",
- "class_name_here",
- "class_name_here",
- "class_name_here",
- "class_name_here",
- }
- function weapons.OnLoaded( )
- for _, swep in pairs(weapons.GetList()) do
- if not table.HasValue(do_shit, swep.ClassName) then continue end
- if swep.Primary and swep.Primary.DefaultClip and swep.Primary.DefaultClip > swep.Primary.ClipSize and swep.Primary.DefaultClip > 0 and swep.Primary.ClipSize >= 0 then
- print("Fixed " .. swep.ClassName .. " primary defaultClip (From " .. swep.Primary.DefaultClip .. " to " .. swep.Primary.ClipSize)
- swep.Primary.DefaultClip = swep.Primary.ClipSize
- end
- if swep.Secondary and swep.Secondary.DefaultClip and swep.Secondary.DefaultClip > swep.Secondary.ClipSize and swep.Secondary.DefaultClip > 0 and swep.Secondary.ClipSize >= 0 then
- print("Fixed " .. swep.ClassName .. " secondary defaultClip (From " .. swep.Secondary.DefaultClip .. " to " .. swep.Secondary.ClipSize)
- swep.Secondary.DefaultClip = swep.Secondary.ClipSize
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement