#1 2014-06-26 17:59:09

hunds
Member

How to create a sound

I want to create a soun in my map, how to do that ?
Cube 2 editing reference dint't helped me that much, can someone teach me how to create a sound ?

Offline

#2 2014-06-26 22:21:53

Hypernova^
Member

Re: How to create a sound

Do you mean "How to create a sound file?" or "How to load a sound file in my map?" Perhaps I can help.

Offline

#3 2014-06-26 22:53:46

hunds
Member

Re: How to create a sound

How to load a sound file on my map...?
Every time i try, appears something about unregistered sound, i all i want is to put the sound file Cityscape02 on my map, how to do that ????

Offline

#4 2014-06-26 23:41:22

Hypernova^
Member

Re: How to create a sound

First of all, create a file named [yourmapname].cfg and place it with your map .ogz file. Next, add to the .cfg file:

registersound [path to sound file]

...and save the .cfg file. Now you can load your map and use the command: newent sound [your sound id ]

To find your sound id, locate the sounds.cfg file where all the game sounds are registered. Your sound id will be one number higher than the last sound registered in the sounds.cfg file. I'm not a mapper by any means, but I hope that helped!

Last edited by Hypernova^ (2014-06-26 23:41:50)

Offline

#5 2014-06-26 23:50:56

hunds
Member

Re: How to create a sound

Thanks, i made it :D

Offline

#6 2014-06-27 21:08:54

Calinou
Moderator

Re: How to create a sound

The sound entity has 3 settings: ID, radius and size. The first one is the ID of the sound (0 is the first registered one), the second one determines the area over which the sound will be hearable, the third one sets the fading of the sound (higher is faster fading, if it's the same as the radius, the sound doesn't fade).

Last edited by Calinou (2014-06-27 21:09:28)

Offline

Board footer