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

Members Online

»
0 Active | 8 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
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: spectator music
paulo88
General Member
Since: Apr 18, 2005
Posts: 573
Last: May 8, 2009
[view latest posts]
Level 6
Category: CoDUO Mapping
Posted: Saturday, Oct. 1, 2005 11:07 pm
Hi All,
Does anyone know how to add spectator music ?
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoDUO Mapping
Posted: Saturday, Oct. 1, 2005 11:45 pm
Spectator music?

Never heard of it.. and can't really think of a way to do this...
Share |
paulo88
General Member
Since: Apr 18, 2005
Posts: 573
Last: May 8, 2009
[view latest posts]
Level 6
Category: CoDUO Mapping
Posted: Sunday, Oct. 2, 2005 08:46 am
OK, I have a mod that adds spectator music, but I want to add it to my map and include my choice of music.

here what I can get out of it.

From the soundaliases.

Quote:
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,,,,,,,,,,,,,

# Menu sounds / menu music,,,,,,,,,,,,,,,


music_mainmenu,,music/mainmenu1.mp3,1.25,,,,,,music,streamed,,looping,,menu,
music_mainmenu_mp,,music/mainmenu1.mp3,1.25,,,,,,music,streamed,,looping,,menu,
war_music_stop,,music/blank.mp3,1.25,,,,,,music,streamed,,,,menu,
war_music1,,music/warmusic1.mp3,1.25,,,,,,music,streamed,,,,menu,



From a scriptmenu folder !


Quote:
#include "ui_mp/menudef.h"

#define ORIGIN_MENUTABS 96 64
#define ORIGIN_MENUWINDOW 96 96

