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
CoDWW 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
LS-R1-mini [Forum]
fredisdead [Forum]
RePhLeX [Forum]
OutPoursTh... [Forum]
Sniperdennis [Forum]
ultranew_b [Tutor]
cabelera85 [Tutor]

7 Members and 24 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Saturday, Nov. 22nd
CoD:WW Video Tutorial is up!
Friday, Nov. 21st
MODSonair Episode 154
Thursday, Nov. 20th
Call Of Duty World At War - Mod Tools
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 8.42%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0.5%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 67.82%
100% definitely NOT! 19.31%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 2.48%
Games are the devil! 1.49%
Read More...
16 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
compiling errors
CoD:WW Level Des.. Posts: (26) Views: (281) by COLMAC
Cod4 Loadscreen problem , what a suprise
CoD 4 Level Desi.. Posts: (1) Views: (17) by RePhLeX
Script compile error
CoD2 Scripting.. Posts: (2) Views: (16) by playername
No sound
CoD:WW Level Des.. Posts: (7) Views: (92) by Smithy
Google 468 Banner Half-Life 2 Mods for Dummies
CoDWW Download
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
Category: CoD General Gaming
General game questions, comments, and chat.
Moderators: foyleman, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, supersword, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: play sound on every map
Riris
General Member
Since: Mar 19, 2006
Posts: 187
Last: May 20, 2008
[view latest posts]
Level 4
Category: CoD General Gaming
Posted: Monday, May. 19, 2008 01:55 pm
hey guys

I am trying to add a sound at the end of the map (last minute of the map)


Code:


I opened up the _callbacksetup.gsc and I called the above function from CodeCallback_StartGameType().
This is playing the sound at the end of the first map. when it switches on the second map (same gametype), it does nothing at all..
any idea on how to triger it on every map change?

thanks!

edited on May. 19, 2008 01:55 pm by Riris
thecheeseman
General Member
Since: Mar 27, 2008
Posts: 30
Last: Jun 6, 2008
[view latest posts]
Level 2
Category: CoD General Gaming
Posted: Monday, May. 19, 2008 02:06 pm
Try editing the gametype .gsc, for example in DM.gsc call the "timecheck();" from the "Callback_StartGameType()".

So it looks like


Code:


I added an additional fix, so that it plays the sound to each individual player. CoDUO uses this at the end of its gametypes, more efficient.

Hope this helps.
Riris
General Member
Since: Mar 19, 2006
Posts: 187
Last: May 20, 2008
[view latest posts]
Level 4
Category: CoD General Gaming
Posted: Monday, May. 19, 2008 03:15 pm
thanks for the quick reply..

I had it like that before

Code:

but I though to change it as its a music file...
anyway I switched it back as you pointed.
still got the same results though, no matter where I trigger it.
I triggered it from where you told me, on the "Callback_StartGameType()" function...

same result always
thecheeseman
General Member
Since: Mar 27, 2008
Posts: 30
Last: Jun 6, 2008
[view latest posts]
Level 2
Category: CoD General Gaming
Posted: Monday, May. 19, 2008 05:32 pm
Maybe it's something with your .csv? You might need to set different values for the sound, like looping, or something.
Riris
General Member
Since: Mar 19, 2006
Posts: 187
Last: May 20, 2008
[view latest posts]
Level 4
Category: CoD General Gaming
Posted: Monday, May. 19, 2008 05:50 pm
in the csv I have it like that:
rrs_ending,,rrsounds/ending.mp3,1,1.1,,,500000,500000,music,streamed

I have some other sounds with similar settings, the only difference is the min and max volume.

but I they are not triggered by time check, they check which team wins/loses and plays the corresponding sound for lose/win. that works just fine no matter how many maps I play.
Riris
General Member
Since: Mar 19, 2006
Posts: 187
Last: May 20, 2008
[view latest posts]
Level 4
Category: CoD General Gaming
Posted: Tuesday, May. 20, 2008 08:35 am
ok, figured it out..
inside each gametype (at least there is in tdm.gsc) there is a function "checkTimeLimit()" I make the check in there and I call a function to just play the sound
Riris
General Member
Since: Mar 19, 2006
Posts: 187
Last: May 20, 2008
[view latest posts]
Level 4
Category: CoD General Gaming
Posted: Tuesday, May. 20, 2008 08:35 am
ok, figured it out..
inside each gametype (at least there is in tdm.gsc) there is a function "checkTimeLimit()" I make the check in there and I call a function to just play the sound
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty : CoD General Gaming
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.
Art of War Central
Partners
Call of Duty Headquarters
CODAddicts - Call of Duty News & Downloads
Battle for Europe COD2
XoXide
Frag Universe
modbase.be
The Firing Box
Ask About
Advertising
Friends
ModTheater
Canada Kicks Ass Clan
SOF2 Files and Downloads
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 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

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