English Stop Music

5 replies
Goto Page
To the start Previous 1 Next To the start
21.12.17 01:03:54 pm
Up
CrazyPenguin
User
Offline Off
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 ?
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
21.12.17 01:35:45 pm
Up
Promaster
User
Offline Off
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
IMG:https://image.prntscr.com/image/J20O66l1RQGtFLeN9dmW6g.png
Patch 13.1! Updated. 2018-02-14
21.12.17 01:57:39 pm
Up
CrazyPenguin
User
Offline Off
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
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
21.12.17 02:33:01 pm
Up
EngiN33R
Moderator
Offline Off
@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.
I code, therefore I exist.
21.12.17 03:16:30 pm
Up
apex2d
User
Offline Off
user Promaster has written:
The lua code is bugged by cs2d, i have already reported it since 1.0.0.4.


You're bugged man
Eat Sleep Conquer Repeat. www.Radeon2D.forumid.net
22.12.17 07:10:12 am
Up
Rainoth
Moderator
Offline Off
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