• Burst Fire Weapon? (TTT)
    0 replies, posted
I am new to LUA so I'll get ride to the point. I need a way to make a gun shoot 3 burst shots. And because I'm stupid I can't figure it out :downs: Here's the rest of the weapon I have complete: [CODE] if SERVER then AddCSLuaFile( "shared.lua" ) end SWEP.HoldType = "ar2" if CLIENT then SWEP.PrintName = "FAMAS" SWEP.Author = "Evil" SWEP.Slot = 2 SWEP.SlotPos = 1 SWEP.EquipMenuData = { type = "Weapon", desc = "Burst shot fire. 9MM ammo." }; end SWEP.Base = "weapon_tttbase" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.Kind = WEAPON_HEAVY SWEP.AmmoEnt = "item_ammo_pistol_ttt" SWEP.Icon = "vgui/ttt/icon_famas" SWEP.InLoadoutFor = detective SWEP.NoSights = false SWEP.IronSightsPos = Vector( 6.05, -5, 2.4 ) SWEP.IronSightsAng = Vector( 2.2, -0.1, 0 ) if SERVER then resource.AddFile("VGUI/ttt/icon_myserver_ak47.vmt") end SWEP.Primary.Delay = 2.15 SWEP.Primary.Recoil = 23 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "pistol" SWEP.Primary.Damage = 350 SWEP.Primary.Cone = 0.025 SWEP.Primary.ClipSize = 35 SWEP.Primary.ClipMax = 105 -- keep mirrored to ammo SWEP.Primary.DefaultClip = 35 SWEP.AutoSpawnable = true SWEP.ViewModel = "models/weapons/v_snip_awp.mdl" SWEP.WorldModel = "models/weapons/w_snip_awp.mdl" SWEP.Primary.Sound = Sound( "Weapon_Awp.Single" ) [/CODE]
Sorry, you need to Log In to post a reply to this thread.