Raised This Month: $ Target: $400
 0% 

How I can make sound on the mapa?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DavidJr
Senior Member
Join Date: Apr 2012
Old 01-14-2014 , 09:42   Re: How I can make sound on the mapa?
Reply With Quote #1

Use SND_STOP
PHP Code:
emit_sound(entCHAN_STATIC"ambience/alien_beacon.wav"VOL_NORMATTN_NORMSND_STOPPITCH_NORM
__________________
What are you looking for here?
DavidJr is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-14-2014 , 10:05   Re: How I can make sound on the mapa?
Reply With Quote #2

Quote:
Originally Posted by DavidJr View Post
Use SND_STOP
PHP Code:
emit_sound(entCHAN_STATIC"ambience/alien_beacon.wav"VOL_NORMATTN_NORMSND_STOPPITCH_NORM
[B][I]tnx +[/I][/B]

Quote:
Originally Posted by DavidJr View Post
You can use emit sound
PHP Code:
emit_sound(indexchannel, const fileFloat:volumeFloat:attnflagspitch); 
[B][I]now I understand you )[/I][/B]

Last edited by YamiKaitou; 01-14-2014 at 17:45.
ZASTRELIS is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-14-2014 , 11:05   Re: How I can make sound on the mapa?
Reply With Quote #3

[B][I]little offtop: how I can stop sounds in winter environment via emit_sound?[/I][/B]

Code:
public logevent_BombPlanted(){     emit_sound(0, CHAN_AUTO, "radio/bombpl.wav", VOL_NORM, ATTN_NORM, SND_STOP, PITCH_NORM)     emit_sound(0, CHAN_AUTO, g_szBombSounds[0], VOL_NORM, ATTN_NORM, 0, PITCH_NORM); }
[B][I]this method didn't load? Because SND_STOP is too early?[/I][/B]

Last edited by YamiKaitou; 01-14-2014 at 17:45.
ZASTRELIS 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 10:07.


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