MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
one_richard [Forum]

1 Members and 12 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Friday, Aug. 29th
MODSonair Episode 142
Wednesday, Aug. 27th
Details revealed
Sunday, Aug. 24th
Mappers Guild AKA Help Desk
Sunday, Aug. 24th
MODSonair 142 LIVE
Friday, Aug. 22nd
MODSonair Episode 141
Latest Poll
Want a MODSonline Wiki for various games?
I think a Wiki would be a great addition to MODSonline. 78.24%
I could see a benefit of a Wiki. 3.63%
I think it would take away from the community. 5.18%
Wiki sites are never good. 3.11%
Wiki... isn't that Buck Roger's robot slave? 9.84%
Read More...
13 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Breakables eye candy ?
CoD 4 Level Desi.. Posts: (9) Views: (91) by Sevenz
mp menue for player start missing options
CoD 2 Level Desi.. Posts: (1) Views: (7) by pmilton
Playermodels working but bent
CoD 4 Level Desi.. Posts: (3) Views: (44) by Sevenz
night vision help
CoD 4 Level Desi.. Posts: (3) Views: (36) by zurim
Art of War Central Quake 4 Mods for Dummies
Typhoon Servers
Forums
MODSonline.com 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, batistablr
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Elevator sound not play
Toast1991
General Member
Since: Sep 14, 2006
Posts: 22
Last: Feb 24, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Jan. 29, 2007 11:09 am
Hi everybody,

i have followed the tutorial of the MP Elevator, and working fine. But there is no music playing. I have in the main map a map with sound/misc/elevator_med.wav.

But when i go up, i don't hear anything.

the soundaliases file

===========================
name,sequence,file,vol_min,vol_max,pitch_min,pitch_max,dist_min,dist_max,channel
,type,probability,loop,masterslave,loadspec,subtitle

null,,null.wav,,,,,,,,,,,,,

# Personal Sounddefinitions,,,,,,,,,,,,,,,
elevator1,,misc/elevator_med.wav,,,,,,,auto,,,,,,
===========================

The GSC file

===========================
main() {
level.elevatorDown = true; // elevator starts at bottom: true/false
level.elevatorMoving = false; // elevator is not currently moving
thread elevator_start();
}

elevator_start() {
elevator = getentarray ("elevatorswitch","targetname");
if ( isdefined(elevator) )
for (i = 0; i < elevator.size; i++)
elevator thread elevator_think();
}

elevator_think() {
while (1) {
self waittill ("trigger");
if (!level.elevatorMoving)
thread elevator_move();
}
}

elevator_move() {
elevatormodel = getent ("elevatormodel", "targetname");
level.elevatorMoving = true;
speed = 2;
height = 192;
wait (1);
if (level.elevatorDown) { // moves to top
elevatormodel playsound ("elevator1"); // sound definition for soundaliases.csv
wait (1); // wait a second to hear the motor start and then start the movement of the lift - feels more realistic
elevatormodel moveZ (height, speed);
elevatormodel waittill ("movedone");
level.elevatorDown = false;
}
else { // moves to bottom
elevatormodel playsound ("elevator1"); // sound definition for soundaliases.csv
wait (1); // wait a second to hear the motor start and then start the movement of the lift - feels more realistic
elevatormodel moveZ (height - (height * 2), speed);
elevatormodel waittill ("movedone");
level.elevatorDown = true;
}
level.elevatorMoving = false;
}
============================
The_Caretaker
Preferred Member
Since: Jun 8, 2004
Posts: 11394
Last: Aug 29, 2008
[view latest posts]
Level 10
Forum Moderator
Category: CoD2 Scripting
Posted: Monday, Jan. 29, 2007 12:31 pm
Try playing the sound "beep" instead of elevator1.... just to see if the error is in your script, or your .csv/.wav file.

so replace elevatormodel playsound ("elevator1");

with

elevatormodel playsound ("beep");
Toast1991
General Member
Since: Sep 14, 2006
Posts: 22
Last: Feb 24, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Jan. 29, 2007 01:36 pm
I have changed it, but i heard no sound. [ohwell]
privategrob
General Member
Since: May 19, 2004
Posts: 53
Last: Feb 26, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Thursday, Feb. 1, 2007 03:05 am
Type this in your csv:

name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage

elevator1,,misc/elevator_med.wav,1,,,,,,,local,,,,,mp_yourmapname

Is the elevator_med.wav a stock sound and in the misc folder? If not, make a folder sound in this folder an folder misc and in this folder must be the wav file. Remember a costum wave must be a mono sound, not a stereo sound.

There is only one problem with "local". If someone drive with the elevator you can hear the sound on the whole map [ohwell]

Regards
Private Grob
(Micka)


edited on Feb. 1, 2007 03:08 am by privategrob
Marlow
General Member
Since: Jun 27, 2006
Posts: 150
Last: Mar 6, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 05:01 pm
privategrob writes...
Quote:
Type this in your csv:

name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage

elevator1,,misc/elevator_med.wav,1,,,,,,,local,,,,,mp_yourmapname

Is the elevator_med.wav a stock sound and in the misc folder? If not, make a folder sound in this folder an folder misc and in this folder must be the wav file. Remember a costum wave must be a mono sound, not a stereo sound.

There is only one problem with "local". If someone drive with the elevator you can hear the sound on the whole map [ohwell]

Regards
Private Grob
(Micka)


edited on Feb. 1, 2007 03:08 am by privategrob


If you already have ambient entries in your CSV, would this be right?


Code:


ps my map is mp_msp4 and my elevator is elevator_msp4... Could it be that I'm trying to use an mp3 or is my script wrong? I'm trying to use auto instead of local so it won't play over the whole map...
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Intergi
Partners
Battle for Europe COD2
Frag Universe
modbase.be
The Firing Box
Call of Duty Headquarters
XoXide
Ask About
Advertising
Friends
SOF2 Files and Downloads
After Life Gaming
Canada Kicks Ass Clan
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 142
MODSonair Episode 141
MODSonair Episode 140
MODSonair Episode 139
MODSonair Episode 138
Next Show
The next MODSonair show will air LIVE on:
08/31/2008 11:00 EDT

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware