Raised This Month: $ Target: $400
 0% 

Footstep change with engfunc function?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TSuNaMi_
BANNED
Join Date: Jan 2009
Location: After 2018 World
Old 06-08-2010 , 11:13   Footstep change with engfunc function?
Reply With Quote #1

hi guyz. How can i change footstep sound with using engfunc function ?

i tried this code but not working good.Sound coming behind

Code:
            case 'C':
                engfunc( EngFunc_EmitAmbientSound, 0, id, simplesteps[num[id]], VOL_STEP, ATTN_STATIC, 0, PITCH_NORM )
TSuNaMi_ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-08-2010 , 11:26   Re: Footstep change with engfunc function?
Reply With Quote #2

You can't, footsteps sounds are played client-side, you can't hook nor change it. What you could do as alternative way is to redo all manually, silent the player's footsteps using set_user_footsteps() then reproduce then with your sounds.
__________________
Arkshine is offline
TSuNaMi_
BANNED
Join Date: Jan 2009
Location: After 2018 World
Old 06-08-2010 , 11:37   Re: Footstep change with engfunc function?
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
You can't, footsteps sounds are played client-side, you can't hook nor change it. What you could do as alternative way is to redo all manually, silent the player's footsteps using set_user_footsteps() then reproduce then with your sounds.
I know it but how can i do that ? can you say example pls?
TSuNaMi_ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-08-2010 , 11:39   Re: Footstep change with engfunc function?
Reply With Quote #4

Already posted somewhere, please search.
__________________
Arkshine is offline
TSuNaMi_
BANNED
Join Date: Jan 2009
Location: After 2018 World
Old 06-08-2010 , 11:56   Re: Footstep change with engfunc function?
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
Already posted somewhere, please search.
already i use mp_footsteps "0" command in my server with this plugin. set_user_footsteps() not need for my plugin.Only i want to learn why do sounds come of player from back .

thanks for your interest.

TSuNaMi_ is offline
Reply



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 05:27.


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