Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.84 KB | None | 0 0
  1.  
  2.  
  3. if ( SERVER ) then
  4.  
  5.     AddCSLuaFile( "shared.lua" )
  6.     SWEP.HasRail = true
  7.     SWEP.NoEOTech = false
  8.     SWEP.NoDocter = true
  9.     SWEP.NoACOG = true
  10.     SWEP.NoAimpoint = true
  11.     SWEP.DoesntDropRail = true
  12.     SWEP.CantSilence = true
  13.    
  14. end
  15.  
  16. if ( CLIENT ) then
  17.  
  18.     SWEP.PrintName          = "TEST"           
  19.     SWEP.Author             = "Counter-Strike"
  20.     SWEP.Slot               = 2
  21.     SWEP.SlotPos            = 1
  22.     SWEP.IconLetter         = "z"
  23.    
  24.     SWEP.WepSelectIcon = surface.GetTextureID("VGUI/kills/kill_mp7")
  25.    
  26.     killicon.Add( "cstm_smg_mp7", "VGUI/kills/kill_mp7", Color( 255, 80, 0, 255 ) )
  27.    
  28.     SWEP.VElements = {
  29.         ["eotechdot"] = { type = "Sprite", sprite = "sprites/eotech_reddot", bone = "Base", pos = Vector(-0.57, -4.744, -0.01), size = { x = 0.7, y = 0.7 }, color = Color(255, 255, 255, 0), nocull = true, additive = true, vertexalpha = true, vertexcolor = true, ignorez = false},
  30.         ["eotech"] = { type = "Model", model = "models/wystan/attachments/eotech557sight.mdl", bone = "Base", pos = Vector(9.605, 7.881, 0.25), angle = Angle(180, -4.444, -90), size = Vector(1, 1, 1), color = Color(255, 255, 255, 0), surpresslightning = false, material = "", skin = 0, bodygroup = {} }
  31.     }
  32.    
  33.     SWEP.WElements = {
  34.         ["eotech"] = { type = "Model", model = "models/wystan/attachments/eotech557sight.mdl", pos = Vector(-6.712, 0.962, 6.394), angle = Angle(-4.444, 0, 180), size = Vector(1, 1, 1), color = Color(255, 255, 255, 0), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
  35.         ["weapon"] = { type = "Model", model = "models/weapons/w_smg_mp7.mdl", pos = Vector(-1.344, 0.375, 1.776), angle = Angle(0, 0, 180), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} }
  36.     }
  37.  
  38.     SWEP.NoRail = true
  39.     SWEP.Silenced = 1
  40.    
  41. end
  42.  
  43. SWEP.HoldType           = "ar2"
  44. SWEP.Base               = "cstm_base_xtra_pistol"
  45. SWEP.Category = "Extra Customizable Weaponry"
  46.  
  47. SWEP.Spawnable          = true
  48. SWEP.AdminSpawnable     = true
  49.  
  50. SWEP.ViewModelFOV = 70
  51. SWEP.ViewModelFlip = true
  52. SWEP.ViewModel = "models/weapons/v_smg_sp5.mdl"
  53. SWEP.WorldModel = "models/weapons/w_smg_ump45.mdl"
  54. SWEP.ShowViewModel = true
  55. SWEP.ShowWorldModel = false
  56. SWEP.ViewModelBonescales = {}
  57.  
  58. SWEP.Weight             = 5
  59. SWEP.AutoSwitchTo       = false
  60. SWEP.AutoSwitchFrom     = false
  61.  
  62. SWEP.Primary.Sound          = Sound("weapons/mp7/mp7-1.wav")
  63. SWEP.Primary.Recoil         = 0.8
  64. SWEP.Primary.Damage         = 12
  65. SWEP.Primary.NumShots       = 1
  66. SWEP.Primary.Cone           = 0.02
  67. SWEP.Primary.ClipSize       = 40
  68. SWEP.Primary.Delay          = 0.063
  69. SWEP.Primary.DefaultClip    = 9999
  70. SWEP.Primary.Automatic      = true
  71. SWEP.Primary.Ammo           = "pistol"
  72. SWEP.InitialHoldtype = "smg"
  73. SWEP.InHoldtype = "smg"
  74. SWEP.UnsilencedVolume = 70
  75. SWEP.Volume = 60
  76.  
  77. -- Animation speed/custom reload function related
  78. SWEP.IsReloading = false
  79. SWEP.NoBoltAnim = true
  80. SWEP.AnimPrefix = ""
  81. SWEP.ReloadSpeed = 1
  82. SWEP.ShouldBolt = false
  83. SWEP.ReloadDelay = 0
  84. SWEP.IncAmmoPerc = 0.4 -- Amount of frames required to pass (in percentage) of the reload animation for the weapon to have it's amount of ammo increased
  85. SWEP.PlaybackRate = 1.5
  86.  
  87. -- Dynamic accuracy related
  88. SWEP.ShotsAmount            = 0
  89. SWEP.ConeDecAff             = 0
  90. SWEP.DefRecoil              = 0.64
  91. SWEP.CurCone                = 0.028
  92. SWEP.DecreaseRecoilTime     = 0
  93. SWEP.ConeAff1               = 0 -- Crouching/standing
  94. SWEP.ConeAff2               = 0 -- Using ironsights
  95. SWEP.ViewPunchCycle         = 0
  96. SWEP.ViewPunchDelay         = 0
  97. SWEP.WalkPunchCycle         = 0
  98. SWEP.WalkPunchDelay         = 0
  99. SWEP.UnConeTime             = 0 -- Amount of time after firing the last shot that needs to pass until accuracy increases
  100. SWEP.FinalCone              = 0 -- Self explanatory
  101. SWEP.VelocitySensivity      = 1.1 -- Percentage of how much the cone increases depending on the player's velocity (moving speed). Rifles - 100%; SMGs - 80%; Pistols - 60%; Shotguns - 20%
  102. SWEP.HeadbobMul             = 1
  103. SWEP.IsSilenced             = false
  104. SWEP.IronsightsCone         = 0.035
  105. SWEP.HipCone                = 0.04
  106. SWEP.ScopeCone = 0.027
  107. SWEP.InaccAff1              = 0.45
  108. SWEP.ConeInaccuracyAff1 = 0.55
  109.  
  110. SWEP.Secondary.Automatic    = false
  111. SWEP.Secondary.Ammo         = "none"
  112.  
  113. SWEP.IsUsingIronsights      = false
  114. SWEP.TargetMul = 0
  115. SWEP.SetAndForget           = false
  116.  
  117. SWEP.IronSightsPos = Vector(6.0749, -5.5216, 2.3984)
  118. SWEP.IronSightsAng = Vector(2.5174, -0.0099, 0)
  119.  
  120. SWEP.AimPos = Vector(2.94, -2.787, 1.491)
  121. SWEP.AimAng = Vector(0.574, 0.006, 0)
  122.  
  123. SWEP.ChargePos = Vector (5.4056, -10.3522, -4.0017)
  124. SWEP.ChargeAng = Vector (-1.7505, -55.5187, 68.8356)
  125.  
  126. SWEP.ReflexPos = Vector(2.96, -5.41, 0.904)
  127. SWEP.ReflexAng = Vector(0, 0, 0)
  128.  
  129. SWEP.FlipOriginsPos = Vector(1.639, 0, -0.08)
  130. SWEP.FlipOriginsAng = Vector(0, 0, 0)
  131.  
  132. SWEP.RunPos = Vector(-5.082, -6.886, -1.311)
  133. SWEP.RunAng = Vector(0, -70, 0)
  134.  
  135. util.PrecacheSound("weapons/mp7/mp7_magin.wav")
  136. util.PrecacheSound("weapons/mp7/mp7_magout.wav")
  137. util.PrecacheSound("weapons/mp7/mp7_charger.wav")
  138. util.PrecacheSound("weapons/mp7/mp7_stockpull.wav")
  139. util.PrecacheSound("weapons/mp7/mp7_switch.wav")
  140. util.PrecacheSound("weapons/mp7/mp7-1.wav")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement