Raised This Month: $ Target: $400
 0% 

[Solved]Spk/Speak Volume-Undesired Outcome Ingame


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 02-11-2013 , 08:37   Re: Volume for spk does not take effect ingame.
Reply With Quote #5

Quote:
Originally Posted by dejan View Post
if you want to play the sound for everybody set index to 0

if you want to config emit_sound how you want it click Here
I don't think that's correct. The first parameter is the index of an entity the sound should come from, if it's 0, the server will most likely crash or you'll get an error in the log. If you want to play it for everyone, use the client command spk or find an entity that could be used for this.


Quote:
Fine enough.. but as a final to this call of help. I would like to know why [spk] command doesn't apply the volume parameter, if anyone knows? and why emit_sound is better in the situation of emitting rain ambience sound is better than spk?
The spk command plays a sound for the player, it uses the volume from their settings. emit_sound is not better for such things overall - first off if this sound wasn't already precached, you'd have to use precache_sound instead of precache_generic and more easily fill up your 512 precache limit. spk also allows the clients to stop the sound by using the stopsound command - you should select which to use while taking these two facts in mind.

Last edited by Backstabnoob; 02-11-2013 at 08:40.
Backstabnoob is offline
 



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 20:36.


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