Notices

Go Back   FileFront Forums > The Games! > Return to Castle Wolfenstein > RtCW Modding, Mapping and Editing

Remember Me?

RtCW Modding, Mapping and Editing
Want more info about a Mod? Making a Mod? Looking for Modders, Mappers, Skinners, etc.? This is your Spot!

Reply
 
LinkBack Thread Tools Display Modes
Old February 27th, 2003   #1
I don't spend enough time here
 
Hellion's Avatar
 
Join Date: November 9th, 2002
27 posts, 0 likes.
Rep Power: 0
Hellion is a n00b
Default Question about sound.

Hello. I'd like to set my map so that when the objective is taken, the background music changes. I know this will probably have to be done in the script. I have searched the tutorials and none have an explaination of this.

I have a few target_speaker entities in the map, so when objective is taken I'd like another target_speaker to play, I will make it global by setting the radius high. So I need the other ones to turn off and this one to turn on when OBJ taken.

I understand how to use the accum tag in a script file, but how do I set the accum tag to reference the target speaker?

Or if there is another way, please let me know

Thanks

"Rock N Roll Ain't Noise Pollution"
Hellion is offline   Reply With Quote
Old February 28th, 2003   #2
Master of destruction
 
HotShot's Avatar
 
Join Date: October 1st, 2001
Status: Available
158 posts, 0 likes.
Rep Power: 0
HotShot is a n00b
Default

ok im not 100% sure but you should beable to do it in the script, I havent had a propper look and aint been able to try it. But it might work.

In your script you will need to put

playsound sound\sound directory\soundfile.wav

where sound directory is the folder the .wav file is and soundfile.wav is the actual wav file.

it will prob need to go after the trigge rpart of the script for the obj. I cant say exactly, ages since I did obj in a map.

If you cant get it to work lemme know i will see what I can do/find out.
HotShot is offline   Reply With Quote
Old February 28th, 2003   #3
Addicted to GF
 
cheathunter's Avatar
 
Join Date: October 19th, 2002
296 posts, 0 likes.
Rep Power: 0
cheathunter is a n00b
Default

its somewhere in here am shoure but if the obj is taken cant the music turn of and more music turn on?
cheathunter is offline   Reply With Quote
Old February 28th, 2003   #4
Master of destruction
 
HotShot's Avatar
 
Join Date: October 1st, 2001
Status: Available
158 posts, 0 likes.
Rep Power: 0
HotShot is a n00b
Default

lol niceone cheat saved me dragging it out of cd.

Anyway it looks like its the following part of the script.


trigger allied_object_stolen
{
// Change the objective state internally, so UI can update, etc.
// Allied have stolen the documents (0 == AXIS, 1 == ALLIED)
wm_set_objective_status 1 0

trigger RadioMover set_one

trigger RadioMover song_alert

trigger RadioMover only_once

}

trigger allied_object_returned
{
// Change the objective state internally, so UI can update, etc.
// Axis have returned the documents (0 == AXIS, 1 == ALLIED)
wm_set_objective_status 1 1

trigger RadioMover set_zero

trigger RadioMover back_to_norm

trigger RadioMover song_alert

Now it looks like the way its been done is by adding a target_speaker that is targeted by the objectives. So I suggest you try doing that.

You could try this in your script at the part where it says allies take obj or axis take em, which ever u got make it like the example below.

i will use allies as taking obj for this example.

trigger allied_object_stolen
playsound/soundfolder/soundfile.wav
{

Hopefully that will play a sound when allies take the obj do the same for return if you want a different sound.


boner if you wish i can take a look at the map and script and try figure it out. No promises or out but offer is there if needed.

Last edited by HotShot; February 28th, 2003 at 06:09 AM.
HotShot is offline   Reply With Quote
Old February 28th, 2003   #5
I don't spend enough time here
 
Hellion's Avatar
 
Join Date: November 9th, 2002
27 posts, 0 likes.
Rep Power: 0
Hellion is a n00b
Default

OK Hotshot, what you say night work but not for what I'm trying to do.

Let me explain a little better. I don't want to play a sound through the script file because my target_speaker is coming from an Allied truck playing only in the Allied Spawn(some good old Rock N Roll, YeeHaww!!) If I use a sound in script it would be global.

So what I need to do, is set it so that 1 accum tag turns off the sound coming from the target_speaker in Allied Spawn, and another accum tag turns on another target_speaker I have set to play music for when Allies have OBJ.

So basically, I need the script to reference the target_speakers. I'm trying some combinations of scripting and target_speaker commands, I'm sure I'll get it.

Anyway, if you have any ideas, can you let me know?
Hellion is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Question MasterHalo ST:EF Modding, Mapping and Editing 7 January 5th, 2009 11:06 AM
Sound question! Darth Zion SW:JK3 Modding, Mapping and Editing 4 May 2nd, 2006 07:58 AM
Sound Question Nictus SW:JK3 Modding, Mapping and Editing 4 February 27th, 2006 04:34 PM
Sound Question -=Goliath=- SW:JK3 Modding, Mapping and Editing 1 April 10th, 2004 11:21 AM


All times are GMT -7.







   
 





This site is part of the Defy Media Gaming network

The best serving of video game culture, since 2001. Whether you're looking for news, reviews, walkthroughs, or the biggest collection of PC gaming files on the planet, Game Front has you covered. We also make no illusions about gaming: it's supposed to be fun. Browse gaming galleries, humor lists, and honest, short-form reporting. Game on!

FileFront Forums - Terms of Service - Top
Theme Selection
Copyright © 2002-2016 Game Front. All rights reserved. Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Forum Theme by Danny King (FileTrekker), Sheepeep & Graeme(rs)
RSS Feed Widget by FeedWind