Raised This Month: $ Target: $400
 0% 

[No need to post anymore] Footsteps CS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-09-2009 , 09:32   [No need to post anymore] Footsteps CS
Reply With Quote #1

How are the footstep sounds sent to the client?
EmitSound, EmitAmbientSound & BuildSoundMessage haven't got any relation with it (FM_Forwards)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 10-09-2009 at 12:30.
ot_207 is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 10-09-2009 , 10:18   Re: Footsteps CS
Reply With Quote #2

I've found this on my .sma folder.

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_forward(FM_UpdateClientData"fw_UpdateClientData"1)
}

public 
fw_UpdateClientData(playersendweaponshandle)
{
    
set_cd(handleCD_flTimeStepSound999 )

With this players won't hear their own footsteps.


I hope this will help you
__________________
Javivi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2009 , 10:28   Re: Footsteps CS
Reply With Quote #3

These sounds are played client-side, so you can not hook them.
__________________
Arkshine is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-09-2009 , 10:36   Re: Footsteps CS
Reply With Quote #4

Quote:
Originally Posted by Javivi View Post
I hope this will help you
No, that is not what I was looking for.

Quote:
Originally Posted by Arkshine View Post
These sounds are played client-side, so you can not hook them.
Ok, but is there a way to send that the user has not made any step to a player?
Ex: When the players hear a footstep will only hear if he is in PVS.
PHP Code:
set_cd(CD_flTimeStepSound0// Only in PVS
//ELSE
set_cd(CD_flTimeStepSound999// IF NOT IN PVS 
I mean setting the footstep sound property block only when the player isn't in PVS.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-09-2009 , 11:06   Re: Footsteps CS
Reply With Quote #5

CD is for 1 player, it's not something send by a player to another player.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-09-2009 , 12:18   Re: Footsteps CS
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
CD is for 1 player, it's not something send by a player to another player.
I already know that.
I just gave that script as an example.

Edit: Thank you I don't need any answer now.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 10-09-2009 at 12:31.
ot_207 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 22:33.


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