AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   êmit sound & mp3 (https://forums.alliedmods.net/showthread.php?t=92710)

One 05-18-2009 14:14

êmit sound & mp3
 
PHP Code:

public plugin_precache()
{
    
precache_sound"rally/drehzahl.wav" );
}



emit_sound,CHAN_ITEM"rally/drehzahl.wav"1.0ATTN_NORM0PITCH_HIGH); 

so this one now to mp3

PHP Code:

public plugin_precache()
{
    
precache_generic"sound/rally/drehzahl.mp3" );
}

emit_sound,CHAN_ITEM"sound/rally/drehzahl.mp3"1.0ATTN_NORM0PITCH_HIGH); 

<<< lol?? where am i wrong?


i like the sounds in wav. but its laggy, this must repeat the sound & this shit makes a noise by repeat.


&&& :

i tried with spk, but i can hear the player from very far distance. is there a way to edit the distance? i tried this on de_dust & i could hear the CT @ CTBASE when i was @B.

merkava 05-18-2009 14:49

Re: êmit sound & mp3
 
Maybe use this:
PHP Code:

new const sounds_bla[][] =
{
    
"rally/drehzahl.wav"

</span></span>

One 05-18-2009 14:54

Re: êmit sound & mp3
 
Quote:

Originally Posted by merkava (Post 830033)
Maybe use this:
PHP Code:

new const sounds_bla[][] =
{
    
"rally/drehzahl.wav"

</span></span>


there are more then 60 sounds. & how i said. this willbe nice when i could change the distance:cry:

Hunter-Digital 05-18-2009 15:44

Re: êmit sound & mp3
 
the attenuation value is the distance :) the lower it its, the further you can hear the sound, ATTN_STATIC (1.25) can be heard really close, but not as close as ATTN_IDLE (2.0)... use ATTN_NONE (0.0) and see what happens when you place an emit sound in the far end of the map :P

also, you can not do emit sound with mp3, you can do a client command with mp3...
PHP Code:

client_cmd("mp3 play ^"sound/path/music.mp3^""


Arkshine 05-18-2009 18:05

Re: êmit sound & mp3
 
emit_sound() accepts only .wav. If you want to loop a wav edit the sound with an audio software ( eg: SoundForge ) or you can try to search if there is a flag for that.

One 05-18-2009 18:13

Re: êmit sound & mp3
 
damn.

ty @all.

ill try this all later. now i have to install 6 servers :(

its bullshit what i do, every time that i begin to finishing the rally mod, is there a new problem & i dont have time for rally. :-|

2day added 10 sounds & the only one problem is this one here. i hope this will work. i tried this with EF_FadeClientVolume too


All times are GMT -4. The time now is 01:26.

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