UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Spawn music ?

HOT
broken avatar :(
Created 10 years ago
by fusorf
0 Members and 1 Guest are viewing this topic.
13,119 views
broken avatar :(
×
broken avatar :(
Location: fr
Date Registered: 25 July 2015
Last active: 9 months ago
Posts
121
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
//This is a comment
Signature
×
fusorf's Groups
fusorf's Contact & Social LinksfusorffusorfFireFusorf
Hi everyone :)
I would like to have a custom music to play instead of the first round start sound, at the begining of the game. Like a spawn music. (then the round sounds would play normally).

What would be the best way to do that ?
Thanks :)
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
maps/_zombiemode.gsc
Code Snippet
Plaintext
chalk_one_up()
{

if(!IsDefined(level.doground_nomusic))
{
level.doground_nomusic = 0;
}
if( level.first_round )
{
intro = true;
//Play the intro sound at the beginning of the round
//level thread play_intro_VO(); (commented out for Corky)

}

Place a sound you'd like the play in the level.first_round block
broken avatar :(
×
broken avatar :(
Location: gbNewport
Date Registered: 2 November 2014
Last active: 4 years ago
Posts
1,265
Respect
Forum Rank
Zombie Colossus
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Embrace the Darkness
×
Tim Smith's Groups
Tim Smith's Contact & Social LinksTimSmithtimsmith90THEREALBaDBoY17My clan Website
Well if you already have converted sounds then all of the above not needed. Just rename the start round to "chalk_v2" and the end round to " round_over". And copy them to " root/raw/sound/SFX/levels/zombie/chalk " paste and replace them. Thou if you need the original ones " Waw " just grab them from a fresh modtools.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Well if you already have converted sounds then all of the above not needed. Just rename the start round to "chalk_v2" and the end round to " round_over". And copy them to " root/raw/sound/SFX/levels/zombie/chalk " paste and replace them. Thou if you need the original ones " Waw " just grab them from a fresh modtools.

I think he wants to change the power_down_2d sound, or whatever sound it plays at the beginning of the map, or the mx_..., idk, I tried them all I swear. Not the round sounds.

I have not been successful with this at all, sorry. I've been trying for some time. I tried suggestions here, changing in mapname_amb.csc, adding 2d and 3d sounds in mods/mapname that I though it was using to replace it, and I have failed. :( I am pretty sure it can be done, or has been done in maps, I just haven't figured it out yet. I have convinced myself that I like the sound and gave up, lol.  ;D

I have no clue how to stop the start round sound but you could very easily add this to the bottom of your mapname.gsc:

Code Snippet
Plaintext
spawn_music()
{
wait(1);
players = getplayers();
for ( i=0;i<players.size;i++ )
{
players[i] playsound( "your_sound_here" ); // change your_sound_here to your sound alias name
}
}

and then under maps\_zombiemode::main(); add this:
Code Snippet
Plaintext
thread spawn_music();

You would want to playlocalsound I think, playsound would play on the ent for all to hear and not replace the starting sound anyway, just play it over it.




Unless I made a stupid mistake, which is possible. I will try everything one more time to make sure.
If you find out, let me know please.
Last Edit: April 29, 2016, 12:19:09 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: fr
Date Registered: 25 July 2015
Last active: 9 months ago
Posts
121
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
//This is a comment
×
fusorf's Groups
fusorf's Contact & Social LinksfusorffusorfFireFusorf
Thanks for your help everyone ! :)

So I've coded this into the _zombiemode.gsc

Code Snippet
Plaintext
chalk_one_up()
{

if(!IsDefined(level.doground_nomusic))
{
level.doground_nomusic = 0;
}
if( level.first_round )
{
intro = true;
//Play the intro sound at the beginning of the round
//level thread play_intro_VO(); (commented out for Corky)

//INTRO SONG
wait(1);
players = getplayers();
for ( i=0;i<players.size;i++ )
{
players[i] playsound( "gamestart" );
} [...]
The music plays without any issue. Now I would like to prevent the normal "round start" sound to play above it, as it doesn't sound very nice.
Plus there's this "power off" sfx at the start I would like to remove.

Ah and finally, if I die and wait for the game to restart by itself, the spawn music does not play :/
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
your best bet is to wait for MakeCents to figure out what the round start sound is

Lol, I would not hold my breath. I have pretty much given up, lol.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
When I originally saw the post I tried to find out how the power down sound plays and I couldnt even find it in script haha.

Could you do level stopsounds(); and then play the sound? You would know better than I because I just got into scripting

I only know what I've tried really and I haven't tried that. But stopsounds I think is played on the ent, and I think that this starting sound is a music state and/or a 2d sound, where that may not work. But everything is worth a try and who knows what you will learn in the mean time.
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Lol, I would not hold my breath. I have pretty much given up, lol.

Code Snippet
Plaintext
power_down_2d,,SFX\Levels\zombie\maps\giant\power_down_2d.wav,0.9,0.9,1,1,,,,,,,,full_vol,,2d,,,,,,,,,,,,,,,wpn_all,,,,,,,,,,,,,50,80,0.25,1,

In nazi_zombie_factory.csv

Code Snippet
Plaintext
playsound( 0, "power_down_2d", (0,0,0) );

In mapname.csc
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Code Snippet
Plaintext
power_down_2d,,SFX\Levels\zombie\maps\giant\power_down_2d.wav,0.9,0.9,1,1,,,,,,,,full_vol,,2d,,,,,,,,,,,,,,,wpn_all,,,,,,,,,,,,,50,80,0.25,1,

In nazi_zombie_factory.csv

Code Snippet
Plaintext
playsound( 0, "power_down_2d", (0,0,0) );

In mapname.csc

This was one of the things I tried. Replacing that sound, and it just wasn't working. If it works for someone else, please let me know so I can figure out what I was doing wrong to, if you don't mind.

The funny thing is I had this whole sound tut written out to respond to this comment, and got to that thinking duh, this is how it works, and it didn't and I deleted it, :(
Last Edit: April 29, 2016, 06:46:53 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
This was one of the things I tried. Replacing that sound, and it just wasn't working. If it works for someone else, please let me know so I can figure out what I was doing wrong to, if you don't mind.

The funny thing is I had this whole sound tut written out to respond to this comment, and got to that thinking duh, this is how it works, and it didn't and I deleted it, :(

Well, I have the sound commented out and its not being played in-game :P
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Well, I have the sound commented out and its not being played in-game :P

lol, nice. I'll have to try again then. I don't have the sound in my mod tools at all, replaced it everywhere and it still plays it. Will have to delete mod and build again and try again...
Last Edit: April 29, 2016, 06:50:42 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
lol, nice. I'll have to try again then. I don't have the sound in my mod tools at all, replaced it everywhere and it still plays it. Will have to delete mod and build again and try again...

broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
(Image removed from quote.)

Yup. I'll try again tonight, thanks. I was putting a new sound in my mods folder, cause that is how I overwrote the chalk and round sounds, and tried replacing it in raw and it just kept playing the old sound anyway, even when I deleted it, lol.
Last Edit: April 29, 2016, 06:58:34 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: fr
Date Registered: 25 July 2015
Last active: 9 months ago
Posts
121
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
//This is a comment
×
fusorf's Groups
fusorf's Contact & Social LinksfusorffusorfFireFusorf
Well, I have the sound commented out and its not being played in-game :P

Worked for me too :D now we just have to figure out how not to play the first round sound ^^
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Worked for me too :D now we just have to figure out how not to play the first round sound ^^

Oh, I thought that is what we were talking about, lol.

 
Loading ...