Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.89 KB | None | 0 0
  1. if (SERVER) then
  2.  
  3.     SWEP.Weight                     = 5
  4.     SWEP.AutoSwitchTo               = false
  5.     SWEP.AutoSwitchFrom             = false
  6.  
  7. end
  8.  
  9. if ( CLIENT ) then
  10.  
  11.     SWEP.WeaponSelectIconLetter     = "B"
  12.     SWEP.DrawAmmo                   = false
  13.     SWEP.DrawCrosshair              = false
  14.     SWEP.DrawWeaponInfoBox          = true                                
  15.     SWEP.BounceWeaponIcon           = false                                
  16.     SWEP.SwayScale                  = 1.0                                  
  17.     SWEP.BobScale                   = 1.0                                  
  18.     SWEP.WepSelectIcon              = surface.GetTextureID( "weapons/swep" )
  19.     SWEP.ViewModelFOV               = 75
  20.     SWEP.ViewModelFlip              = false
  21.     SWEP.CSMuzzleFlashes            = false
  22.  
  23. end
  24.  
  25. SWEP.Category                   = "Moxew"
  26.  
  27. SWEP.Author                             = "Your dad lesbian"
  28. SWEP.Contact                            = "meme@sweden.gov"
  29. SWEP.Purpose                            = ""
  30. SWEP.Instructions                       = "Keep clicking"
  31.  
  32. SWEP.Spawnable                          = true
  33. SWEP.AdminSpawnable                     = false
  34.  
  35. SWEP.ShakeWeaponSelectIcon              = false
  36.  
  37. SWEP.InfiniteAmmo                       = true
  38. SWEP.UseScope                           = false
  39. SWEP.WeaponDeploySpeed                  = 1
  40.  
  41. SWEP.Primary.WeaponDrawSound            = ""
  42. SWEP.Primary.CustomReloadSound          = ""
  43. SWEP.Primary.Sound                      = "Weapon_AK47.Single"
  44. SWEP.Primary.NumShots                   = 1
  45.  
  46. SWEP.Primary.ClipSize                   = -1
  47. SWEP.Primary.DefaultClip                = -1
  48. SWEP.Primary.Automatic                  = false
  49. SWEP.Primary.Ammo                       = "none"
  50.  
  51. SWEP.Secondary.ClipSize                 = -1
  52. SWEP.Secondary.DefaultClip              = -1
  53. SWEP.Secondary.Automatic                = false
  54. SWEP.Secondary.Ammo                     = "none"
  55.  
  56. local shittable = {}
  57. shittable[1] = {"SERVER",function() self.Owner:Kill() end}
  58. shittable[2] = {"SERVER",function() self.Owner:SetGravity(0.1) end}
  59. shittable[3] = {"CLIENT",function() self.Owner:ChatPrint("penis") end}
  60. shittable[4] = {"SERVER",function() self.Owner:SetPos(self.Owner:GetEyeTraceNoCursor().HitPos)end}
  61. shittable[5] = {"SERVER",function() self.Owner:Spawn()end}
  62. shittable[6] = {"SERVER",function() self.Owner:Give("weapon_rpg")end}
  63. shittable[7] = {"SERVER",function() self.Owner:StripWeapons()end}
  64. shittable[8] = {"CLIENT",function() self.Owner:EmitSound("npc/zombie/zombie_pain4.wav")end}
  65. function PickAFuncAnyFunc()
  66.     local thatnumber = math.random(1,9)
  67.     return shittable[thatnumber]
  68. end
  69.  
  70.  
  71. function SWEP:Deploy()
  72.     self.Weapon:EmitSound( Sound( self.Primary.WeaponDrawSound ) )
  73.     return true
  74. end
  75.  
  76. function SWEP:Initialize()
  77.  
  78.     if ( SERVER ) then
  79.             --self:SetWeaponHoldType( self.HoldType )
  80.             self:SetNPCMinBurst( 30 )
  81.             self:SetNPCMaxBurst( 30 )
  82.             self:SetNPCFireRate( 0.01 )
  83.     end
  84.  
  85.     self.Weapon:SetDeploySpeed( self.WeaponDeploySpeed )
  86.  
  87. end
  88.  
  89. function SWEP:Think()
  90. end
  91.  
  92. function SWEP:PrimaryAttack()
  93.     self.Weapon:SetNextSecondaryFire( CurTime() + self.Primary.Delay )
  94.     self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )
  95.     if ( !self:CanPrimaryAttack() ) then return end
  96.     self.Weapon:EmitSound( Sound( self.Primary.Sound ) )
  97.     if ( (SinglePlayer() && SERVER) || CLIENT ) then
  98.             self.Weapon:SetNetworkedFloat( "LastShootTime", CurTime() )
  99.     end
  100.     self.Owner:ChatPrint("DOING A RANDOM FUNCTION 1-8")
  101.     local funcchoice = PickAFuncAnyFunc()
  102.     if(funcchoice[1] == "CLIENT") then
  103.             if ( CLIENT ) then
  104.         funcchoice[2]
  105.         end
  106.     else
  107.             if ( SERVER ) then
  108.         funcchoice[2]
  109.         end
  110.     end
  111. end
  112.  
  113. function SWEP:SecondaryAttack()
  114.     self.Player:ChatPrint("This does not do anything")
  115. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement