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

Members Online

»
0 Active | 37 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
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Sound Effects Question
Raven21633
General Member
Since: Jan 17, 2008
Posts: 184
Last: Sep 12, 2010
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Wednesday, Aug. 20, 2008 07:35 pm
A friend of mine recently came back from Iraq and has been showing us video's of what they went through over there.

He has several videos of enemy bombardments on his FOB, and whenever there was incoming artillery, there was an air-raid alarm that went off.

Is it possible to write into a map an air-raid alert sound scripted to go off whenever anyone drop arty? I would prefer to have one alarm in each base area so it would only go off if dropped in that area.

I thought about a simple trigger that would trigger the sound when the arty hit it, but that would really be too late, I'd like it to sound off as soon as the enemy pushes the mouse button to drop it.

Thanks in advance :)

Share |
Gen_Boom
General Member
Since: Apr 24, 2006
Posts: 80
Last: May 5, 2009
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Wednesday, Aug. 20, 2008 10:05 pm
This should help...

The function is located in (and near the bottom):
pakuo01.pk3//maps/mp/gametype/_rank_gmi.gsc

It controls the sounds played when the artyu falls...

Code:

// ---------------------------------------------------------------------
//	artillery_strike_sounds
//
// 		Will play all the apropriate sounds whenever an artillery strike gets called
// ---------------------------------------------------------------------
artillery_strike_sounds()
{
	self endon("death");

	if ( self.pers["team"] == "allies" )	
	{
		switch( game["allies"])
		{
		case "british":
			fire_sound = "uk_fire_mission";
			incoming_sound = "uk_incoming";
			break;
		case "russian":
			fire_sound = "ru_fire_mission";
			incoming_sound = "ru_incoming";
			break;
		default:
			fire_sound = "us_fire_mission";
			incoming_sound = "us_incoming";
		}
	}
	else
	{
		fire_sound = "ge_fire_mission";
		incoming_sound = "ge_incoming";
	}
	
	while (1)
	{
		self waittill( "artillery", strike_point );
		
		// play the vo for calling in the artillery strike
		self playLocalSound(fire_sound);
		
		// now play the incoming sound for any teammates in the area
		players = getentarray("player", "classname");
		for(i = 0; i < players.size; i++)
		{
			player = players[i];
		
			if(player != self && player.pers["team"] == self.pers["team"])
			{
				dist = distance( player.origin, strike_point );
				
				// only play the warning if they are close to the strike area
				if ( dist < 1000 )
					player playLocalSound(incoming_sound);
			}
		}
		
		wait(0.1);	
	}
}



I see a few things that should helps you, look for them in the script:
- self waittill( "artillery", strike_point );
- // now play the incoming sound for any teammates in the area
- // only play the warning if they are close to the strike area


You can script right?
If yes than you should be able to figure it out...
Do some tests see if you get it...
Share |
Raven21633
General Member
Since: Jan 17, 2008
Posts: 184
Last: Sep 12, 2010
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Saturday, Aug. 23, 2008 12:04 am
Thanks Gen_Boom :)

My scripting skills are, to be generous, "Beginner" level :)

From what I can see, the sound effect I need to redirect are the x_incoming; variables.

case "british":
fire_sound = "uk_fire_mission";
incoming_sound = "uk_incoming";
break;
case "russian":
fire_sound = "ru_fire_mission";
incoming_sound = "ru_incoming";
break;
default:
fire_sound = "us_fire_mission";
incoming_sound = "us_incoming";


I've looked in all the other pakuo files but can't find the .csv file where these variables are defined.

How would I go about redirecting these variables?

Thanks again :)
Share |
Raven21633
General Member
Since: Jan 17, 2008
Posts: 184
Last: Sep 12, 2010
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Monday, Aug. 25, 2008 12:16 am
Thanks for the help guys, but I think I'm just going to drop this part of the project.

I've tried everything I can think of/find and I just can't get it to work, plus the sound effect adds 6mb (pre-cooked weight) to the project.

Thanks for the help :)
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO 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

»