Raised This Month: $ Target: $400
 0% 

AMX Speech Stuff


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-03-2013 , 02:37   Re: AMX Speech Stuff
Reply With Quote #1

You haven't answered Yami's question . . .

Quote:
Originally Posted by BLacking98 View Post
I'm adding a sound file to the "valve/sound"
Because in speech.ini the directory is predefined to "valve/sound" and not the game's default one
I put a sound like "Stop Hacking!!" "spk valve/barney/stophack"
There is no explicit reference to "valve" in speech.ini. There is a file hierarchy used by the game to search for files. So, basically, the server can just say "play <some_sound_file>" and the game first searches the mod's sound folder. If it's not there, it then searches in the valve/sound folder. (This might not be literally how it works but it's enough to understand how it effectively works)



If you are using Counter-Strike, you put your sound file in the sound folder:

Code:
/cstrike/sounds/my_new_sound.wav
Then, you put this line in speech.ini:

Code:
"Sound Description"			"spk \'my_new_sound\'"			"cd"	"u"
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-03-2013 , 02:59   Re: AMX Speech Stuff
Reply With Quote #2

Half Life list : http://www.adminmod.org/help/online/...ife_Sounds.htm

BUT, i you had an updated game, you could browse those files yourself.


Quote:
Originally Posted by fysiks View Post
You haven't answered Yami's question . . .


Then, you put this line in speech.ini:

Code:
"Sound Description"			"spk \'my_new_sound\'"			"cd"	"u"
This works fine :
Code:
"Sound Description"			"spk my_new_sound"			"cd"	"u"
You only need to put ' if you need to play few sounds in a row, under the same folder, or if you need to add arguments to command sur as volume, pitch, etc...

Like :

Code:
"spk \'vox/one second\'"
Code:
"spk \'weapons/(v10) xbow_hit1\'"
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-03-2013 at 03:02.
ConnorMcLeod 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 01:10.


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