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

Members Online

»
0 Active | 5 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Jukebox in MP
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 08:06 am
Hi Everybody!

I want to make a Jukebox (just 1 song) in a multiplayer map.
Only thing is that I don't know exactly how.
I've found a tutorial but that was for Single Player.
So how should I trigger it, and what should I put in the IWD if I want my friends to come play the map.

Thanks in advance,

- Futtbucker

edited on Jul. 2, 2007 04:06 am by Futtbucker
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 10:44 am
Realy if you use the SP turtorial it should work, unless there is a issue with scripting. But try it and see if it works. If it doesn't post the erorrs you get here [thumbs_up]

O and the qestion about the IWD. You need to add the folowing things.

Maps\mp\yourmapname.d3dbsp
Maps\mp\yourmapname.gsc

Sounds\... any sounds you have.

Soundaliases\mp\yourmapname.csv

Mp\yourmapname.arena

Levelshots\... your levelshot picture.
Levelshots\layouts\... your layout

edited on Jul. 2, 2007 06:51 am by playername
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 10:59 am
And if I have custom decals in my map, what do I have to put in my CSV file then ? (quick question, don't wanna make new topic)
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 11:47 am
Already got it ;)

Didn't use any CSV file at all [eek] and it works.



Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 12:54 pm
About the sound on demand in MP I have a question.
I used almost everything from the tutorial.

I show you what i've got:

http://img159.imageshack.us/img159/2677/triggergt1.jpg <-- Trigger
http://img159.imageshack.us/img159/5822/modelyy3.jpg <-- Model (where sound is coming from)

I've created the folders "sound" and "soundaliases" in my main map.

my Gsc file:
Code:
main()	

{
maps\mp\_load::main();
thread sound4();
} 

sound4() 
{ 
	yellsoundtrig = getent ("sound4_trigger","targetname");
	yellsoundtrig waittill ("trigger");

	alert = getent ("sound4source", "targetname");
	alert playsound("sound4");

} 



My CSV file:
Code:
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

sound4,,misc/sound4.wav,1,,,,,150,300,auto,,,nonlooping,,,,,,,,,,


I've changed the .wav from the map sound (in main folder) in a cool song and I still hear the example from the tutorial (MINEFIELD LOOK OUT FOR MINES!)
So something is referring to the sound_tut.iwd (wich I still got in my main map), but I want it to use the file in my sound map.

Please help me, I think I've made my problem very clear. [wave]
Share |
tomalla
General Member
Since: Jan 16, 2007
Posts: 393
Last: Jun 10, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 12:57 pm
playername writes...
Quote:

Levelshots\... your levelshot picture.
Levelshots\layouts\... your layout

edited on Jul. 2, 2007 06:51 am by playername


I thought, that these folders are only in Call of Duty 1, but maybe im wrong ...
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 01:05 pm
Isn't that just for a mp_loadingscreen ?

If it has to do something with my sound problem, wat should it contain?
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 02:10 pm
Quote:
Quote:
Levelshots\... your levelshot picture.
Levelshots\layouts\... your layout

I thought, that these folders are only in Call of Duty 1, but maybe im wrong ...

Yes i checked this, it is for both Call of Duty 1 and 2.

Now Futt, That is for a mp_loadingscreen.
you have to make a .dds or .jepg, (idk about the jepg, i know it works for CoD1), that is... haha i forget how big!


edited on Jul. 2, 2007 10:12 am by playername
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 02:14 pm
I don't want a loadingscreen :P
I want my sound to work but it keeps playing the sound from the sound tut.iwd in my main folder.
And if I change that sound from the iwd it doesn't do anything in game :\ weird...
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Jul. 2, 2007 02:18 pm
Quote:
sound4,,misc/sound4.wav,1,,,,,150,300,auto,,,nonlooping,,,,,,,,,,


the part in bold is your sound path.
This is the path you have now

Call of Duty 2\Main\sounds\misc\sound4.wav

if your sound it not there then your sound won't work.
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»