Posts: 22
Threads: 5
Joined: Oct 2012
Reputation:
0
I want to replace sound effects like captured flag sound, with a new one. so I can use playsound() to play the sound at a specific event.
But how?
Also, where should I put the new sound file in my mod folder? Should it be along with the "maps" folder?
Posts: 2,157
Threads: 120
Joined: Apr 2011
Reputation:
71
All the sounds are located in the .IWD files that are in the "main" folder. Locate the sound file you want to change. In your mod folder, create the same type of folders, and place the new sound file in that place. Rename the new file to the game sound.
An example:
1. I have o_fortuna.mp3 and want it to be the menu theme music.
2. I check the .IWD files, and find the menu theme song to be in sound\music\menumusic.mp3.
3. I then create the folders sound\music in my mods folder.
4. I place o_fortuna.mp3 in that folder, and rename it to menumusic.mp3.
Note that the mod then has to be in an .IWD format in order for this to work.
Posts: 22
Threads: 5
Joined: Oct 2012
Reputation:
0
I don't think that this will easily allow me to play the sound effect at a specific event using the playSound() command. You should probably know that this sound effect is no more than 3 seconds.
I remember playing a mod where the uncommon sound effects of the game is replaced by a custom one, but I can't seem to find it now.
Posts: 22
Threads: 5
Joined: Oct 2012
Reputation:
0
Well, after hours of hard-work
I came to know that I might have used the wrong names for the sound effects
I finally solved this by myself.