Advertisement
Exho

Gmod Sandbox SWEP Template

Dec 21st, 2014
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. if SERVER then
  2.     AddCSLuaFile()
  3. end
  4.  
  5. SWEP.PrintName          = "Test Wep"
  6. SWEP.Author             = "Exho"
  7. SWEP.Contact            = ""
  8. SWEP.Purpose            = ""
  9. SWEP.Instructions       = ""
  10. SWEP.Category            = "Template"
  11.  
  12. SWEP.Slot               = 3
  13. SWEP.SlotPos             = 1
  14. SWEP.DrawAmmo           = true
  15. SWEP.DrawCrosshair      = true
  16. SWEP.HoldType            = "normal"
  17. SWEP.Spawnable           = true
  18. SWEP.AdminSpawnable      = true
  19.  
  20. SWEP.Primary.Ammo        = "none"
  21. SWEP.Primary.Delay       = 2
  22. SWEP.Secondary.Delay     = 2
  23. SWEP.Primary.ClipSize    = 5
  24. SWEP.Primary.ClipMax     = 5
  25. SWEP.Primary.DefaultClip = 5
  26. SWEP.Primary.Automatic   = false
  27.  
  28. SWEP.ViewModel           = "models/weapons/v_pistol.mdl"
  29. SWEP.WorldModel          = "models/weapons/w_pistol.mdl"
  30. SWEP.ViewModelFlip       = false
  31.  
  32. function SWEP:PrimaryAttack()
  33.  
  34. end
  35.  
  36. function SWEP:SecondaryAttack()
  37.  
  38. end
  39.  
  40. function SWEP:Reload()
  41.  
  42. end
  43.  
  44. function SWEP:DrawHUD()
  45.  
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement