Alliedassault           
FAQ Calendar Search Today's Posts Mark Forums Read
Go Back   Alliedassault > FPS Gaming General Discussion > MoH Maps, Mods & Skins
Reload this Page Radio: Sound Emitter
MoH Maps, Mods & Skins Discuss custom maps, skins and mods here.

Reply
 
Thread Tools Display Modes
Radio: Sound Emitter
Old
  (#1)
ThinIce is Offline
Senior Member
 
Posts: 521
Join Date: May 2002
Location: Bathroom
 Send a message via ICQ to ThinIce Send a message via AIM to ThinIce  
Default Radio: Sound Emitter - 10-12-2002, 11:10 PM

Can somone help me, say I want to place a radio on my map. And I want it to play some sound, looping over and over again, how would I do that? Is there a script command?

cry:
  
Reply With Quote
Old
  (#2)
Crizz is Offline
Member
 
Posts: 52
Join Date: Sep 2002
Location: Vienna, Austria
   
Default 10-13-2002, 06:15 AM

I´ve some ambient sounds in DesertBase_final / sandstorm!

I have placed a soundspeaker next to the radio and targeted it to a trigger multiple all (inside the entire room) So when you spawn in that room or enter the room you trigger the radio.

Then enter this in your .scr file (these lines are directly from my .scr file (radio_1 = targetname for your speaker):

level waittill spawn

thread sound_fx

-----------------------

sound_fx:

thread radio_1
thread radio_2

end


radio_1:

$radio_1 waittill trigger
$radio_1 loopsound m2l2b_radio1

end

radio_2:

$radio_2 waittill trigger
$radio_2 loopsound m2l2a_radio2

end

If you don´t hear a radio sound then use an Ubersound.scr that allows all sounds in all gamemodes! BUT use only one in your main folder (beware of hidden Ubersound files in custom maps) -> More than one modified Ubersound.scr in your Main folder will mess up the sounds again!!

There may be other ways to include ambient sounds, but I found this an easy way and it will play the sound only when you enter a trigger field. So it´s more CPU friendly.
You could even break up the loop and let the trigger check again if you´re near the radio before playing a loop again. The CPU will say thank you ;-)

radio_1:

$radio_1 waittill trigger
$radio_1 loopsound m2l2b_radio1
wait 5
$radio_1 stoploopsound
wait 1
goto radio_1

end

sound will play 5 secs, stop for one sec, check the trigger and starts again if you´re inside the trigger. If not it will be silent!
Works great for crickets, some radio sounds. Not so good for machine sound loops etc. as minimum is 0.1 sec for the wait time.

Crizz
  
Reply With Quote
Old
  (#3)
ThinIce is Offline
Senior Member
 
Posts: 521
Join Date: May 2002
Location: Bathroom
 Send a message via ICQ to ThinIce Send a message via AIM to ThinIce  
Default 10-13-2002, 03:37 PM

Thank you sound god :P
You've helped me a heap!
  
Reply With Quote
Old
  (#4)
divaid2001 is Offline
Senior Member
 
Posts: 112
Join Date: Jun 2002
   
Default 10-15-2002, 05:26 AM

doesn't work by me!

I made a sound_speaker, gave it a targetname of radio_1 and target t15.
I made a trigger_multipleall and give it a targetname of t15 so they are linked together.
I exactly copied your script, but I get that fatal error script in the game. you know what I mean, no weapons, no planes, nothing works.
  
Reply With Quote
Old
  (#5)
Crizz is Offline
Member
 
Posts: 52
Join Date: Sep 2002
Location: Vienna, Austria
   
Default 10-15-2002, 07:44 AM

Only apply targetname radio_1 to the radio and target radio_1 to the trigger_multipleall! The arrow must point from the trigger to the radio.
You´ve targeted the radio to the trigger -> wrong direction!
And no need for a t15 or similar.

Crizz
  
Reply With Quote
Old
  (#6)
divaid2001 is Offline
Senior Member
 
Posts: 112
Join Date: Jun 2002
   
Default 10-15-2002, 09:17 AM

thanks man!
  
Reply With Quote
Old
  (#7)
divaid2001 is Offline
Senior Member
 
Posts: 112
Join Date: Jun 2002
   
Default 10-15-2002, 10:04 AM

goddamnit, still don't work. ah, never mind, everything I try, failes, I think i quit mapping
  
Reply With Quote
Old
  (#8)
Crizz is Offline
Member
 
Posts: 52
Join Date: Sep 2002
Location: Vienna, Austria
   
Default 10-15-2002, 11:28 AM

NO!!!! Bad idea!

Gimme a mail address and I send you an example file + script! No prob!

Crizz
  
Reply With Quote
Old
  (#9)
ThinIce is Offline
Senior Member
 
Posts: 521
Join Date: May 2002
Location: Bathroom
 Send a message via ICQ to ThinIce Send a message via AIM to ThinIce  
Default 10-15-2002, 11:43 AM

Don't use the speaker, make a script object.
  
Reply With Quote
Old
  (#10)
Crizz is Offline
Member
 
Posts: 52
Join Date: Sep 2002
Location: Vienna, Austria
   
Default 10-15-2002, 11:52 AM

Maybe! I´ve used sound_speaker in DB_final / Sandstorm and it works just fine. Script_object should also do the trick, haven´t tried it!
  
Reply With Quote
Reply


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

Forum Jump



Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBulletin Skin developed by: vBStyles.com
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.