Raised This Month: $ Target: $400
 0% 

Explication please


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 10-09-2009 , 08:35   Explication please
Reply With Quote #1

wath is the diferencte betwen these:

Code:
emit_sound( id, CHAN_STATIC, "sound", 1.0, ATTN_NORM, 0, PITCH_NORM );
Code:
emit_sound( id, CHAN_ITEM, "sound", 0.6, ATTN_NORM, 0, PITCH_NORM );
Code:
emit_sound(novaDisplay[id],CHAN_BODY,"warcraft3/impalelaunch1.wav",1.0,ATTN_NORM,0,PITCH_LOW);
Y would really apreciate if someone helps me (+ Karma)
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
Old 10-09-2009, 08:42
xPaw
This message has been deleted by xPaw.
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 10-09-2009 , 08:46   Re: Explication please
Reply With Quote #2

To my understanding it works like this:

There are several channels for sounds to be emitted by an entity. Let's take footsteps and weapon sounds. These two sounds can be emitted (and therefore heard by other players) simultanuously as they are assigned to the different channels CHAN_BODY and CHAN_WEAPON. Now there comes a third sound - jumping. This sound will also be assigned to CHAN_BODY and therefore the "old" sound (the footstep) that was played at the same time would stop and only the jump sound can be heard.

So, basically, you only have a limited amout of channels and therefore only a limited possibility of sounds being played from an entity at the same time.


- Don't take that for granted but I think I'm right
__________________
In Flames we trust!
Nextra is offline
Old 10-09-2009, 08:57
Nextra
This message has been deleted by Nextra. Reason: Forum lag -> Double post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2009 , 10:32   Re: Explication please
Reply With Quote #3

If i'm right you can emit up to 16 or 32 sounds at once. ( see HLSDK ) But for sure you have a limited number of channel.
__________________

Last edited by Arkshine; 10-09-2009 at 10:37.
Arkshine is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 10-10-2009 , 06:01   Re: Explication please
Reply With Quote #4

If that's the case not all of them can be used by AMXMod?
There are only around 10 CHAN_ constants afair.

And I only gave an example for 2 chans, of course there are more (amxconst.inc).
__________________
In Flames we trust!
Nextra 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 22:31.


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