Forum

> > CS2D > Maps/Editor > Stop Music
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Stop Music

5 replies
To the start Previous 1 Next To the start

old Stop Music

CrazyPenguin
User Off Offline

Quote
I have 4 buttons each play different type of music

But when I press a button to start 1 song it keeps playing that song without stop when I press another song button

I want them to loop but I want the song that is currently playing to stop when a button is pressed for another song, so the other song starts playing

How do I do this in map edit without lua script code ?

old Re: Stop Music

Promaster
User Off Offline

Quote
The lua code is bugged by cs2d, i have already reported it since 1.0.0.4.

The cs2d developing team seems like not caring to fix that bug either, so just wait til they fix it, maybe in 2 years idk

old Re: Stop Music

CrazyPenguin
User Off Offline

Quote
wow ok

well that is quite disappointing

I will have to make a kill zone or a wall on other buttons once one is pressed so you can only choose 1 song during 1 round

old Re: Stop Music

EngiN33R
Moderator Off Offline

Quote
@user Promaster: The cs2d cmd sv_stopsound command is not bugged, you simply need to quote the sound name (change
sv_stopsound sound.ogg 1
to
sv_stopsound "sound.ogg" 1
). This is due to the way the CS2D command parser parses string arguments.

@user CrazyPenguin: Unfortunately there's no way to do what you're asking using purely env_sound, but it's trivial to implement using Lua.

old Re: Stop Music

Rainoth
Moderator Off Offline

Quote
Do this

Ent1:
A
B,C,song1

Ent2:
B
A,C,song2

Ent3:
C
A,B,song3

Good luck.
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview