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

Members Online

»
0 Active | 7 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 subscribe
Author Topic: sound trigger
kjohn175
General Member
Since: Feb 4, 2008
Posts: 90
Last: Jun 9, 2009
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Saturday, Jun. 21, 2008 07:52 pm
Can anyone help me with this please,

I want a sound to play when someone gets onto a rope, I have the sound but i am not sure if I have to use a trigger, if so which one? and do i have to add the sound into my soundalias folder and then normal route with the scripting, has anyone done anything like this?, it would only be like carentan when someone walks past the back grass and the cricket sound is played.

Thanx for any help.
Share |
ahoji
General Member
Since: May 16, 2006
Posts: 74
Last: Jun 27, 2008
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Saturday, Jun. 21, 2008 09:11 pm
i suggest you look in some tuts how to make sound in cod2
i think its the same in cod4

then u must do some scripting
if you want to play sound only when player is touching a rope, you must use trigger, and some IF/WHILE functions
and it should be short sound, so when player climb out it don't continue too long

Code:


alarm = getent("alarm", "targetname");   //our trigger (use trigger multiple i think for touching)
while(1)
  {
  alarm waittill ("trigger", other);   //other stores a player

  while(other isTouching(alarm))
    {
    other playsound("some_sound_declared_in_cvs");
    }
  }



every player climbing should make a sound

edited on Jun. 21, 2008 05:14 pm by ahoji
Share |
kjohn175
General Member
Since: Feb 4, 2008
Posts: 90
Last: Jun 9, 2009
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Monday, Jun. 23, 2008 02:36 pm
Thanx Ahoji, for the reply,

I still cannot get this to work even after following a COD2 tutorial, can anyone give me an idea as to what steps I need to do to create a triggered sound and where I need to put everything.

Please[drink]

edited on Jun. 23, 2008 10:38 am by kjohn175
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD4 MP Mapping
Posted: Monday, Jun. 23, 2008 05:21 pm
"Can not get this to work"...

Do you get an error? Does your map run, but does the sound not play?

Please post your script(s) and the .csv file.
Share |
kjohn175
General Member
Since: Feb 4, 2008
Posts: 90
Last: Jun 9, 2009
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Monday, Jun. 23, 2008 05:26 pm
Thanx caretaker for replying,

I am at work at the min so dont have the scripts in front of me,

I do not get any errors in the fastfile, load the game as normal and I have added a trigger in the location where i want the sound to play, but when ime in game nothing happens.

I have created a soundalias,added all the commands into the csv, I have a script origin and trigger box in the area i want the sound to play from, added the co ordinates to my createfx.gsc and placed the sound file in the sound/misc folder.

is there something I have missed, I understand I cant post the files at the min but can when I get home later.
Share |
Restricted Access Topic is Locked 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

»