Quote:
niklas627 said:
Hi,
I have a question.
I want to edit and add sounds to the game.
How can I add sound to the game?
Is it just to create a mp3 file and place it under the sound directory??
cheer/
niklas
|
1) Make your sound - wav, MP3 or (I think) it will eat .mid files if you want to make those
. Put it in the sounds dir.
2) Save a backup copy of sounds .ini somewhere.
3) Edit sounds.ini to give your file a sound number. If you are putting in a file to replace a stock sound, find its number e.g
sound009="9.mp3" is the INI line for game sound No. 9 and it points sound009 at the file called "9.mp3". If you have made a replacement for that file called "Mysound09.wav" then edit the line accordingly.
If it is a new sound for use in weapons or whatever in mobhack, then find a sound with null assigned (null.mo3 is a distinctive noise which is deliberate to isolate errors
. The 175-198 block should be good for that. Choose an sound number line, and point it at your new file's name instead of null.mp3.
4) Save file
5) (in mobahack if it is a replacement) - make a test unit with that sound. If it replaces a default, use something that produces that default move or shot sound or whatever it was.
6) test your sound - you may want to tweak the length, and sound characteristics etc.
Cheers
Andy