local dependant music

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Hell_Soldier
Sergeant
Posts: 74
Joined: Tue Aug 24, 2004 7:40 pm

local dependant music

Post by Hell_Soldier »

how can i add local dependant music to my map using mp3 files?
i tried doing that with triggers and ambient sound but when somebody trigger the music it changes for everyone on the map and i want it to change for only ppl who trigger it.

is it possible to do?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

nope

Post by tltrude »

Normally not in multiplayer. However, have a look at "mp_ambient2" on my webpage (click on my signature logo).

Image
Tom Trude,

Image
Hell_Soldier
Sergeant
Posts: 74
Joined: Tue Aug 24, 2004 7:40 pm

Post by Hell_Soldier »

can it be done with mp3 files? or only wave files?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

yes

Post by tltrude »

Yes, it hides the speaker entity, so the file stops playing for the player that is inside the vis_leafgroup.
Tom Trude,

Image
Hell_Soldier
Sergeant
Posts: 74
Joined: Tue Aug 24, 2004 7:40 pm

Post by Hell_Soldier »

yes? what do u mean?
yes it can be done with mp3 files? or yes it can be done only with wave files?
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

will it work if the vis brushes are scripted?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

file

Post by tltrude »

What I am saying is it does not matter what type of sound file the speaker entity is playing. Vis_leafgroup brushes will hide the speaker, and a hidden speaker can't play a sound file.

Vis only works after the map has been compiled, so I don't think scripting a vis_leafgroup entity (like a trigger) will work.
Tom Trude,

Image
Post Reply