Guest User

Untitled

a guest
Jul 8th, 2021
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. --STICKY BANDIT
  2.  
  3. AddCSLuaFile()
  4.  
  5. SWEP.HoldType = "pistol"
  6.  
  7. if CLIENT then
  8. SWEP.PrintName = "Dual Elites"
  9. SWEP.Slot = 1
  10.  
  11. SWEP.ViewModelFlip = false
  12. SWEP.ViewModelFOV = 60
  13.  
  14. SWEP.Icon = "vgui/ttt/icon_suckmycock"
  15. SWEP.IconLetter = "u"
  16. end
  17.  
  18. SWEP.Base = "weapon_tttbase"
  19.  
  20. SWEP.Kind = WEAPON_PISTOL
  21. SWEP.WeaponID = AMMO_PISTOL
  22.  
  23. SWEP.Primary.Recoil = 1.5
  24. SWEP.Primary.Damage = 24
  25. SWEP.Primary.Delay = 0.23
  26. SWEP.Primary.Cone = 0.02
  27. SWEP.Primary.ClipSize = 10
  28. SWEP.Primary.Automatic = true
  29. SWEP.Primary.DefaultClip = 10
  30. SWEP.Primary.ClipMax = 60
  31. SWEP.Primary.Ammo = "Pistol"
  32. SWEP.Primary.Sound = Sound("Weapon_ELITE.1")
  33.  
  34. SWEP.AutoSpawnable = true
  35. SWEP.AmmoEnt = "item_ammo_pistol_ttt"
  36.  
  37. SWEP.UseHands = true
  38. SWEP.ViewModel = "models/weapons/dual_berettas/v_micro_dualm9.mdl"
  39. SWEP.WorldModel = "models/weapons/dual_berettas/w_micro_dualm9.mdl"
  40.  
  41. SWEP.IronSightsPos = Vector(0, -2.5, 1.25)
  42. SWEP.IronSightsAng = Vector(0, 0, 0)
  43.  
  44. --0 = left hand, 1 = right hand.
  45. SWEP.StickysBadassShootingAnimation = 0
  46.  
  47. --override the primary attack function
  48. function SWEP:PrimaryAttack()
  49. --do fucking nothing if you're not supposed to be able to attack in the first place
  50. if not self:CanPrimaryAttack() then return end
  51.  
  52. --call the OG
  53. self.BaseClass.PrimaryAttack(self.Weapon, worldsnd)
  54.  
  55. --alternate the animation!
  56. vm = self.Owner:GetViewModel()
  57. if self.StickysBadassShootingAnimation == 0 then
  58. vm:SetSequence(vm:LookupSequence("shoot_left1"))
  59. self.StickysBadassShootingAnimation = 1
  60. elseif self.StickysBadassShootingAnimation == 1 then
  61. vm:SetSequence(vm:LookupSequence("shoot_right1"))
  62. self.StickysBadassShootingAnimation = 0
  63. end
  64.  
  65. end
  66.  
Add Comment
Please, Sign In to add comment