Author |
Topic: Adding custom ambient sounds? |
HarryNutz |
General Member Since: May 6, 2011 Posts: 182 Last: Mar 26, 2012 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Saturday, May. 28, 2011 10:55 pm |
|
So I want to add some custom ambient sounds and tried looking for a tut and only found a single one on here and it makes no sense to me. It talks about copying different colored text and all the text in the entire damn tut is the same color. On top of that... I havent come across any code except for his, that has 5000 commas ,,,,,,,,, this and ,,,,,,,,,,,, that. I dont know... doesnt look very clean. |
|
|
|
manickiller |
General Member Since: Sep 10, 2007 Posts: 238 Last: May 30, 2011 [view latest posts] |
|
|
|
HarryNutz |
General Member Since: May 6, 2011 Posts: 182 Last: Mar 26, 2012 [view latest posts] |
|
|
|
[aL]Damo |
General Member Since: Mar 24, 2010 Posts: 187 Last: Nov 3, 2011 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 29, 2011 01:14 am |
|
HarryNutz writes...Quote: Yea it seems every damn tut is about replacing your existing ambience for the whole map... I just want to add EXTRA ambient sounds around the map. Like a bird chirping in a tree etc etc.
create a sound alias ( http://www.afterlifegaming.net/main/index.php?showtopic=9902)
Then instead of using ambiance in gsc use sound play here is an example maps\mp\_fx::loopSound( "disco_music", ( 1223, 2988, 283 ), 1); 1223, 2988, 283 is the orgin. |
|
|
|
HarryNutz |
General Member Since: May 6, 2011 Posts: 182 Last: Mar 26, 2012 [view latest posts] |
|
|
|
[aL]Damo |
General Member Since: Mar 24, 2010 Posts: 187 Last: Nov 3, 2011 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 29, 2011 02:51 pm |
|
HarryNutz writes...Quote: Maybe I should explain it this way: Im a noob when it comes to mapping and Im an extra noob when it comes to scripting. I starting messing around with trying to add this "single" sound since about 5:30 PM yesterday... jumped through hoops till 3:00AM trying everything under the sun and my head was spinning like a top, but still never got it working.
Now my common sense side my head says "screw the extra ambient sound... just move on and forget it". But my logical side of my head says "no! dont give up! sooner or later you will figure it out... sooner or later someone will explain in "noob" terms how to do it... or sooner or later you will find a tut that makes more sense then a flying donkey"
Sorry but i think the tut above is the simplest it can be thats why its so long!
If you need help with this i would be happy to talk this through with you on Xfire, Steam or TeamViewer. |
|
|
|
HarryNutz |
General Member Since: May 6, 2011 Posts: 182 Last: Mar 26, 2012 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 29, 2011 03:01 pm |
|
raw/soundaliases mp_aptcomplex.csv
Code:
amb_robin,,amb_elements/amb_robin.wav,1,1,max,1,1,100,720,auto,streamed,,rlooping,,all_mp,,,,,,,,0.2,,,75,200,0.65
raw/maps/mp mp_aptcomplex_fx.gsc
Code: level.scr_sound["amb_robin"] = "amb_robin";
raw/maps/createfx mp_aptcomplex_fx.gsc
Code:
ent = maps\mp\_utility::createOneshotEffect( "light_shaft_dust_large" );ent.v[ "origin" ] = (-34, 402, -712);ent.v[ "angles" ] = ( 270, 0, 0 );ent.v[ "fxid" ] = "light_shaft_dust_large";ent.v[ "delay" ] = -15;ent.v[ "soundalias" ] = "amb_robin";
zone_source mp_aptcomplex.csv
Code: sound,mp_aptcomplex,,all_mp
And trying to run the map I get this error:
http://www.porn-n-beer.com/ourfiles/script_error.png
wav is in raw/sounds/amb_elements |
|
|
|
[aL]Damo |
General Member Since: Mar 24, 2010 Posts: 187 Last: Nov 3, 2011 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 29, 2011 05:17 pm |
|
HarryNutz writes...Quote: raw/soundaliases mp_aptcomplex.csv
Code:
amb_robin,,amb_elements/amb_robin.wav,1,1,max,1,1,100,720,auto,streamed,,rlooping,,all_mp,,,,,,,,0.2,,,75,200,0.65
raw/maps/mp mp_aptcomplex_fx.gsc
Code: level.scr_sound["amb_robin"] = "amb_robin";
raw/maps/createfx mp_aptcomplex_fx.gsc
Code:
ent = maps\mp\_utility::createOneshotEffect( "light_shaft_dust_large" );ent.v[ "origin" ] = (-34, 402, -712);ent.v[ "angles" ] = ( 270, 0, 0 );ent.v[ "fxid" ] = "light_shaft_dust_large";ent.v[ "delay" ] = -15;ent.v[ "soundalias" ] = "amb_robin";
zone_source mp_aptcomplex.csv
Code: sound,mp_aptcomplex,,all_mp
And trying to run the map I get this error:
http://www.porn-n-beer.com/ourfiles/script_error.png
wav is in raw/sounds/amb_elements
This is nothing to do with sound this is an error in one of ur GSC files.
Something to do with an FX not sound alias
edited on May. 29, 2011 01:17 pm by [aL]Damo |
|
|
|
HarryNutz |
General Member Since: May 6, 2011 Posts: 182 Last: Mar 26, 2012 [view latest posts] |
|
|
|
[aL]Damo |
General Member Since: Mar 24, 2010 Posts: 187 Last: Nov 3, 2011 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 29, 2011 05:40 pm |
|
HarryNutz writes...Quote: Its related to the script for the sound, because when I remove the all the above code... map loads without issue.
Why are you attempting to play a sound at the same time as an fx ? Just create the FX and use playsound to play the sound at the same time.
You are making it more complicated then it needs to be.
edited on May. 29, 2011 01:40 pm by [aL]Damo |
|
|
|