Alright, so I'm making a swep pack using models I got on FPSB that came with sounds.
There is sounds for shooting and reloading.
For most of the guns there is multiple reload sounds like sounds for bolt pulls and crap and when I put them in order so they would be played it goes as fast as hell like look!
[code]function SWEP:Reload()
self.Weapon:EmitSound( "slideback.wav" )
self.Weapon:EmitSound( "mp5_clipout.wav" )
self.Weapon:DefaultReload(ACT_VM_RELOAD)
self.Weapon:EmitSound( "mp5_clipin.wav" )
self.Weapon:EmitSound( "slap.wav" )
end[/code]
Is one of the things I'm trying to use for the sounds but it plays all at once.
Its really annoying.
Also, even if I do not need to reload and I hit r it plays the sound.
I think I would fix this using something that says if you have under certain amount of ammo you can reload, but I'm not sure about how to go about doing that.
Please help me?
There isn't a function/hook that will slow the sound down in the game. You'll need to manually edit the sound files and slow down their tempo.
Use timer.Simple( time, function() do stuff end )
The CPU runs faster than your hardware, so to speak. When you put things all in line like that, they will all run at once. Unlike some scripting languages, it will not wait until each sound is played or animation is completed. You will need to add timer.Simples to the script in order to delay your animations, sounds, etc. so they will play at the correct times.
[editline]09:08PM[/editline]
[QUOTE=B1N4RY!;18156433]There isn't a function/hook that will slow the sound down in the game. You'll need to manually edit the sound files and slow down their tempo.[/QUOTE]
Not what he's asking, but this is true.
Sorry, you need to Log In to post a reply to this thread.