Raised This Month: $ Target: $400
 0% 

i need help with playing sound(dynamic volume)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 09-22-2007 , 04:36   i need help with playing sound(dynamic volume)
Reply With Quote #1

i want to play a sound only to one player(other player cant hear it) and be able to set the volume of this sound need this for flashbang effect, that will play the shock sound at dynamic volume depending on distance from exploding flashbang
__________________
Voi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-22-2007 , 05:12   Re: i need help with playing sound(dynamic volume)
Reply With Quote #2

You can already do that with emit_soud(). The volume of sounds is dynamic depending on distance of players.

Now you want the sound heard only by a player. I don't know how to do that...
__________________
Arkshine is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-22-2007 , 05:32   Re: i need help with playing sound(dynamic volume)
Reply With Quote #3

Set the index of player, and the channel to "CHAN_AUTO", should emit the sound only for that player.

@voi - for what you look, you must emit the sound from "FlashBang" ent... emit_sound(ent...), and CHAN_VOICE...
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 09-22-2007 at 05:43.
Alka is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 09-23-2007 , 17:42   Re: i need help with playing sound(dynamic volume)
Reply With Quote #4

Quote:
Originally Posted by Alka View Post
Set the index of player, and the channel to "CHAN_AUTO", should emit the sound only for that player.

@voi - for what you look, you must emit the sound from "FlashBang" ent... emit_sound(ent...), and CHAN_VOICE...
doesnt work, what is attenuation ?
__________________
Voi is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 09-22-2007 , 05:33   Re: i need help with playing sound(dynamic volume)
Reply With Quote #5

yes it would be handy if SendAudio got a volume info like it has pitch info...
__________________
Voi is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-24-2007 , 03:25   Re: i need help with playing sound(dynamic volume)
Reply With Quote #6

Nonono my friend, look no further.

The grenade effect master, diamond-optic, has already conquered this mountain in DoD Shellshock:
http://dodplugins.net/forums/showthread.php?t=56

Check out his code for the volume stuff. It drops your volume level and even gives you this crazy effect where it seems like the footsteps are all around you and you literally feel dizzy. I don't even know how he does it; but it's in the code.

EDIT: and yeah, it's friggin compatible with your mod..cs, ts, BS, whatever
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 09-25-2007 , 18:00   Re: i need help with playing sound(dynamic volume)
Reply With Quote #7

ive done that all by myself, but i dont wanna mess with someones volume, just stopsound, play loud concussion sound(in volume dependable of distance to flashbang) and really psychodelic echo effects
__________________
Voi is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-25-2007 , 18:40   Re: i need help with playing sound(dynamic volume)
Reply With Quote #8

...then do it.

Like I said, it's all in that plugin I linked...
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
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 16:02.


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