Quote:
Originally Posted by benamo6
How can I block jump sound? Im using
PHP Code:
set_user_footsteps(id, 1)
to block user step sounds but I can still hear jump sound.
|
Probably done client-side. You can't block it with a server-side module/plugin.
All the PM_* we can hook, like PM_PlayStepSound() which plays the player's step sound, we can't block it because the same code is running on the client and because of the client prediction we can't block the function. The native set flTimeStepSound to a hight value (999) in a prethink function so PM_UpdateStepSound() will abort because there is a check "flTimeStepSound > 0 return". Now, the problem is PM_PlayStepSound() is called directly in PM_Jump() ( so when do a jump ). I will try a trick.
__________________