Raised This Month: $ Target: $400
 0% 

Jump sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-02-2010 , 15:51   Re: Jump sound
Reply With Quote #6

Quote:
Originally Posted by benamo6 View Post
How can I block jump sound? Im using
PHP Code:
set_user_footsteps(id1
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.
__________________

Last edited by Arkshine; 02-02-2010 at 16:01.
Arkshine is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode