i have to add sound in local area in my map
i think that ambient sound and music play sound all the area
i tried add custom sound .mp3 file
sound played fast
it is not good to hear
can i add custom sounds by .mp3 instead of .wav?
Moderator: Moderators
Mp3's work fine, theres some sound parms which control volume, pitch and a few other things.
Heres an example:
aliascache totalwar sound/nazaire/totalwar.mp3 soundparms 1.0 0.0 0.0 0.0 500 3000 item loaded maps "dm obj"
// soundparms parameters are: <BaseVolume> <RandVolume> <BasePitch> <randPitch> <minDist> <maxDist> <Channel> <Loaded/Streamed> <Maps>
So the 4th set of numbers control the pitch ( speed ) of the mp3. Set it to 0.0 and it shouldnt deviate from the original pitch.
Heres an example:
aliascache totalwar sound/nazaire/totalwar.mp3 soundparms 1.0 0.0 0.0 0.0 500 3000 item loaded maps "dm obj"
// soundparms parameters are: <BaseVolume> <RandVolume> <BasePitch> <randPitch> <minDist> <maxDist> <Channel> <Loaded/Streamed> <Maps>
So the 4th set of numbers control the pitch ( speed ) of the mp3. Set it to 0.0 and it shouldnt deviate from the original pitch.
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
For example the path to this mp3 I have playing in my map is this:
sound/nazaire/totalwar.mp3
so just replicate this folder structure but adapted to your file names and include the folders and sound file in the pk3, the sound should play from your pk3, wont need to be outside the pk3.
sound/nazaire/totalwar.mp3
so just replicate this folder structure but adapted to your file names and include the folders and sound file in the pk3, the sound should play from your pk3, wont need to be outside the pk3.
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
I've often wondered about that, but I have had custom mp3's in 3 of my maps and no-one has complained about not hearing it. I always put them in the sound folder in my custom pk3. Could be the new workaround has solved any problems there were.
Its great having sound at last, sound is so important in imersing a player into your level.

Its great having sound at last, sound is so important in imersing a player into your level.
