Raised This Month: $51 Target: $400
 12% 

Emitting a sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 02-07-2013 , 04:53   Emitting a sound
Reply With Quote #1

I haven't coded for a long time now, so I am getting rusty as hell.

I want to emit a sound from a player, and I want other players to hear it, like it decays over the distance between the player who emitted the sound and the one hearing it, just like the guy actually says the sound.

Since the funcwiki got lost there isn't much to learn on there, it only shows the syntax.

I am guessing I need to use the channel voice. I am using this:

PHP Code:
emit_sound(idCHAN_VOICEgDukeStart1.0ATTN_NORM0PITCH_NORM
I can't test it for quite some time, so it would be nice to know.
__________________
No idea what to write here...

Last edited by Jelle; 02-07-2013 at 04:54.
Jelle is offline
Send a message via MSN to Jelle
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-07-2013 , 07:35   Re: Emitting a sound
Reply With Quote #2

Quote:
I can't test it for quite some time, so it would be nice to know.
Actually if you can't test, you can't code.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 02-08-2013 , 04:28   Re: Emitting a sound
Reply With Quote #3

Quote:
Originally Posted by naven View Post
Actually if you can't test, you can't code.
I have written almost the whole thing, all I need is this emit sound thing.

i can test, just not for some time since I won't be able to be at a computer which has a server and a client installed.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
P1raten
Senior Member
Join Date: Feb 2010
Old 02-08-2013 , 05:20   Re: Re: Emitting a sound
Reply With Quote #4

Quote:
Originally Posted by naven View Post
Actually if you can't test, you can't code.
What...?
__________________
No salvation. Only madness.
P1raten 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 07:15.


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