Music player in map controllable by buttons?

Daedryon

L3: Member
Dec 5, 2009
134
3
I have a Counter Strike: Source map, something like "lego jailbreak".

In the map they have a room that acts as a dance club, and there are 6 buttons you can press, and each one plays a different song (real hip hop songs) that everyone in the immediate area can hear.

As you move further away from the source, you hear less and less.

Is this possible in Team Fortress? I've got some songs I'd love to put on my server and have buttons to control them, such as "Like a Boss - Lonely Island".

It would lead to great times:

Speedhacker: I'M SPEEDHACKIN'! IM AWESOME!
Me: Oh no you didn't
*plays Like a Boss*
Me: IM THE BOSS!
*bans Speedhacker*
http://fragfestgamers.com/daedryon/
 
Last edited:

megawac

L4: Comfortable Member
Oct 2, 2009
180
29
Didnt you say the light spot was the last question?

Should be possible.

All you should need is env_soundscape(s) and a func_button(s) that trigger one soundscape and turns off the other five.

Seeing its your server you have to allow +use console command, not sure the cvar youll have to find it
 

Daedryon

L3: Member
Dec 5, 2009
134
3
Alright. I found a guide on FPSBANANA, about using buttons to play sounds, and I think I've pretty much got everything setup.

However, since the sound my button plays is Like a Boss by The Lonely Island, how will players on my server hear it?

Do I upload the file to my server somewhere?

I need to know how to make sure people on my server can hear the song play when I shoot the button, but I can't figure out how to make it work on the server.
 

KarmaPolice

L3: Member
Jul 25, 2009
108
52
Alright. I found a guide on FPSBANANA, about using buttons to play sounds, and I think I've pretty much got everything setup.

However, since the sound my button plays is Like a Boss by The Lonely Island, how will players on my server hear it?

Do I upload the file to my server somewhere?

I need to know how to make sure people on my server can hear the song play when I shoot the button, but I can't figure out how to make it work on the server.

Pakrat it into the bsp, I believe.