Raised This Month: $ Target: $400
 0% 

Sound issue. TF2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
V0gelz
Senior Member
Join Date: Jun 2004
Old 04-04-2008 , 19:17   Sound issue. TF2
Reply With Quote #1

Well it seems that sounds that are custom can't be played or something from a tf2 server. I tryed like this:
Code:
// Sounds
new String:meep_1[] = "misc/meepmeep/rrtong.mp3";
new String:meep_2[] = "misc/meepmeep/speedy.mp3";

public OnMapStart()
{
	PrecacheSound( meep_1, true);
	PrecacheSound( meep_2, true);
}

And play with
EmitSoundToAll(meep_2);
And this works on a cs source server but not on a tf2 server.
The clients error is:
Failed to load sound "misc\meepmeep\speedy.mp3", file probably missing from disk/repository.

Even tough it is in there sound folder and it do the same test on a css server and it doesn't give that error and it plays the sound. I'm lost lol. Or there is some problem with sm itself? i don't have any clue.

Thanks in advance.
__________________
V0gelz is offline
V0gelz
Senior Member
Join Date: Jun 2004
Old 04-05-2008 , 12:58   Re: Sound issue. TF2
Reply With Quote #2

No one has a clue? :p
__________________
V0gelz is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 04-05-2008 , 13:55   Re: Sound issue. TF2
Reply With Quote #3

For some reason you need to tell the server to add it to the downloads table using
Code:
AddFileToDownloadsTable(FILE)
ex:
Code:
Code:
#define file "misc/somewave.wav"
public OnMapStart() {
     PrecacheSound(file)
     decl String:dlFile[64]
     Format(dlFile, 63, "sound/%s", file)
     AddFileToDownloadsTable(dlFile)
}
__________________

Last edited by toazron1; 04-05-2008 at 14:09.
toazron1 is offline
Send a message via AIM to toazron1
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 20:47.


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