Author |
Topic: making added sounds local vs. playing on the entire map |
blmeanie |
General Member Since: Mar 13, 2005 Posts: 196 Last: Mar 31, 2009 [view latest posts] |
|
|
Category: CoD2 MP Mapping Posted: Tuesday, Jul. 31, 2007 01:27 am |
|
between following tutorials and examples from downloaded custom maps, I have been able to get some sounds playing.
I cannot get them localized with a radius though.
This is my soundalias csv:
radio1,,misc/paper.mp3,0.5,1,,,,1,50,local,streamed,,looping,,,,,,,,,,,
This is my gsc that calls it:
main()
{
setCullFog (0, 10000, 0.6, 0.6, 0.6, 0 );
ambientPlay("ambient_mp_carentan");
maps\mp\_breakwindow::window_think();
maps\mp\_load::main();
maps\mp\mp_tribute_fx::main();
game["allies"] = "american";
game["axis"] = "german";
game["american_soldiertype"] = "airborne";
game["american_soldiervariation"] = "normal";
game["german_soldiertype"] = "wehrmacht";
game["german_soldiervariation"] = "normal";
game["attackers"] = "allies";
game["defenders"] = "axis";
getent ("radio1","targetname") playloopsound ("radio1");
}
Any help would be appreciated, thanks.
edited on Jul. 30, 2007 09:27 pm by blmeanie |
|
|
|
The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
|
blmeanie |
General Member Since: Mar 13, 2005 Posts: 196 Last: Mar 31, 2009 [view latest posts] |
|
|
Category: CoD2 MP Mapping Posted: Tuesday, Jul. 31, 2007 11:07 am |
|
The_Caretaker writes...Quote: try setting it to auto instead of local.
cool, that worked.
Is there a way to make the sound radius controlled or stopped by walls or do walls automatically provide a buffer? |
|
|
|
The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
|
the4threich |
General Member Since: May 28, 2006 Posts: 70 Last: Jan 25, 2008 [view latest posts] |
|
|
Category: CoD2 MP Mapping Posted: Friday, Aug. 10, 2007 06:41 pm |
|
Can someone help me out here, not one of my mp3's will play, they are coverted to
22050hz
16bit mono
It will play all my .wav files but not a single mp3 file. The problem with .wav files is the size, the same options on mp3 is like 300kb while the wav is like 5mb. I've tried changing the settings, i.e., local to streamed, etc. Nothing has worked, i can get the mp3 to play over the entire map but i don't want that. Here is my csv file.
Code: name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage
#Ambiance
ambient_mp_desert,,ambient/amb_africa01b.mp3,0.63,,,,,,,local,streamed,,looping,,mp_desert
#My Sounds,,,,,,,,,,,,,,,
soldiers,,misc/oursoldiersneverdie.mp3,0.5,1,,,,1,50,auto,streamed,,looping,,,,,,,,,,, |
|
|
|
94sniper |
|
General Member Since: Jun 15, 2007 Posts: 907 Last: Jun 22, 2009 [view latest posts] |
|
|
Category: CoD2 MP Mapping Posted: Friday, Aug. 10, 2007 07:03 pm |
|
|
|
|
|
the4threich |
General Member Since: May 28, 2006 Posts: 70 Last: Jan 25, 2008 [view latest posts] |
|
|
Category: CoD2 MP Mapping Posted: Friday, Aug. 10, 2007 07:29 pm |
|
LOL, good one.
I got it to work, this is what i have now and it worked. I also shortened up the name, not sure if that had anything to do with it or not.
soldiers,,misc/osnd.mp3,0.85,1,,,,50,500,auto,streamed,,looping,,mp_desert,,,,,,,
|
|
|
|
The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
|
94sniper |
|
General Member Since: Jun 15, 2007 Posts: 907 Last: Jun 22, 2009 [view latest posts] |
|
|
|
the4threich |
General Member Since: May 28, 2006 Posts: 70 Last: Jan 25, 2008 [view latest posts] |
|
|
|