Advertisement
Guest User

P90 Pa

a guest
Apr 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1.  
  2. AddCSLuaFile( "shared.lua" )
  3.  
  4. SWEP.Author = "UGC | Inhaber"
  5. SWEP.Instructions = ""
  6.  
  7. SWEP.Spawnable = false
  8. SWEP.AdminSpawnable = true
  9.  
  10. SWEP.ViewModel = "models/weapons/w_smg_p90.mdl"
  11. SWEP.WorldModel = "models/weapons/w_smg_p90.mdl"
  12.  
  13. SWEP.Primary.ClipSize = -1
  14. SWEP.Primary.DefaultClip = -1
  15. SWEP.Primary.Automatic = true
  16. SWEP.Primary.Ammo = "ar2"
  17. SWEP.Primary.Delay = 1
  18.  
  19. SWEP.Secondary.ClipSize = -1
  20. SWEP.Secondary.DefaultClip = -1
  21. SWEP.Secondary.Automatic = false
  22. SWEP.Secondary.Ammo = "none"
  23.  
  24. SWEP.Weight = 5
  25. SWEP.AutoSwitchTo = false
  26. SWEP.AutoSwitchFrom = false
  27.  
  28. SWEP.PrintName = "P90 | Automatik"
  29. SWEP.Category = "UGC | Waffen"
  30. SWEP.Slot = 3
  31. SWEP.SlotPos = 1
  32. SWEP.DrawAmmo = false
  33. SWEP.DrawCrosshair = false
  34.  
  35. local ShootSound = Sound("")
  36.  
  37. function SWEP:PrimaryAttack()
  38.  
  39. self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )
  40.  
  41. self:EmitSound( ShootSound )
  42. self:ShootEffects( self )
  43.  
  44. if (!SERVER) then return end
  45.  
  46. end
  47.  
  48. function SWEP:SecondaryAttack()
  49.  
  50. end
  51.  
  52. function SWEP:ShouldDropOnDie()
  53. return false
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement