Advertisement
TylerB

for sturm

Jun 21st, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1.     local do_shit = {
  2.     "class_name_here",
  3.     "class_name_here",
  4.     "class_name_here",
  5.     "class_name_here",
  6.     "class_name_here",
  7.     "class_name_here",
  8.     "class_name_here",
  9. }
  10.  
  11. function weapons.OnLoaded( )
  12.     for _, swep in pairs(weapons.GetList()) do
  13.         if not table.HasValue(do_shit, swep.ClassName) then continue end
  14.        
  15.         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
  16.             print("Fixed " .. swep.ClassName .. " primary defaultClip (From " .. swep.Primary.DefaultClip .. " to " .. swep.Primary.ClipSize)
  17.             swep.Primary.DefaultClip = swep.Primary.ClipSize
  18.         end
  19.        
  20.         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
  21.             print("Fixed " .. swep.ClassName .. " secondary defaultClip (From " .. swep.Secondary.DefaultClip .. " to " .. swep.Secondary.ClipSize)
  22.             swep.Secondary.DefaultClip = swep.Secondary.ClipSize
  23.         end
  24.     end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement