by Enjay » Sun Jan 13, 2019 12:25 pm
It's pretty easy to demonstrate that $limit is still working by loading the following in a SNDINFO
and then firing the plasma gun. The effect is very obvious (especially if you run forwards while firing).
I suspect the problem that you are coming up against is that (from memory) $limit does not limit the randomised name (in your case bullet/metal).
I can be used to limit the individual sounds within the randomisation (bmetal1, 2, 3 etc) and that probably is working. However, if you are producing a bunch of bulletpuffs at one time, each one is choosing their sound from a choice of 5, so with a lot of bullet puffs appearing at once, you could easily have 5 sounds playing at the same time and that might seem like $limit is not working.
I guess that it all depends what you are trying to do, but it may be possible to limit the number of sound instances by taking a different approach to the logic of how your sound is being played.
However, $limit itself seems to be working as intended.
It's pretty easy to demonstrate that $limit is still working by loading the following in a SNDINFO
[code]$limit weapons/plasmaf 1[/code]
and then firing the plasma gun. The effect is very obvious (especially if you run forwards while firing).
I suspect the problem that you are coming up against is that (from memory) $limit does not limit the randomised name (in your case bullet/metal).
I can be used to limit the individual sounds within the randomisation (bmetal1, 2, 3 etc) and that probably is working. However, if you are producing a bunch of bulletpuffs at one time, each one is choosing their sound from a choice of 5, so with a lot of bullet puffs appearing at once, you could easily have 5 sounds playing at the same time and that might seem like $limit is not working.
I guess that it all depends what you are trying to do, but it may be possible to limit the number of sound instances by taking a different approach to the logic of how your sound is being played.
However, $limit itself seems to be working as intended.