Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!function playMusic()
{
level.musicSystemOverride = true;
level.music_playing = 1;
play_2d_Sound(level.easterEggSong);
aliasname = level.easterEggSong;
playback = soundgetplaybacktime(aliasname);
if (isdefined(playback) && playback > 0)
wait(playback * 0.001);
else
wait(350); //this is the song length in seconds
level.musicSystemOverride = false;
level.music_playing = 0;
if(level.multipleActivations)
setupMusic();
}
function play_2D_sound(sound)
{
temp_ent = spawn("script_origin", (0,0,0));
temp_ent PlaySound(sound); //Ethan
}function main()
{
zm_usermap::main();
level.music_playing = 0; //This is the Music Portion I added
level._zombie_custom_add_weapons =&custom_add_weapons;
//Setup the levels Zombie Zone Volumes
level.zones = ;
level.zone_manager_init_func =&usermap_test_zone_init;
init_zones[0] = "start_zone";
level thread zm_zonemgr::manage_zones( init_zones );
thread zm_easteregg_song::init();
level.pathdist_type = PATHDIST_ORIGINAL;
}else //line 4834
{
if(level.music_playing == 0 ) //I ADDED THIS
{ //opened
if( !IS_TRUE( level.sndMusicSpecialRound ) )
{
if( IS_TRUE(level.sndGotoRoundOccurred))
level.sndGotoRoundOccurred = false;
else if( level.round_number == 1 )
level thread zm_audio::sndMusicSystem_PlayState( "round_start_first" );
else if( level.round_number <= 5 )
level thread zm_audio::sndMusicSystem_PlayState( "round_start" );
else
level thread zm_audio::sndMusicSystem_PlayState( "round_start_short" );
}
round_one_up();
// round_text( &"ZOMBIE_ROUND_BEGIN" );
} //closed
}