Advertisement
Guest User

Calvins Test Swep ( Cant spawn, Cant find in spawnlists )

a guest
Jun 18th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. SWEP.PrintName          = "Test Gun"           
  2. SWEP.Author         = "( CalvinTheSpaceCat )"
  3. SWEP.Instructions       = "Left mouse to fire."
  4. SWEP.Spawnable      = true
  5. SWEP.Category       = "Calvin's SWEPS"
  6.  
  7. SWEP.Primary.ClipSize       = 20
  8. SWEP.Primary.DefaultClip        = 20
  9. SWEP.Primary.Automatic      = true
  10. SWEP.Primary.Ammo       = 100
  11.  
  12. SWEP.Secondary.ClipSize     = 10
  13. SWEP.Secondary.DefaultClip      = 10
  14. SWEP.Secondary.Automatic        = false
  15. SWEP.Secondary.Ammo     = 20
  16.  
  17. SWEP.Weight     = 4
  18. SWEP.AutoSwitchTo       = false
  19. SWEP.AutoSwitchFrom     = false
  20.  
  21. SWEP.Slot       = 2
  22. SWEP.SlotPos        = 2
  23. SWEP.DrawAmmo       = true
  24. SWEP.DrawCrosshair      =true
  25.  
  26. SWEP.ViewModel          = "models/weapons/v_pistol.mdl"
  27. SWEP.WorldModel         = "models/weapons/w_pistol.mdl"
  28.  
  29. local ShootSound = Sound( "Metal.SawbladeStick" )
  30.  
  31. function SWEP:PrimaryAttack()
  32.     self.Weapon:SetNextPrimaryFire( CurTime() + 0.2 )
  33.    
  34. end
  35.  
  36. function SWEP:SecondaryAttack()
  37.     self:EmitSound( ShootSound )
  38.     if ( CLIENT ) the return end
  39.    
  40.    
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement