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

Members Online

»
0 Active | 9 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 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: Trigger brush activate sound question
UB_Dragon
General Member
Since: May 18, 2006
Posts: 155
Last: Mar 14, 2009
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, Mar. 3, 2008 01:53 am
well the sound I like is in the iw_09

"sound/amb_elements" folder

elm_dog10.wav


I can see without even trying the code will not work as it is posted, i have to change something telling it where to find it or something.

I see some custom maps with sounds are packed in a sound file in the iwd's
Share |
sleep61
General Member
Since: Sep 16, 2007
Posts: 169
Last: Apr 18, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, Mar. 3, 2008 02:05 am
i don't know cod4, but in cod2 you are going to have to create a folder in your main named "soundalias". in that folder you would place your csv files bearing your map name. there are several places here in the forums for creating csv files.
Share |
UB_Dragon
General Member
Since: May 18, 2006
Posts: 155
Last: Mar 14, 2009
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, Mar. 3, 2008 02:10 am
yep, i am finding out the 2 are allot more different than I first thought.

I think i will go crack some custom maps open a nd see what I find,

cant get much in the forums, been searching for weeks on this

thanks anyways
Share |
UB_Dragon
General Member
Since: May 18, 2006
Posts: 155
Last: Mar 14, 2009
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, Mar. 3, 2008 02:43 am
nice, ok, got it to work pulling and checking the games gsc's

now if i want 2 different dog sounds, would i

targetname one brush "dog" and the other "dog2"

and my

main()
{
*map stuff here*

dogtrigs = getentarray("dog","targetname");
dogtrigs = getentarray("dog2","targetname");
for(i=0;i dogtrigs thread dogtrigger();
}

dogtrigger()
{
while(1)
{
self waittill("trigger");
self playsound("dogs");
wait 10;
}
}


not sure what to do for the second sound....

thanks this is great!
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Monday, Mar. 3, 2008 07:45 am
if your adding a lot of sounds, it might be easier to use this script

Code:
<br />
main()<br />
{<br />
*map stuff here*<br />
<br />
	sounds = getentarray("soundtrig","targetname");<br />
	for(i=0;i<sounds.size;i++)<br />
		sounds[i] thread playsounds();<br />
}<br />
<br />
playsounds()<br />
{<br />
	while(1)<br />
	{<br />
		self waittill("trigger");<br />
		self playsound(self.script_noteworthy);<br />
		wait 10;<br />
	}<br />
}<br />


to get this working, make a trigger as usual, dont forget to have an origin brush as part of it

give it these entrys

Key: targetname
Value: soundtrig

Key: script_noteworthy
Value: the sound you want it to play when triggered, like 'dogs'
Share |
UB_Dragon
General Member
Since: May 18, 2006
Posts: 155
Last: Mar 14, 2009
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, Mar. 3, 2008 01:04 pm
nice, i did get the other way working last night and did not have a chance to update the forums here, here is what i used (changing the name of the "self playsound("dogs");" "dogs" to the sound file in the multiplayer/common soundaliasses file name, i will give the other way a shot and post the results.

thanks a ton killer !

main()
{
*map stuff here*

dogtrigs = getentarray("dog","targetname");
for(i=0;i dogtrigs thread dogtrigger();

dogtrigs = getentarray("dog2","targetname");
for(i=0;i dogtrigs thread dogtrigger2();
}

dogtrigger()
{
while(1)
{
self waittill("trigger");
self playsound("dogs");
wait 10;
}

dogtrigger2()
{
while(1)
{
self waittill("trigger");
self playsound("dogs");
wait 10;
}
}
Share |
UB_Dragon
General Member
Since: May 18, 2006
Posts: 155
Last: Mar 14, 2009
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Friday, Mar. 7, 2008 03:01 am
Hey killer,

real quick, how would i get certain sounds louder than others.

thanks!
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

»