AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Walk sound replace (https://forums.alliedmods.net/showthread.php?t=140123)

DoviuX 10-09-2010 04:01

Walk sound replace
 
How can i emit sound for walking ?

Code like this , I only need to change it for walkin sounds.

PHP Code:

        else if (sample[1] == 'l' && sample[2] == 'a' && sample[3] == 'y' && ( (containi(sample"bhit") != -1) || (containi(sample"pain") != -1) || (containi(sample"shot") != -1)))
        {
            
emit_sound(idCHAN_VOICEg_hunter_pain[random(sizeof g_hunter_pain)], volumeattnflagpitch)
            return 
FMRES_SUPERCEDE
        



Exolent[jNr] 10-09-2010 04:02

Re: Walk sound replace
 
Not possible to change the walk sound.

You can give players silent footsteps and create your own walk sound system.

DoviuX 10-09-2010 04:32

Re: Walk sound replace
 
Oh okay.

abdul-rehman 10-09-2010 04:57

Re: Walk sound replace
 
Quote:

Originally Posted by Exolent[jNr] (Post 1319760)
Not possible to change the walk sound.

You can give players silent footsteps and create your own walk sound system.

Wont FM_EmitSound be called for emittion of walking sound ??
just askin

Exolent[jNr] 10-09-2010 04:58

Re: Walk sound replace
 
Quote:

Originally Posted by abdul-rehman (Post 1319801)
Wont FM_EmitSound be called for emittion of walking sound ??
just askin

No.

DoviuX 10-09-2010 06:08

Re: Walk sound replace
 
I got one more question. How can I block "jointeam 1/2" console command ?

Xalus 10-09-2010 06:54

Re: Walk sound replace
 
Quote:

Originally Posted by Exolent[jNr] (Post 1319802)
No.

What about:

  1. Set silent run on.
  2. See is hes running & set sound ?

Exolent[jNr] 10-09-2010 12:00

Re: Walk sound replace
 
Quote:

Originally Posted by DoviuX (Post 1319871)
I got one more question. How can I block "jointeam 1/2" console command ?

Hook with register_clcmd() and return PLUGIN_HANDLED.

Quote:

Originally Posted by Xalus (Post 1319907)
What about:

  1. Set silent run on.
  2. See is hes running & set sound ?

I said that in my first reply to the thread.

Xalus 10-09-2010 12:02

Re: Walk sound replace
 
Ah sorry, I only saw..

Not possible to change the walk sound.


All times are GMT -4. The time now is 10:28.

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