SHARE
TWEET

Untitled

a guest Jul 19th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function back_2_future()
  2.     {
  3.         trig = GetEnt( "begin_future_round", "targetname" );
  4.         trig SetCursorHint( "HINT_NOICON" );
  5.         trig SetHintString( "Press and Hold ^3&&1^7 to Go Back to the Future" );
  6.        
  7.         wait(0.1);
  8.         level.zombie_round_change_custom = &wait_to_tp;
  9.     }
  10.  
  11.     function wait_to_tp()
  12.     {
  13.         PlaySoundAtPosition( "yaw_b2f_theme", (0,0,0) );
  14.         trig = GetEnt( "begin_future_round", "targetname" );
  15.         spots = GetEntArray( "future_spots", "targetname" );
  16.        
  17.         trig SetCursorHint( "HINT_NOICON" );
  18.         trig SetHintString( "Press and Hold ^3&&1^7 to Go Back to the Future" );
  19.        
  20.         trig waittill( "trigger", player );
  21.        
  22.         players = getplayers();
  23.         for( i=0;i<players.size;i++ )
  24.             players thread tp_to_future( spots[i].origin );
  25.        
  26.         wait(8);
  27.        
  28.         level.zombie_round_change_custom = undefined;
  29.        
  30.         if( !IS_TRUE( level.sndMusicSpecialRound ) )
  31.         {
  32.             if( IS_TRUE(level.sndGotoRoundOccurred))
  33.                 level.sndGotoRoundOccurred = false;
  34.             else if( level.round_number == 1 )
  35.                 level thread zm_audio::sndMusicSystem_PlayState( "round_start_first" );
  36.             else if( level.round_number <= 5 )
  37.                 level thread zm_audio::sndMusicSystem_PlayState( "round_start" );
  38.             else
  39.                 level thread zm_audio::sndMusicSystem_PlayState( "round_start_short" );
  40.         }
  41.         zm::round_one_up();
  42.     }
  43.  
  44.     function tp_to_future( org )
  45.     {
  46.         self PlayLocalSound( "yaw_tele_00" );
  47.         self SetBlur( 20, 5 );
  48.         self SetElectrified( 8 );
  49.         wait(5);
  50.         self PlayLocalSound( "yaw_tele_01" );
  51.         self SetOrigin( org );
  52.         self SetBlur( 0, 5 );
  53.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top