Raised This Month: $ Target: $400
 0% 

catch sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-13-2009 , 18:03   catch sound
Reply With Quote #1

ho to catch the track & show as hp?

example :

tracks :

1.wav
2.wav
3.wav
100.wav

if track 1.wav is playing, player HP = 1
if track 20, player HP = 20

max tracks : 6
so player hp max 6
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-13-2009 , 18:49   Re: catch sound
Reply With Quote #2

you can only check emitted sounds by
FM_EmitSound(ent, iChannel, const szSample[], Float:fVolume, Float:fAttenuation, iFlags, iPitch)

commands like spk are clientside
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-13-2009 , 19:15   Re: catch sound
Reply With Quote #3

what is with the server sounds? or map sounds? i mean the sounds that nobody plays. like de_torn background sounds?!

or when u push any buttons on a map to play a sound.
or u drive a wheel.
or or or or...

or the weapon sounds...

if u have a m4a1 & shoot, the sound 1 willbe played ( m4 sound )

i mean catching this sounds & not a key or ....
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-13-2009 , 19:51   Re: catch sound
Reply With Quote #4

weapon sounds cannot be handled by FM_EmitSound although it should be emitted too.
func_buttons have a few preset sounds which can be set/get via keyvalues, costum sounds are triggered through a ambient_generic (whichs pev_targetname is the func_buttons pev_target).
background sounds should be a ambient_generic too.
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Owyn
Veteran Member
Join Date: Nov 2007
Old 07-28-2009 , 14:28   Re: catch sound
Reply With Quote #5

what can handle weapon sounds and footsteps if possible?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 07-28-2009 at 15:19.
Owyn is offline
Send a message via ICQ to Owyn
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:32.


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