• SWEP Reload Sounds Aren't Working - Please Help !!
    1 replies, posted
Hello, I have been working on a new SWEP pack for Garrysmod.org I have fixed the world models and added some cool effects to the weapons. Basically, The problem is that the firing sound works, but the Reloading sounds dont work. I already know about SWEP.Reload () Emit.Sound but that sucks. If you touch the Reload button it just starts to repeat the reloading sound and speeds up and generally sounds terrible. I have spent alittle over two days looking for a way to fix this problem. The Code for my swep. [code]-- Read the weapon_real_base if you really want to know what each action does if (SERVER) then AddCSLuaFile("shared.lua") SWEP.HoldType = "ar2" end if (CLIENT) then SWEP.PrintName = "AK-74u" SWEP.Slot = 3 SWEP.SlotPos = 1 SWEP.IconLetter = "b" killicon.AddFont("weapon_dragon_ak74u", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, 255 ) ) end SWEP.EjectDelay = 0.05 SWEP.Instructions = "Point away from face !!" SWEP.Base = "weapon_dragon_base_rifle" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.ViewModel = "models/weapons/v_drg_ak7.mdl" SWEP.WorldModel = "models/weapons/w_dragon_ak74u.mdl" SWEP.Primary.Sound = Sound("weapons/ak74/single-1.wav") SWEP.Primary.Reload = Sound("weapons/ak74/reload.wav") SWEP.Primary.Empty = Sound( "Weapon_SMG1.Empty" ) SWEP.Primary.Recoil = 1 SWEP.Primary.Damage = 33 SWEP.Primary.NumShots = 1 SWEP.Primary.Cone = 0.023 SWEP.Primary.ClipSize = 30 SWEP.Primary.Delay = 0.1 SWEP.Primary.DefaultClip = 30 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "smg1" SWEP.Secondary.ClipSize = -1 SWEP.Secondary.DefaultClip = -1 SWEP.Secondary.Automatic = false SWEP.Secondary.Ammo = "none" SWEP.IronSightsPos = Vector (6.0816, -7.8745, 2.5074) SWEP.IronSightsAng = Vector (2.4511, -0.0486, 0) [/code] [b]Thank You In Advance[/b] I also have a sound script that came with the weapon, just ask if you need that too. [i]I will also give credit in the release!!!!!!![/i]
If you're trying to set it as the default AK47 you need Weapon_AK47.Reload, I think. But custom is another story. PM me if that's the case.
Sorry, you need to Log In to post a reply to this thread.