Help with Radio 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
User avatar
Kate
Colour Sergeant
Posts: 83
Joined: Fri May 28, 2004 12:01 pm

Help with Radio Music

Post by Kate »

Hi again everyone :D

I have placed a radio in a room and made a dummy tik script model for the radio. followed the scripting tutorial and the radio played music yipee!!

what I need to know is if there is a radius for the music. I stand in certain parts of the room and hear the radio playing take 1 step back and the radio stops. I can also hear it if I stand directly over it on the floor above.

I would like to be able to hear it in the entire room but not the floor above. I think I can change the parameters of min distance max distance for the room but I am unsure if this will stop it reaching the floor above?

this is my 1st attempt to do a radio and it worked 1st time so I am one happy lady today :D

many thanks - Kate

PS: I wasnt sure if I should post this here or the scripting forum?
Did you miss me? ..... Well get a better sight on your gun hehehe
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

Hi ,
maybe you should try the map made by Tltrude called mp_ambient2.zip

there is radio there and i think you could find what you are looking for.

he included the .map file too

link

http://smallsumo.leveledit.com/tltrude/index.html
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

On the script model you can check off an 'ALWAYS_DRAW' or something like that box. This is in the entity window.

Yes, adjust the min and max distance, that should do it. I don't know about it not reaching the floor above though...
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Are you using jv workaround to cache the sound? If yes, find these numbers there, something like 320 2000, or a smaller number followed by a greater number. The first is when the sound starts to fade and the other is when the number fades completly. So for a radio, you can try 150 1500.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

speaker

Post by tltrude »

Your speaker entity does not have to be right over the the radio, so you can move it a little to make the sound reach all corners of the room.

The sound area is a 3d ball. so, to make it not play on the floor above, you have to stop the sound for anyone that goes up there. That can be done with a couple of vis_leafgroup brushes, as seen in the tutorial map that agentmad007 mentioned.

One small vis_leafgroup brush would go around the speaker, and a larger one would go upstairs. The large one targets the smaller one. So, when a player is inside the large one, the small one hides the speaker. In the tutorial map, that happens when a player walks inside the building--the outside speakers are hidden.

Note: My radio does not play the standard radio wave file. It uses an Mp3 and has a trigger the players can use to turn it on and off. Everyone is welcome to use anything they like from my tutorial maps. But, if you use that radio, you'll need to copy the "local.master" lines and the radio thread (for the trigger) to your script.
Tom Trude,

Image
User avatar
Kate
Colour Sergeant
Posts: 83
Joined: Fri May 28, 2004 12:01 pm

Post by Kate »

Thanks guys,

I don't quite understand vis_leafgroup brushes yet but will read up on it and look at the tutorial map. If I get stuck I will let you know :lol:

-Kate
Did you miss me? ..... Well get a better sight on your gun hehehe
Post Reply