Python1320

Python1320

Dec 23rd, 2010
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 1.84 KB | None | 0 0
  1. if  SERVER then
  2.     AddCSLuaFile"native_weapons.lua"
  3. end
  4.  
  5.  
  6. local function DOHAX(SWEP,name)
  7.     function SWEP:OwnerChanged()
  8.         self:Remove()
  9.         self.Owner:Give(name)
  10.         self.Owner:SelectWeapon( name )
  11.     end
  12.     SWEP.Equip=SWEP.OwnerChanged
  13.     weapons.Register(SWEP,"dummy_"..name,true)
  14.     SWEP.SpawnMenuIcon = "VGUI/entities/"..name
  15.  
  16. end
  17.  
  18. local base={
  19. Spawnable           = true,
  20. AdminSpawnable      = true,
  21. Author          = "Valve",
  22. Contact     = "",
  23. Purpose     = "",
  24. Instructions    = "",
  25. Category        =   "Half-Life 2",
  26. PrintName           = "WEPOON",
  27. Base            =   "weapon_base"
  28. }
  29.  
  30. local SWEP=table.Copy(base) SWEP.PrintName          = "Crossbow"   
  31. DOHAX(SWEP,"weapon_crossbow",true)
  32.  
  33. local SWEP=table.Copy(base) SWEP.PrintName          = "357"
  34. DOHAX(SWEP,"weapon_357",true)
  35.  
  36.  
  37. local SWEP=table.Copy(base) SWEP.PrintName          = "AR2"
  38. DOHAX(SWEP,"weapon_ar2",true)
  39.  
  40. local SWEP=table.Copy(base) SWEP.PrintName          = "Shotgun"
  41. DOHAX(SWEP,"weapon_shotgun",true)
  42.  
  43.  
  44. local SWEP=table.Copy(base) SWEP.PrintName          = "Crowbar"
  45. DOHAX(SWEP,"weapon_crowbar",true)
  46.  
  47.  
  48. local SWEP=table.Copy(base) SWEP.PrintName          = "Slam"   
  49. DOHAX(SWEP,"weapon_slam",true)
  50.  
  51. local SWEP=table.Copy(base) SWEP.PrintName          = "Grenade"
  52. DOHAX(SWEP,"weapon_frag",true)
  53.  
  54. local SWEP=table.Copy(base) SWEP.PrintName          = "Physics Cannon" 
  55. DOHAX(SWEP,"weapon_physcannon",true)
  56.  
  57. local SWEP=table.Copy(base) SWEP.PrintName          = "Bugbait"
  58. DOHAX(SWEP,"weapon_bugbait",true)
  59.  
  60. local SWEP=table.Copy(base) SWEP.PrintName          = "Physics Gun"
  61. DOHAX(SWEP,"weapon_physgun",true)
  62.  
  63. local SWEP=table.Copy(base) SWEP.PrintName          = "Pistol" 
  64. DOHAX(SWEP,"weapon_pistol",true)
  65.  
  66. local SWEP=table.Copy(base) SWEP.PrintName          = "RPG"
  67. DOHAX(SWEP,"weapon_rpg",true)
  68.  
  69.  
  70. local SWEP=table.Copy(base) SWEP.PrintName          = "SMG"
  71. DOHAX(SWEP,"weapon_smg1",true)
  72.  
  73.  
  74. local SWEP=table.Copy(base) SWEP.PrintName          = "Deadly Stick"   
  75. DOHAX(SWEP,"weapon_stunstick",true)
Advertisement
Add Comment
Please, Sign In to add comment