Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 43 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Adding custom ambient sounds?
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
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.
Share |
manickiller
General Member
Since: Sep 10, 2007
Posts: 238
Last: May 30, 2011
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, May. 29, 2011 12:49 am
He forgot to say , he wants the sound to be in a location only like a bird tweeting in a tree only not as a background game sound... just a bird in a tree..lol

Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, May. 29, 2011 01:02 am
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.
Share |
[aL]Damo
General Member
Since: Mar 24, 2010
Posts: 187
Last: Nov 3, 2011
[view latest posts]
Level 4
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.
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, May. 29, 2011 12:36 pm
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"

[crazy]
Share |
[aL]Damo
General Member
Since: Mar 24, 2010
Posts: 187
Last: Nov 3, 2011
[view latest posts]
Level 4
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"

[crazy]


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.
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
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
Share |
[aL]Damo
General Member
Since: Mar 24, 2010
Posts: 187
Last: Nov 3, 2011
[view latest posts]
Level 4
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
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, May. 29, 2011 05:31 pm
Its related to the script for the sound, because when I remove the all the above code... map loads without issue.
Share |
[aL]Damo
General Member
Since: Mar 24, 2010
Posts: 187
Last: Nov 3, 2011
[view latest posts]
Level 4
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
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»