Custom TTT Weapon Won't Make Fire Sound Continuously.
5 replies, posted
Hi, I have a TTT server.
I got a custom TTT swep for the server. But, the weapon sound will have delay, when you hold down the weapon trigger. It only happens for my custom guns and no other guns. Someone please help. There will be gaps between the weapon firing sounds. Making it annoying.
Code for the gun:
[CODE]if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
SWEP.HoldType = "ar2"
end
if ( CLIENT ) then
SWEP.PrintName = "Minigun"
SWEP.Author = "SonofBrim and Moldo"
SWEP.Slot = 6
SWEP.SlotPos = 0
SWEP.IconLetter = "z"
SWEP.ViewModelFOV = 60
SWEP.ViewModelFlip = false
end
SWEP.Base = "weapon_tttbase"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.ViewModel = "models/weapons/v_mach_m248para.mdl"
SWEP.WorldModel = "models/weapons/w_mach_m248para.mdl"
SWEP.Primary.Sound = Sound( "weapons/minigun/mini-1.wav" )
SWEP.Primary.Recoil = 1.5
SWEP.Primary.Damage = 13
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.05
SWEP.Primary.ClipSize = 150
SWEP.Primary.Delay = 0.09
SWEP.Primary.DefaultClip = 150
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( -4.4, -3, 2 )
SWEP.AutoRPM = 800
SWEP.MinRecoil = 0.15
SWEP.MaxRecoil = 5
SWEP.DeltaRecoil = 0.01
SWEP.MinSpread = 0.1
SWEP.MaxSpread = 0.5
SWEP.DeltaSpread = 0.005
SWEP.RecoverTime = 0.5
SWEP.MuzzleEffect = "rg_muzzle_highcal"
SWEP.ShellEffect = "rg_shelleject_rifle"
SWEP.Kind = WEAPON_EQUIP1
SWEP.Icon = "VGUI/entities/rg_Gatlin.vmt"
SWEP.CanBuy = { ROLE_TRAITOR }
SWEP.InLoadoutFor = nil
SWEP.LimitedStock = true
SWEP.EquipMenuData = {
type = "Weapon",
desc = "High Fire Rate Minigun."
};
SWEP.AllowDrop = true
SWEP.IsSilent = false
SWEP.NoSights = false
SWEP.AutoSpawnable = false[/CODE]
Can anyone help me?
Same Here. Help appreciated.
Does "weapons/minigun/mini-1.wav" have any delay in the sound file or is it instant?
[QUOTE=code_gs;42110127]Does "weapons/minigun/mini-1.wav" have any delay in the sound file or is it instant?[/QUOTE]
it's because he needs to either use a sound script or make the sound script in lua
Could be possible that the sound file isn't "perfect".
Sorry, you need to Log In to post a reply to this thread.