Advertisement
Guest User

Untitled

a guest
May 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. if SERVER then
  2. AddCSLuaFile("shared.lua")
  3. SWEP.ExtraMags = 4
  4. end
  5.  
  6. if CLIENT then
  7. SWEP.PrintName = "AK-74"
  8. SWEP.Slot = 3
  9. SWEP.SlotPos = 0
  10. SWEP.DrawAmmo = false
  11.  
  12. SWEP.AimPos = Vector(-2.201, -4.646, 0.675)
  13. SWEP.AimAng = Vector(0.264, 0, 0)
  14.  
  15. SWEP.CompM4Pos = Vector(-2.2, -2.5, -0.31)
  16. SWEP.CompM4Ang = Vector(0, 0, 0)
  17.  
  18. SWEP.MuzzleEffect = "muzzleflash_ak74"
  19. SWEP.Shell = "5.45x39"
  20. SWEP.AttachmentBGs = {["compm4"] = {bg = 3, sbg = 1},
  21. ["suppressor"] = {bg = 2, sbg = 1}}
  22.  
  23. SWEP.WMAng = Vector(0, 180, 180)
  24. SWEP.WMPos = Vector(1, -3, 0.25)
  25. end
  26.  
  27. SWEP.Attachments = {
  28. [1] = {header = "Sight", sight = true, x = 800, y = -50, atts = {"compm4"}},
  29. [2] = {header = "Barrel", y = -200, atts = {"suppressor"}}}
  30.  
  31. SWEP.BulletLength = 5.45
  32. SWEP.CaseLength = 39
  33. SWEP.EmptySound = Sound("weapons/empty_assaultrifles.wav")
  34.  
  35. SWEP.Anims = {}
  36. SWEP.Anims.Draw_First = "deploy"
  37. SWEP.Anims.Draw = "deploy"
  38. SWEP.Anims.Holster = "holster"
  39. SWEP.Anims.Fire = "fire"
  40. SWEP.Anims.Fire_Aiming = "fire_scoped"
  41. SWEP.Anims.Idle = "idle"
  42. SWEP.Anims.Idle_Aim = "idle_scoped"
  43. SWEP.Anims.Reload = "reload"
  44. SWEP.Anims.Reload_Nomen = "reload_nomen"
  45. SWEP.Anims.Reload_Empty = "reload_empty"
  46. SWEP.Anims.Reload_Empty_Nomen = "reload_empty_nomen"
  47.  
  48. SWEP.Sounds = {}
  49. SWEP.Sounds["reload"] = {[1] = {time = 1, sound = Sound("Weapon_ak74.MagOut")},
  50. [2] = {time = 1.5, sound = Sound("MagPouch_AR")},
  51. [3] = {time = 1.9, sound = Sound("Weapon_ak74.MagIn")}}
  52.  
  53. SWEP.Sounds["reload_nomen"] = {[1] = {time = 0.6, sound = Sound("Weapon_ak74.MagOut")},
  54. [2] = {time = 1.2, sound = Sound("MagPouch_AR")},
  55. [3] = {time = 1.8, sound = Sound("Weapon_ak74.MagIn")}}
  56.  
  57. SWEP.Sounds["reload_empty"] = {[1] = {time = 0.7, sound = Sound("Weapon_ak74.MagOutEmpty")},
  58. [2] = {time = 1.15, sound = Sound("MagPouch_AR")},
  59. [3] = {time = 1.85, sound = Sound("Weapon_ak74.MagIn")},
  60. [4] = {time = 2.9, sound = Sound("Weapon_ak74.BoltPull")}}
  61.  
  62. SWEP.Sounds["reload_empty_nomen"] = {[1] = {time = 0.8, sound = Sound("MagPouch_AR")},
  63. [2] = {time = 1.5, sound = Sound("Weapon_ak74.MagOutEmptyNomen")},
  64. [3] = {time = 1.8, sound = Sound("Weapon_ak74.MagIn")},
  65. [4] = {time = 2.5, sound = Sound("Weapon_ak74.BoltPull")}}
  66.  
  67. SWEP.FireModes = {"auto", "semi"}
  68.  
  69. SWEP.Category = "FA:S 2 Weapons"
  70. SWEP.Base = "fas2_base"
  71. SWEP.Author = "Spy"
  72. SWEP.Contact = ""
  73. SWEP.Purpose = ""
  74.  
  75. SWEP.ViewModelFOV = 60
  76. SWEP.ViewModelFlip = false
  77.  
  78. SWEP.Spawnable = true
  79. SWEP.AdminSpawnable = true
  80.  
  81. SWEP.VM = "models/weapons/view/rifles/ak74.mdl"
  82. SWEP.WM = "models/weapons/w_ak47.mdl"
  83. SWEP.WorldModel = "models/weapons/w_rif_ak47.mdl"
  84.  
  85. -- Primary Fire Attributes --
  86. SWEP.Primary.ClipSize = 30
  87. SWEP.Primary.DefaultClip = 0
  88. SWEP.Primary.Automatic = true
  89. SWEP.Primary.Ammo = "ar2"
  90.  
  91. -- Secondary Fire Attributes --
  92. SWEP.Secondary.ClipSize = -1
  93. SWEP.Secondary.DefaultClip = -1
  94. SWEP.Secondary.Automatic = true
  95. SWEP.Secondary.Ammo = "none"
  96.  
  97. -- Deploy related
  98. SWEP.FirstDeployTime = 0.45
  99. SWEP.DeployTime = 0.8
  100. SWEP.DeployAnimSpeed = 0.5
  101.  
  102. -- Firing related
  103. SWEP.Shots = 1
  104. SWEP.FireDelay = 0.1
  105. SWEP.Damage = 32
  106. SWEP.FireSound = Sound("FAS2_AK74")
  107. SWEP.FireSound_Suppressed = Sound("FAS2_AK74_S")
  108.  
  109. -- Accuracy related
  110. SWEP.HipCone = 0.05
  111. SWEP.AimCone = 0.005
  112. SWEP.SpreadPerShot = 0.007
  113. SWEP.MaxSpreadInc = 0.03
  114. SWEP.SpreadCooldown = 0.18
  115. SWEP.VelocitySensitivity = 1.8
  116. SWEP.AimFOV = 5
  117.  
  118. -- Recoil related
  119. SWEP.ViewKick = 1.2
  120. SWEP.Recoil = 0.85
  121.  
  122. -- Reload related
  123. SWEP.ReloadTime = 2.6
  124. SWEP.ReloadTime_Nomen = 2.2
  125. SWEP.ReloadTime_Empty = 3.3
  126. SWEP.ReloadTime_Empty_Nomen = 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement