Forum

> > CS2D > Maps/Editor > Bomb planted sound
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Bomb planted sound

9 replies
To the start Previous 1 Next To the start

old Bomb planted sound

Biusem
User Off Offline

Quote
So i was editing a map and i wanted to make a sound when the bomb is planted... So yea.. how do you do it? i've made a sound etity so far (greatest achievment of ma leif )
Thanks
Le noob at lua




P.S. sarcasm in that sentence of achievment

old Re: Bomb planted sound

Gaios
Reviewer Off Offline

Quote
Sound "Bomb has been planted" is automaticly play when you play in standard mode.

old Re: Bomb planted sound

VADemon
User Off Offline

Quote
cs2d lua hook bombplant it's so simple, you'll be able to make it.

Don't you want to try to do it yourself?
Spoiler >

old Re: Bomb planted sound

Biusem
User Off Offline

Quote
@user VADemon: So what do i need in order to change the sound? i know i need to find the name of the file, but do i need to put the directory of it or what?

old Re: Bomb planted sound

GeoB99
Moderator Off Offline

Quote
Just change the path parameter of cs2d cmd sv_sound. Of course, the path destination must be correct otherwise you'll get an error that either the file is corrupt or the path file doesn't exist.

old Re: Bomb planted sound

Biusem
User Off Offline

Quote
@user GeoB99: I couldn't understand you sorry... but sometimes lua just makes my mind internet explorer...
can you formulate it so i can understand? like for example change the code... Sorry i am puttin you up but i am really shit :<

old Re: Bomb planted sound

GeoB99
Moderator Off Offline

Quote
I don't get how it can be so difficult to understand. It's quite self explanatory at how you should do and it takes like few seconds to do this simple step.

Anyways, as you want how to change a file sound with another, we have to look at this line:
1
parse("sv_sound fun/thats_the_way.wav")
Our main focus is the path parameter of the file, therefor the path is inside the cs2d cmd sv_sound which is fun/thats_the_way.wav. Usually, the sound files are relatively in sfx folder so they should stay there.
No matter if there is a subfolder inside sfx folder, the main rule is that the sounds must simply stay there!

If we have for example a file named blabla.wav inside a subfolder named test then the path destination should be like this.
1
parse("sv_sound test/blabla.wav")
That's it. No hard tasks or anything else it's just a simple one and even a kid could do that. Quite understable now?

Notice: You must use "/" (slash - without quotes) if there are separable destinations such as subfolders.
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview