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

2 different game over songs?

broken avatar :(
Created 11 years ago
by zsftw115
0 Members and 1 Guest are viewing this topic.
1,539 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 May 2013
Last active: 10 months ago
Posts
149
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Modding WaW in 2023
Signature
I strongly advise ignoring any previous post I made as an edgy and cynical teenager
×
zsftw115's Groups
I want to add 2 different game over songs, one for just completely dying, and one for beating the map, kind of like Mob of The Derp and I was wondering if it was possible to do it. If it is possible though, how do I do this.
Last Edit: July 01, 2013, 03:16:39 am by zsftw115
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 5 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne'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.
Now don't hold me to this but in _zombiemode.gsc you should find the line:
Code Snippet
Plaintext
setmusicstate("end_of_game");
Add that to the false end of the condition for your end game. Ex. If it has an if statement checking if a level variable is set to true(like the average buyable ending) make sure this line is only in the else statement. Inside the if(for if your end game is true) add a new one called something like:
Code Snippet
Plaintext
setmusicstate("win_game");
Then open *MAPNAME*_amb.csc(clientscript) and find the lines:
Code Snippet
Plaintext
declareMusicState("end_of_game");
musicAlias("mx_game_over", 2);
Add another instance of these two below with  the name changed, ex.
Code Snippet
Plaintext
declareMusicState("win_game"); //Same name that its called in _zombiemode.gsc
musicAlias("mx_game_over", 2); //For the first param call the alias for your song you have added.
As far as I know once you do that it should work, I haven't done it before though so I might be a little off, someone else might have better knowledge of it but I have been told that is how they did it for the end game.

 
Loading ...