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

Members Online

»
0 Active | 52 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 Sound?
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, Feb. 27, 2012 03:51 pm
Easy method? Have trigger... someone walk into trigger... sound plays.
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Monday, Feb. 27, 2012 04:26 pm
http://modsonline.com/Forums-top-148393-0.html%23747663
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Monday, Feb. 27, 2012 04:57 pm
That talks about multiple triggers and using teams, Im just looking for a single trigger placed in a room that when anyone hits it... a sound plays.
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Monday, Feb. 27, 2012 05:30 pm
then delete the code?!

for SP:
Code:

oneShotSound( triggerName , soundAlias )
{
     trigger = getent( triggerName , "targetname" );

     if( !isDefined( trigger ) ) 
          return;

     trigger waittill( "trigger" );
     trigger playSound( soundAlias , "sound_1_done" );
     trigger waittill( "sound_1_done" );
     trigger delete();
}

for MP:
Code:
oneShotSound( triggerName , soundAlias )
{
     trigger = getent( triggerName , "targetname" );

     if( !isDefined( trigger ) ) 
          return;

     trigger waittill( "trigger" );
     trigger playSound( soundAlias );
     wait( 3.0 );
     trigger delete();
}


~> thread oneShotSound( "sound_trig_1" , "suspense_1" );
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Tuesday, Feb. 28, 2012 08:13 am
I would build the script around the sound. What type of sound is it? Explain a little better on what exactly happens when this player walks into the trigger, what kind of sound plays?
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Tuesday, Feb. 28, 2012 08:27 am
TV in the room, have it looking like tv is on and when person got near... have it play a song clip from Oscar the Grouch... I Love Trash [biggrin]
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Tuesday, Feb. 28, 2012 10:51 am
i wouldn't use triggers for this kind of sound fx, but rather place a looping sound near to the front of the tv and set the sound alias to a low range, something like

dist_min 0
dist_max 128 (small radius around the tv)
vol_min 0 (not sure if volume will be 0 at distance of 128, maybe use 0.5 or something)
vol_max 1
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Saturday, Mar. 24, 2012 02:38 pm
Digging this topic back up as Im not happy with the looping sound and also because I need a trigger sound in 2 other locations that looping just wouldnt cut it.

I have tried multiple scripts as well have used wav and mp3 and no matter what... the trigger plays the sound, but then when I open the moving door while its playing... the sound moves to what I believe is the doors trigger location... if I then run outside and shoot an exploding barrel... the sound plays from that location.

I need some sound geniuses to help figure this out or come up with another variation that will give me the same result that Im looking for.
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Saturday, Mar. 24, 2012 07:15 pm
My guess is that, the sound is too long, under the column "element". I would try playing the sound under some other channel. Maybe try "voice" or something else. Open up "raw\soundaliases\common.csv" and look around at how they play the longer sounds in the game.
Share |
HarryNutz
General Member
Since: May 6, 2011
Posts: 182
Last: Mar 26, 2012
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Saturday, Mar. 24, 2012 11:20 pm
Tried different channels and no change. Me and 2 other mappers jumped into my map and we were all shaking out heads.

Sometimes he comes through doors, sometimes through barrels... sometimes only the person triggering the original sound could hear it.... weird.
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

»