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

Members Online

»
0 Active | 5 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: ambient sound
Big-Madman
General Member
Since: May 14, 2006
Posts: 197
Last: May 7, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Wednesday, Sep. 6, 2006 02:02 am
[cool]hi guys , i got the anbient amb_france.... (working good )

but now my problem is i cant add any other sound to the map .

like i tried to add the plane sound spitfly1 i think ..

doesnt work , do i have to add another line in my gsc ... dont think so !!! right

now this is the line i put in my csv folder

elm_spitfly1,,amb_elementst/elm_spitfly1.wav,1,1,,,,4000,10000,local,,,looping,mp_winter_mission1

, please tell me what i'm doing wrong , i planed to make a map with rain in it ...

tx for all your help ..[rocking]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Wednesday, Sep. 6, 2006 06:14 am
you can only add one ambient line to your map.

you'll have to use the playsound command when you want to add another sound to your map.
There are tutorials in the CoD and UO section on how to do that
Share |
Gagarin
General Member
Since: Apr 21, 2006
Posts: 35
Last: Feb 3, 2008
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Sep. 6, 2006 06:15 am
The_Caretaker writes...
Quote:
Appears to be alright.. are you sure there is no long silence at the end of your .mp3 file or something like that?

Also.. post your .gsc file, because I have one last hunch.
Code:
#include maps\mp\_utility;


main()
{
	maps\mp\_load::main();
	maps\mp\hall_of_glory_fx::main();
	maps\mp\vase::main();
	maps\mp\bottle::main();
	maps\mp\doors::main();
	maps\mp\other::main();

	ambientPlay("ambient_hall_of_glory");
}


I have some custom sound in door open/close and sound in vase/bottle .gsc. All works fine. But the ambient....
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Wednesday, Sep. 6, 2006 03:40 pm
Try running your ambient sound before calling your functions:

main()
{
maps\mp\_load::main();
maps\mp\hall_of_glory_fx::main();

ambientPlay("ambient_hall_of_glory");

maps\mp\vase::main();
maps\mp\bottle::main();
maps\mp\doors::main();
maps\mp\other::main();


}

Though I doubt that's it, because as you said, the stock sounds were working...

If this won't work.. you can send your .iwd file (complete with .gsc, .mp3 and every other file) to me and I'll have a look myself.
Share |
Gagarin
General Member
Since: Apr 21, 2006
Posts: 35
Last: Feb 3, 2008
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Sep. 6, 2006 06:55 pm
Without effect. I send my .iwd to your hotmail box
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Wednesday, Sep. 6, 2006 08:40 pm
I got the file.. I'll post my results as soon as I have time in finding out what's wrong.
Share |
Gagarin
General Member
Since: Apr 21, 2006
Posts: 35
Last: Feb 3, 2008
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Saturday, Sep. 9, 2006 11:42 am
What about my problem with ambient sound ? Found something?
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»