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).
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
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.
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.
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
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
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.
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
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
Well, I have the sound commented out and its not being played in-game
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
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...
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