Walk triggers sound?
How would I have a custom sound play everytime a player walks?
I disabled mp_footsteps if that makes any difference? Thank you for any and all help :) |
Re: Walk triggers sound?
You could try and loop an iceskate sound on a player using set_task that loops for as long as the soundfile is. I'm assuming this goes along with your iceskate plugin. It's the only way I could think of doing it right now, but I'm sure theres a more efficient method of doing this
|
Re: Walk triggers sound?
The sound file is 3 seconds.
I don't want it to play when they aren't moving though. Maybe if I set it to loop everytime a player presses: A, W, S, D and then stops when they release the key.? I am not sure how to do it but I will try and figure it out. Any help would be greatly appreciated. |
Re: Walk triggers sound?
That wouldn't make sense if someone is holding the key down but is not moving (running into a wall/corner). To get around that you could probably get the users origin to see if they have moved while holding it down (while ignoring z access).
|
Re: Walk triggers sound?
That's a good idea!
Um, I will look around on the Wiki to see what I can come up with. Any sample code would help :) |
Re: Walk triggers sound?
Hum, i've maded something...maybe is not the best way but shold work :D
Code:
#include <amxmodx> |
Re: Walk triggers sound?
|
| All times are GMT -4. The time now is 16:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.