Raised This Month: $ Target: $400
 0% 

Emit Sound at origin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-20-2007 , 07:55   Emit Sound at origin?
Reply With Quote #1

Hey.

Is it possible to emit a sound from a specific origin for only one player? If so, how? The only thing I need help with is emitting the sound, not finding out the origin... Say "Player2" would emit a sound that only "Player1" could hear from "Player2"s origin

Thanks
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-20-2007 , 11:48   Re: Emit Sound at origin?
Reply With Quote #2

You can do better : make the player himself emit a sound ;)
ConnorMcLeod is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 11-20-2007 , 12:46   Re: Emit Sound at origin?
Reply With Quote #3

client_cmd( id, "spk PATH" ) // plays wave files
client_cmd( id, "mp3 play PATH" ) // playes mp3 files
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-20-2007 , 12:51   Re: Emit Sound at origin?
Reply With Quote #4

http://www.amxmodx.org/funcwiki.php?...ound&go=search
ConnorMcLeod is offline
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-20-2007 , 13:05   Re: Emit Sound at origin?
Reply With Quote #5

Quote:
Originally Posted by connorr View Post
Wouldn't that just do so all the players around him hear the sound? I want a specific player hear a sound emitting from another player, if he's close enough... not all players
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-20-2007 , 15:35   Re: Emit Sound at origin?
Reply With Quote #6

Then, like posted above, your better off just doing a client_cmd(target, "spk ^"misc/haha^"") or something
__________________
M249-M4A1 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-20-2007 , 15:45   Re: Emit Sound at origin?
Reply With Quote #7

If you want the sound to be located, you have to use emit_sound, then, all players that are close enough (depend on attenution) will here the sound.
ConnorMcLeod is offline
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-20-2007 , 15:52   Re: Emit Sound at origin?
Reply With Quote #8

Quote:
Originally Posted by connorr View Post
If you want the sound to be located, you have to use emit_sound, then, all players that are close enough (depend on attenution) will here the sound.
Yes, I know... But I don't want all the players that are close enough to hear the sound. Just a specific player... Maybe that's not possible to achieve?
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 11-20-2007 , 16:15   Re: Emit Sound at origin?
Reply With Quote #9

The way you want is posssible via client_cmd(id, "spk mysound")
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
travo
Senior Member
Join Date: Aug 2006
Old 11-22-2007 , 01:06   Re: Emit Sound at origin?
Reply With Quote #10

make a entity and move it to your origin then emit_sound at the entity
travo 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 01:17.


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