Forum

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

English Music playlist

4 replies
To the start Previous 1 Next To the start

old Music playlist

zjorz
User Off Offline

Quote
Hello all,

I'm working on a goldeneye map for cs2d and i would like to add the multiplayer soundtracks from goldeneye 64.

Is it possible to add up to 12 soundtracks to the map?

I would like them to play in a random order so it wont become repetitive. Is this possible?

Thanks,
Zjorz

old Re: Music playlist

buraxia3
User Off Offline

Quote
You can add how much if you want music. But remember if you open server online if files are big then its too hard to join your server.

old Re: Music playlist

Jela331
User Off Offline

Quote
You can add it but don't add whole music or big musics.
Best music weight for CS2D(1kb-1000kb)

old Re: Music playlist

zjorz
User Off Offline

Quote
How can i add multiple soundtracks? i know the trigger env_sound, but it only allows 1 ogg file.

old Re: Music playlist

Apache uwu
User Off Offline

Quote
You can try with lua...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mysounds={"sfx/porns.ogg","sfx/coolmusics.ogg","sfx/awesomemusic.ogg","9000.ogg"}

addhook("second","_second")
   
function play_random()
	i=math.random(1,#mysounds)
	parse("sv_sound \""..mysounds[i].."\"")
end

i=0
function _second()
	i=i+1
	if i>=60 then
		i=0
		play_random()
	end
end
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview