Change pitch for all sounds
is it possible to change the pitch for all sounds, or even better slow them down.
P.S. i know that i can precache every sound and emit it, too big effort for such thing xD |
Re: Change pitch for all sounds
You can change pitch only for sounds which are emitting.
Hook FM_EmitSound(), use emit_sound() to play the sound with the pitch changed then supercede to block original sound. Will work only for server sound. ( all related to client-side sound can not be hooked ) |
Re: Change pitch for all sounds
PHP Code:
|
Re: Change pitch for all sounds
<3 connor, + :crab:
why when i use it like this, theres an index out of bounds error ? PHP Code:
|
Re: Change pitch for all sounds
Because sounds can be emmitted by other ents than players (i guess your array is 33 sized).
|
Re: Change pitch for all sounds
yes it is, how big should it be ?
|
Re: Change pitch for all sounds
33, but add this check that will fix the error (g_iMaxPlayers is a global var and it's value is get_maxplayers()):
PHP Code:
|
Re: Change pitch for all sounds
Nevermind i figured it out my self, that i have to check is the ent a player xD, thanx anyway
|
| All times are GMT -4. The time now is 22:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.