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

Changing "Gane Over" Text and Music?

broken avatar :(
Created 9 years ago
by sickazz7777
0 Members and 1 Guest are viewing this topic.
2,315 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 October 2013
Last active: 9 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
sickazz7777's Groups
sickazz7777's Contact & Social Linkssickazz7777bigbz92
Hey guys, so I;m pretty much done with my first map, but I would really appreciate if someone knew how to change the Game Over Text and music, I want to tease my next map in the Game Over sound, like what 3arc did with Die Rise to Mob. Thanks for reading guys! :)
broken avatar :(
×
broken avatar :(
Location: usNew Jersey, USA
Date Registered: 8 July 2013
Last active: 6 years ago
Posts
31
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Mapping Beginner
Signature
My First Map, Zombie Help[WIP]: http://ugx-mods.com/forum/index.php?topic=1422.0
×
pvtseacow's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
The game over text is actually kinda easy

Just put this within your maps main function under "zm_usermap::main();"
Code Snippet
Plaintext
level.custom_game_over_hud_elem = &custom_game_over;
and put this at the end of the same file
Code Snippet
Plaintext
function custom_game_over(player, game_over, survived){
    game_over.alignX = "center";
    game_over.alignY = "middle";
    game_over.horzAlign = "center";
    game_over.vertAlign = "middle";
    game_over.y -= 130;
    game_over.foreground = true;
    game_over.fontScale = 3;
    game_over.alpha = 0;
    game_over.color = ( 1.0, 1.0, 1.0 );
    game_over.hidewheninmenu = true;
    game_over SetText( "Text Goes Here" );

    game_over FadeOverTime( 1 );
    game_over.alpha = 1;
    if ( player isSplitScreen() )
    {
        game_over.fontScale = 2;
        game_over.y += 40;
    }

    survived.alignX = "center";
    survived.alignY = "middle";
    survived.horzAlign = "center";
    survived.vertAlign = "middle";
    survived.y -= 100;
    survived.foreground = true;
    survived.fontScale = 2;
    survived.alpha = 0;
    survived.color = ( 1.0, 1.0, 1.0 );
    survived.hidewheninmenu = true;
    if ( player isSplitScreen() )
    {
        survived.fontScale = 1.5;
        survived.y += 40;
    }
}

I will look into game over music, Treyarch should've made it easy
Last Edit: January 17, 2017, 03:59:58 am by pvtseacow
broken avatar :(
×
broken avatar :(
Date Registered: 24 September 2012
Last active: 8 years ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
tbone-5's Groups
tbone-5's Contact & Social Links
its really easy just use this alias

Code Snippet
Plaintext
mus_gameover_intro,,,game_end\game_over.wav,,,UIN_MOD,,,,,BUS_MUSIC,,,,,,100,100,,,,,,,,2,oldest,,,1,1,,,,,,2d,,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,yes,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

 
Loading ...