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

Members Online

»
0 Active | 111 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
Previous 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: Sunday, May. 29, 2011 06:13 pm
Im not making it more complicated... I just dont know what the hell Im going lol. Maybe you could enlighten me with where and what code I need to change?
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: Monday, May. 30, 2011 12:04 am
HarryNutz writes...
Quote:
Im not making it more complicated... I just dont know what the hell Im going lol. Maybe you could enlighten me with where and what code I need to change?


will post tomorrow as a bit tired atm and cant think
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Monday, May. 30, 2011 06:09 am
Example using an existing FX location to play a sound while having a soundalias predefined.

Code:
	ent = maps\mp\_utility::createOneshotEffect( "dust/light_shaft_dust_large" );
	ent.v[ "origin" ] = ( -100, 1380, 104 );
	ent.v[ "angles" ] = ( 270, 0, 0 );
	ent.v[ "fxid" ] = "light_shaft_dust_large";
	ent.v[ "delay" ] = -1;
	ent.v[ "soundalias" ] = "amb_robin";
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, May. 30, 2011 02:25 pm
Well I was given the below code to add a random sound, but Im have no clue where most of it goes. I know the .csv is the zone file, but not sure where Im suppose to place the _createfx code and the last code box has me scratching a hole in my head as to whats trying to be said... I assume it means some kind of file needs to be in that directory and referencing the sound file?

And Im sorry for coming off so "thick"... Im just not too smart with any of this coding/scripting aspect and it makes my head spin.

Code:
ent = maps\mp\_createfx::createLoopSound();
    ent.v[ "origin" ] = ( 944, -1212, -26 );
    ent.v[ "angles" ] = ( 270, 0, 0 );
    ent.v[ "soundalias" ] = "your_sound";


Code:
csv:<br />
<br />
sound,mp_yourmapname,mp_yourmapname,!all_mp


Code:
That's if you have a soundalias file called "mp_yourmapname" in raw/soundaliases" 
with a sound within that file called "your_sound".
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, May. 30, 2011 05:21 pm
I want to verify something... I found a sound online I wanted to use... recorded it from online using software I have and then just changed it to the name I wanted.

What if any requirements are there for using a custom sound? Like... bitrate, file size, length of sound etc etc? Maybe thats where I am failing.

And I have this .wav inside my iwd file within a folder called sounds and then another folder called mp_aptcomplex.
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, May. 30, 2011 07:43 pm
Got it all working with some messing about. Thanks for the help guys
Share |
Restricted Access Topic is Locked
Page
Previous 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

»