Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --STICKY BANDIT
- AddCSLuaFile()
- SWEP.HoldType = "pistol"
- if CLIENT then
- SWEP.PrintName = "Dual Elites"
- SWEP.Slot = 1
- SWEP.ViewModelFlip = false
- SWEP.ViewModelFOV = 60
- SWEP.Icon = "vgui/ttt/icon_suckmycock"
- SWEP.IconLetter = "u"
- end
- SWEP.Base = "weapon_tttbase"
- SWEP.Kind = WEAPON_PISTOL
- SWEP.WeaponID = AMMO_PISTOL
- SWEP.Primary.Recoil = 1.5
- SWEP.Primary.Damage = 24
- SWEP.Primary.Delay = 0.23
- SWEP.Primary.Cone = 0.02
- SWEP.Primary.ClipSize = 10
- SWEP.Primary.Automatic = true
- SWEP.Primary.DefaultClip = 10
- SWEP.Primary.ClipMax = 60
- SWEP.Primary.Ammo = "Pistol"
- SWEP.Primary.Sound = Sound("Weapon_ELITE.1")
- SWEP.AutoSpawnable = true
- SWEP.AmmoEnt = "item_ammo_pistol_ttt"
- SWEP.UseHands = true
- SWEP.ViewModel = "models/weapons/dual_berettas/v_micro_dualm9.mdl"
- SWEP.WorldModel = "models/weapons/dual_berettas/w_micro_dualm9.mdl"
- SWEP.IronSightsPos = Vector(0, -2.5, 1.25)
- SWEP.IronSightsAng = Vector(0, 0, 0)
- --0 = left hand, 1 = right hand.
- SWEP.StickysBadassShootingAnimation = 0
- --override the primary attack function
- function SWEP:PrimaryAttack()
- --do fucking nothing if you're not supposed to be able to attack in the first place
- if not self:CanPrimaryAttack() then return end
- --call the OG
- self.BaseClass.PrimaryAttack(self.Weapon, worldsnd)
- --alternate the animation!
- vm = self.Owner:GetViewModel()
- if self.StickysBadassShootingAnimation == 0 then
- vm:SetSequence(vm:LookupSequence("shoot_left1"))
- self.StickysBadassShootingAnimation = 1
- elseif self.StickysBadassShootingAnimation == 1 then
- vm:SetSequence(vm:LookupSequence("shoot_right1"))
- self.StickysBadassShootingAnimation = 0
- end
- end
Add Comment
Please, Sign In to add comment