Voice Chat Support

About

We've enabled voice commands in Freeze Tag.  Two files are now loaded.  They are scripts/female4.voice 
and scripts/male6.voice.  These are the only configuration files loaded into memory currently.  What this 
means is that all great voice commands already in the game can now actually be used!  The voice 
commands we've added (as examples) are:

yes
no
praise
onfollow
help
helping

More commands should be added but we want to keep file size small right now (for official release).

How to Use

To send a voice, just do "vsay_team yes", for example.  This will play the sound "Affirmative" and also 
type out "Affirmative".  If you wanted to send voices without text you would do "vosay_team yes", for 
example, which would only play the sound "Affirmative", but no text would print.

bind x "vosay_team help;say_team I'm frozen here!"

With this you would hear "I'm frozen!" (without text) but would read "I'm frozen here" (also showing 
location like regular talking does).

bind x "vtell_target onfollow" would send "I'm following." and play that sound to whomever you happen to 
be looking at.

Configure Voice Chats

In the client console window you may configure these:  cg_teamChatsOnly, cg_noVoiceChats, and 
cg_noVoiceText.

Make Your Own

A .pk3 file can be opened by WinZip.  Open up freeze0.pk3, which is the client package.  In the scripts 
directory you will find female4.voice and male6.voice.  These files are text that's easy to read.  They simply 
list the voice command and the list of .wav files to randomly choose from (with text sent to console during 
game) for each command.  If you wanted to add a new sound to this list you might insert this:

death_insult
{
	sound/voices/female4/death_insult.wav	"Lucky shot"
}

The file name and its path can really be anything.  I was just trying to follow convention when I made 
mine.  The .wav files are 22 kHz 8-bit mono.  You could use Microsoft's Sound Recorder and GoldWave 
(www.goldwave.com) to make yours.

Realize that if you want other people to hear your sounds then they too must have the files.  If they don't, 
and they are trying to connect to a server set at sv_pure 1, then they will be forced to download them.  
sv_pure 1 means that only the .pk3 files that the server has loaded are clients allowed to load.

Also, respect copyright laws!

Credits

Female voice by Karla Palmer (http://www.93rock.net/hikarla.htm), male voice by Jeff "Tacos" Wros.
Final production by Tacos.  Thanks for putting up with all my requests, Tacos!

Thanks to Coal Shaft for helping with initial sounds (squeezing file size down).
Thanks to Redder for letting me use his voice for initial testing.
