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

Members Online

»
0 Active | 55 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
Next 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: Sunday, Mar. 2, 2008 03:25 pm
on, when you use the "foliage" brush around a bush it makes that neat bush sound

how can i make a trigger brush play another sound when a player walks into a certain area ?

thanks

also how about random ambiant sounds playing.

edited on Mar. 2, 2008 10:26 am by UB_Dragon
Share |
SporadiC
General Member
Since: Feb 23, 2008
Posts: 159
Last: Jan 3, 2011
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, Mar. 2, 2008 03:47 pm
there is such a nifty search feature on this forum, you're even reminded of it when you make a new topic... but still...
annyway, five topics down from yours: http://www.modsonline.com/Forums-top-74615.html
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: Sunday, Mar. 2, 2008 04:12 pm
i use search all the time, did not see anything

also this is about my 3-4 post on this with no results, had this in the scripting section for 1-2 weeks with no results

i agree, search before posting!
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: Sunday, Mar. 2, 2008 04:17 pm
LOL, there is something even niftier, called "read"

i can see you need to read about the post you were directing me too, i was very active in that posting with no results

not the same

I am familliar with the "full map" ambiant sounds,

I am asking for help with local sounds and random map sounds,

there are lots of neat sounds in the "iw" files that i am wanting to use,

i got a dog house that when you get close too, i want to hear local only barking sounds, not over the whole map, just certain areas, i know in cod2 there were plenty of scripting like that.

i am wanting to use the "trigger" brush to play a sound, i can make it "hurt" a player when the player walks into the brush for fire burning.

now i want sound.

thanks !

edited on Mar. 2, 2008 11:18 am by UB_Dragon
Share |
sleep61
General Member
Since: Sep 16, 2007
Posts: 169
Last: Apr 18, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, Mar. 2, 2008 05:47 pm
well, in cod2 i made a small test map w/sound triggers and part of my gsc looked like this;

thread act1();
thread act2();

act1()
{
trig1 = getent("tanktrig1","targetname");
tank = getent("tank", "targetname");
trig1 waittill ("trigger");
tank playsound ("Sound1");
}

act2()
{
trig2 = getent("tanktrig2","targetname");
tank = getent("tank", "targetname");
trig2 waittill ("trigger");
tank playsound ("Sound2");
}

in your map you make a trigger and of course give it the right key/value. if you want a looping sound make sure it is just that and a trigger multiple if you want the dog to bark everytime you touch it. also you identifie the sound exactly as stated in your csv.
hope that helps
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: Sunday, Mar. 2, 2008 08:32 pm
what would the right key value be ?

i have never messed with this kind of stuff before

piere rambo made a map, shoot the bell and it would "ding"

walk in an area a dog would bark,

Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Sunday, Mar. 2, 2008 09:15 pm
make a make a brush and texture trigger
make another brush and texture it origin, this is where the sound will come from
select both > right click them > trigger >
multiple = walk in to trigger
damage = shoot to trigger
use = use button to trigger
use_touch = must be touching trigger and use button pressed to trigger

give it a 'targetname' of 'dog'

in you maps gsc:

Code:

main()
{
*map stuff here*

dogtrigs = getentarray("dog","targetname");
for(i=0;i<dogtrigs.size;i++)
dogtrigs[i] thread dogtrigger();
}

dogtrigger()
{
while(1)
{
self waittill("trigger");
self playsound("dogs");
wait 10;
}
}
Share |
sleep61
General Member
Since: Sep 16, 2007
Posts: 169
Last: Apr 18, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, Mar. 2, 2008 09:24 pm
it does not matter what you call your trigger so long as the game can see that you have announced the trigger. here i have shown

trig1 = getent("tanktrig1","targetname");

i made a brush, covered it in trigger multiple texture and gave it a key of "targetname" and a value of "tanktrig1" (leave out the quotation marks when you type that stuff in). as far as finding sounds you are going to have to search your iwd files for soundalias files to find your barking dog. also to make the bell ring he probably used a damage texture/brush around his bell. if you could look at the gsc and csv files for his map it would become more clear to you.

nevermind killer said it better[wink]

edited on Mar. 2, 2008 04:26 pm by sleep61
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: Sunday, Mar. 2, 2008 11:24 pm
thanks, i found my sound, do i need to extract it from the iwd or can it stay in like the ambiant sounds,

and how would i direct the trigger name to play the certain file,

does it need to be wav/mp3 or a certain format ?
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Sunday, Mar. 2, 2008 11:26 pm
no, its doesnt need to be extracted
how do you mean
and how would i direct the trigger name to play the certain file,?

it can be wav or mp3
Share |
Restricted Access Topic is Locked
Page
Next 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

»