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

Members Online

»
0 Active | 51 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 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
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]
Level 4
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
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 31, 2007 08:36 am
try setting it to auto instead of local.
Share |
blmeanie
General Member
Since: Mar 13, 2005
Posts: 196
Last: Mar 31, 2009
[view latest posts]
Level 4
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?
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 31, 2007 01:02 pm
you can set the radius of the sound by altering the number for max_distance in your .csv file.
No, there is no way of stopping a sound passing through a wall as far as I know.
Share |
the4threich
General Member
Since: May 28, 2006
Posts: 70
Last: Jan 25, 2008
[view latest posts]
Level 3
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,,,,,,,,,,,
Share |
94sniper
General Member
Since: Jun 15, 2007
Posts: 907
Last: Jun 22, 2009
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Friday, Aug. 10, 2007 07:03 pm
........................................i'm sorry what did you say? I don't speak geek[moon][wink][lol]
Share |
the4threich
General Member
Since: May 28, 2006
Posts: 70
Last: Jan 25, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Friday, Aug. 10, 2007 07:29 pm
[2guns][machine_gun][sniper]

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,,,,,,,

Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Friday, Aug. 10, 2007 07:30 pm
ok.. does the mp3 file work or not, because you say in the same post they don't play AND you can hear them all over your map.

What do you use to play the file (what kind of script)?
Share |
94sniper
General Member
Since: Jun 15, 2007
Posts: 907
Last: Jun 22, 2009
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Friday, Aug. 10, 2007 07:32 pm
[exclamation]Do you really think I care?!?!?!?!?!?!?[exclamation]jk, that's G4U

and caretaker--who relly cares? aslong as it works it should be fine, so just leave it be before something screws up again

edited on Aug. 10, 2007 03:33 pm by 94sniper
Share |
the4threich
General Member
Since: May 28, 2006
Posts: 70
Last: Jan 25, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Friday, Aug. 10, 2007 07:38 pm
it would play over the entire map, but when i tried to play it in X spot it wouldn't do it, but now it does because i fixed it, don't understand it but it works.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»