• SWEP's Shooting Sound Wont Work
    2 replies, posted
Alright so today I attempted to make a swep, its pretty sick but the sound wont work! Here is the code, [code]if ( SERVER ) then AddCSLuaFile( "shared.lua" ) SWEP.HoldType = "smg" end if ( CLIENT ) then SWEP.PrintName = "PPSH" SWEP.Author = "Ratchet132" SWEP.Slot = 2 SWEP.SlotPos = 3 SWEP.ViewModelFlip = false end SWEP.Base = "weapon_cs_base" SWEP.Spawnable = false SWEP.AdminSpawnable = true SWEP.ViewModel = "models/weapons/v_thompson.mdl" SWEP.WorldModel = "models/weapons/w_thompson.mdl" SWEP.Weight = 7 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false SWEP.DrawCrosshair = true SWEP.Primary.Sound = "sound/thompson/tshoot.wav" SWEP.Primary.Recoil = 0.1 SWEP.Primary.Damage = 32 SWEP.Primary.NumShots = 5 SWEP.Primary.Cone = 0 SWEP.Primary.ClipSize = 60 SWEP.Primary.Delay = 0.05 SWEP.Primary.DefaultClip = 60 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "ar2" SWEP.Secondary.ClipSize = -1 SWEP.Secondary.DefaultClip = 1 SWEP.Secondary.Automatic = false SWEP.Secondary.Ammo = "SMG1_Grenade" SWEP.Secondary.Damage = 100 SWEP.Secondary.Recoil = 10[/code] I have the sound located in the sweps folder in sound/thompson so it should work, but it isn't. Help please?
Sound is relative to the sound directory, so it would just be thompson/tshoot.wav I believe.
Thanks i fucking love you!
Sorry, you need to Log In to post a reply to this thread.