• Galil sound is broken
    2 replies, posted
What happens is I can shoot the galil while still and the sound is perfectly fine, however if the player is moving while shooting, the sound will play for 2-3 shots and go silent for another 8 shots. This is the entire code to the gun: [CODE]if ( SERVER ) then AddCSLuaFile( "shared.lua" ) SWEP.HoldType = "smg" end if ( CLIENT ) then SWEP.Author = "Someone" SWEP.Contact = "InfamouseSkull" SWEP.Purpose = "Test" SWEP.Category = "Mysweps" SWEP.Instructions = "right Click to aim" SWEP.PrintName = "Galil" SWEP.Slot = 2 SWEP.SlotPos = 0 SWEP.IconLetter = "v" SWEP.ViewModelFlip = false killicon.AddFont("weapon_galil_ar","CSKillIcons",SWEP.IconLetter,Color(255,80,0,255)) end SWEP.Kind = WEAPON_HEAVY SWEP.Base = "weapon_tttbase" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.AutoSpawnable = true SWEP.ViewModel = "models/weapons/v_rif_galil.mdl" SWEP.WorldModel = "models/weapons/w_rif_galil.mdl" SWEP.Weight = 5 SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true SWEP.Primary.Sound = Sound( "weapons/galil/galil-1.wav" ) SWEP.Primary.Recoil = 1.6 SWEP.Primary.Damage = 18 SWEP.Primary.NumShots = 1 SWEP.Primary.Cone = 0.01 SWEP.Primary.ClipSize = 30 SWEP.Primary.Delay = 0.15 SWEP.Primary.DefaultClip = 30 SWEP.Primary.MaxClip = 90 SWEP.Primary.Automatic = true SWEP.AmmoEnt = "item_ammo_pistol_ttt" SWEP.Primary.Ammo = "pistol" SWEP.IronSightsPos = Vector(-5.1337, -3.9115, 2.1624) SWEP.IronSightsAng = Vector(0.0873, 0.0006, 0)[/CODE]
try Weapon_Galil.Single for the sound
that worked. I thought of that but I figured it wouldn't since I can't see the original sound files for it. Thank you.
Sorry, you need to Log In to post a reply to this thread.