XDM CHARACTER VOICE SYSTEM In XDM you can set custom voice to your character using "voicename" command or advanced settings dialog. The concept is simple: you can customize your character by setting model, skin and voice. To say a voice phrase, use any available "say" command. Just use this special text format: $phrasename [variant] [Recipient name] Where "variant" is a specific number (0 to 80) or -1 to be randomised. Both [] parameters are optional. To create a voice pack, do the following. - Choose voice name to be used as ID No spaces or special characters. e.g. "male1" - Create directory for your voice files sound/voice/ e.g. sound/voice/male1 - Put all WAV files into your voice ID directory NOTE: Half-Life only allows 8-bit sounds to be used with mouth controller! Name them carefully because phrase ID == wav filename. Not spaces or special characters in names. e.g. "sound/voice/male1/hello.wav" If you want to make sounds for multiple languages, but them in respective subdirectories. e.g. "sound/voice/male1/english/hello.wav" "sound/voice/male1/russian/hello.wav" - Create files containing text to say File should be named messages_.txt e.g. "sound/voice/male1/messages_english.txt" You can write scripts for as many languages as you want. Files are chosen by the game based on cl_language setting. File format is the following: "lang" { "Language" "english" "Tokens" { "greeting" "Hello!" "positive" "Alright!" "negative" "No way!" "ack" "Got it!" "help" "Help me!" "flagtake" "I've got the flag!" "cpsecure" "Control point secured" } } Here left part is the phrase and the WAV name, and the right part is the text to display. - Create index.txt file in your voice directory e.g. "sound/voice/male1/index.txt" It can contain certain options: BaseDirectory "scientist" - use this to override sound directory for this voice. Useful for Half-Life characters like Barney. SoundPitch 100 - set sound pitch And after that follows the list of mandatory standard messages. Format is "messagename" "phrasename1,phrasename2,...phrasenameN" Any standard message can contain multiple variants (up to 80) which are listed to the right, separated by comma. Order of variants is important because everyone must see and hear the same message. "greeting" "hello1,hello2,yo,wassup" "positive" "gotit,ok" "win" ... * FOR EXAMPLE, MORE HELP AND FULL LISTING SEE * common/index.txt