{
menuDef
{
name "team_americangerman"
fullscreen 0
rect 0 0 640 480
focuscolor 1 1 1 1
disablecolor 0 0 0 0
style WINDOW_STYLE_EMPTY
onEsc
{
scriptMenuResponse "close";
close team_americangerman;
}
onOpen
{
scriptMenuResponse "open";
}
onClose
{
scriptMenuResponse "close";
}

// WINDOW BACKGROUND
itemDef
{
name "window_background"
visible 1
rect 0 0 448 288
origin ORIGIN_MENUWINDOW
style WINDOW_STYLE_SHADER
background "menu_logo/menu_logo.tga"
decoration
}

//////////////////////////////////////MENU TABS////////////////////////////////////
itemDef
{
name "button_mainmenu"
visible 1
rect 0 0 89 32
origin ORIGIN_MENUTABS
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@tab_left_unselected"
type ITEM_TYPE_BUTTON

text "@MPMENU_MAIN_MENU"
textfont UI_FONT_NORMAL
textscale .24
textalignx 45
textaligny 24
textalign ITEM_ALIGN_CENTER
action
{
play "mouse_click";
close team_americangerman;
open main;
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_team"
visible 1
rect 89 0 90 32
origin ORIGIN_MENUTABS
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@tab_center_unselected"
text "@MPMENU_TEAM"

textfont UI_FONT_NORMAL
textscale .24
textalignx 45
textaligny 24
textalign ITEM_ALIGN_CENTER
decoration
}
itemDef
{
name "button_weapon"
visible 1
rect 179 0 90 32
origin ORIGIN_MENUTABS
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@tab_center_unselected"
type ITEM_TYPE_BUTTON
text "@MPMENU_WEAPON"

textfont UI_FONT_NORMAL
textscale .24
textalignx 45
textaligny 24
textalign ITEM_ALIGN_CENTER
cvartest "scr_showweapontab"
showCvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "weapon";
close team_americangerman;
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_viewmap"
visible 1
rect 269 0 90 32
origin ORIGIN_MENUTABS
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@tab_center_unselected"
type ITEM_TYPE_BUTTON

text "@MPMENU_VIEW_MAP"
textfont UI_FONT_NORMAL
textscale .24
textalignx 45
textaligny 24
textalign ITEM_ALIGN_CENTER
action
{
play "mouse_click";
scriptMenuResponse "viewmap";
close team_americangerman;
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_callvote"
visible 1
rect 358 0 89 32
origin ORIGIN_MENUTABS
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@tab_right_unselected"
type ITEM_TYPE_BUTTON

text "@MPMENU_CALL_VOTE"
textfont UI_FONT_NORMAL
textscale .24
textalignx 42
textaligny 24
textalign ITEM_ALIGN_CENTER
cvartest "scr_allow_vote"
showCvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "callvote";
close team_americangerman;
}
onFocus
{
play "mouse_over";
}
}

//////////////////////////////////// MENU CHOICES/////////////////////////////////////
itemDef
{
name "button_american"
visible 1
rect 16 24 160 23
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@MPMENU_1_AMERICAN"
textfont UI_FONT_NORMAL
textscale .24
textalignx 10
textaligny 20
action
{
play "mouse_click";
play "war_music_stop";
scriptMenuResponse "allies";
close team_americangerman;
}
onFocus
{
play "mouse_over";
}
}
execKey "1" { play "mouse_click"; scriptMenuResponse "allies"; close team_americangerman }

itemDef
{
name "button_german"
visible 1
rect 16 48 160 23
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@MPMENU_2_GERMAN"
textfont UI_FONT_NORMAL
textscale .24
textalignx 10
textaligny 20
action
{
play "mouse_click";
play "war_music_stop";
scriptMenuResponse "axis";
close team_americangerman;
}
onFocus
{
play "mouse_over";
}
}
execKey "2" { play "mouse_click"; scriptMenuResponse "axis"; close team_americangerman }

itemDef
{
name "button_autoassign"
visible 1
rect 16 72 160 23
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@MPMENU_3_AUTOASSIGN"
textfont UI_FONT_NORMAL
textscale .24
textalignx 10
textaligny 20
action
{
play "mouse_click";
play "war_music_stop";
scriptMenuResponse "autoassign";
close team_americangerman;
}
onFocus
{
play "mouse_over";
}
}
execKey "3" { play "mouse_click"; scriptMenuResponse "autoassign"; close team_americangerman }

itemDef
{
name "button_spectate"
visible 1
rect 16 96 160 23
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@MPMENU_4_SPECTATE"
textfont UI_FONT_NORMAL
textscale .24
textalignx 10
textaligny 20
action
{
play "war_music1";
scriptMenuResponse "spectator";
close team_americangerman;
}
onFocus
{
play "mouse_over";
}
}
execKey "4" { play "mouse_click"; scriptMenuResponse "spectator"; close team_americangerman }

////////////////////////////////MESSAGE OF THE DAY//////////////////////////////////////////
itemDef
{
name "text_motd"
visible 1
rect 208 24 216 216
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
autowrapped
cvar "scr_motd"
textfont UI_FONT_NORMAL
textscale .24
textaligny 20
decoration
}
}
}


edited on Oct. 2, 2005 03:47 am by paulo88
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoDUO Mapping
Posted: Sunday, Oct. 2, 2005 10:17 am
To add your own:

Add your own music
Add the music to the .csv file
Alter the menu file so it will play ytour music instead of the one in the mod.

Oh.. this will then be a mod, working on every American map, not just your own, because menu files are used on every map, not just the one you'll be making.

If you want to have music being played just in your own map you'll have to script it in somehow.
Share |
Bullyson
General Member
Since: Mar 7, 2004
Posts: 62
Last: Dec 4, 2006
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Sunday, Oct. 2, 2005 10:21 am
I beleive that was my Mod, as you can see it was just a simple addition of Mouse Click added to the menu. when a player selects spectator to play music. and then another Mouse click to play a Null when a player selects a team, which works as an off...

putting music in a map is something completely different...
Share |
Bullyson
General Member
Since: Mar 7, 2004
Posts: 62
Last: Dec 4, 2006
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Sunday, Oct. 2, 2005 10:29 am
13 clan spectator music v1.2

http://www.maps-n-mods.org/modules.php?name=Downloads&d_op=search&query=

I kinda fizzled out on the project with cod2 on the horizon...

buy u can contact me via www.13clan.com
pccombat@gmail.com
Share |
paulo88
General Member
Since: Apr 18, 2005
Posts: 573
Last: May 8, 2009
[view latest posts]
Level 6
Category: CoDUO Mapping
Posted: Sunday, Oct. 2, 2005 10:49 am
mmmm ? I dont think everyone would be happy if they suddenly got music on ALL their maps !

But if I decide to go ahead with it and providing Bullyson doesn't mind [wink] how would I incorporate this into my pk3. Could I not just alter the pk3 I've got with my choice of music then bundle it with mymap.pk3. ??

Share |
Bullyson
General Member
Since: Mar 7, 2004
Posts: 62
Last: Dec 4, 2006
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Monday, Oct. 10, 2005 09:57 am
If you serously want your own music in the map....this would not be the way to go...

I would recommend simply add the sounds as either background music, from your maps .gsc

or using the tut on here to add sounds,have it triggered thought the .cvs

you can adjust the distance in which its triggered...

using spectator music, is through the Multiplayer Menu...not a good thing to add to a map...in my humble opinion.

way too many conflicts with public servers out there...
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO 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

»