//Generated by BehavEd

rem ( "Background Functions" );
flush (  );
wait ( 1000.000 );
rem ( "Move NPC Jedi 1" );

affect ( "jedi1", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );
	set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
	set ( /*@SET_TYPES*/ "SET_WALKSPEED", 200 );
	wait ( 4000.000 );

	loop ( -1 )
	{
		rem ( "Jedi sits down" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav1_sitdown" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
		rem ( "Jedi gets up and walks to waypoint 2" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav2_garden" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_STAND1" );
		wait ( 8000.000 );
		rem ( "Jedi walks to waypoint 3" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav3_garden" );
		wait ( 8000.000 );
		rem ( "Jedi walks to bench" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav1_garden" );
		wait ( 8000.000 );
	}

}

rem ( "Sit NPC Jedi 2 down" );

affect ( "jedi2", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );

	task ( "jedi2_sit" )
	{
		rem ( "Jedi sits down" );
		set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT6" );
		wait ( 1800.000 );
	}


	loop ( -1 )
	{
		do ( "jedi2_sit" );
	}

}

rem ( "NPC Chat" );

affect ( "jedi3", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );
	set ( /*@SET_TYPES*/ "SET_SKIN", "models/players/jedi_hm/model_a2.skin" );

	task ( "jedi3_talk" )
	{
		rem ( "Jedi talks" );
		set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_TALK1" );
		wait ( 3500.000 );
	}


	loop ( -1 )
	{
		do ( "jedi3_talk" );
	}

}

rem ( "NPC Chat" );

affect ( "jedi4", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );

	task ( "jedi4_talk" )
	{
		rem ( "Jedi talks" );
		set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_TALK1" );
		wait ( 5300.000 );
	}


	loop ( -1 )
	{
		do ( "jedi4_talk" );
	}

}

rem ( "Dead NPC" );

affect ( "jedi5", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );
	set ( /*@SET_TYPES*/ "SET_HEALTH", "0" );
	set ( /*@SET_TYPES*/ "SET_IGNOREPAIN", "true" );
	set ( /*@SET_TYPES*/ "SET_NO_FORCE", "true" );

	task ( "jedi5_dead" )
	{
		rem ( "Jedi lies on floor, dead." );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_DEAD1" );
		wait ( 2000.000 );
	}


	loop ( -1 )
	{
		do ( "jedi5_dead" );
	}

}

rem ( "Sit NPC Jedi 6 down" );

affect ( "jedi6", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );

	task ( "jedi6_sit" )
	{
		rem ( "Jedi sits down" );
		set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT6" );
		wait ( 1800.000 );
	}


	loop ( -1 )
	{
		do ( "jedi6_sit" );
	}

}

rem ( "Sit NPC Jedi 7 down" );

affect ( "jedi7", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );

	task ( "jedi7_sit" )
	{
		rem ( "Jedi sits down" );
		set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT6" );
		wait ( 1800.000 );
	}


	loop ( -1 )
	{
		do ( "jedi7_sit" );
	}

}

rem ( "Sit NPC Jedi 8 down" );

affect ( "jedi8", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );

	task ( "jedi8_sit" )
	{
		rem ( "Jedi sits down" );
		set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT4" );
		wait ( 1800.000 );
	}


	loop ( -1 )
	{
		do ( "jedi8_sit" );
	}

}

rem ( "Sit NPC Jedi 9 down" );

affect ( "jedi9", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );

	task ( "jedi9_sit" )
	{
		rem ( "Jedi sits down" );
		set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT6" );
		wait ( 1800.000 );
	}


	loop ( -1 )
	{
		do ( "jedi9_sit" );
	}

}

rem ( "Sit NPC Jedi 10 down" );

affect ( "jedi10", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );

	task ( "jedi10_sit" )
	{
		rem ( "Jedi sits down" );
		set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT6" );
		wait ( 1800.000 );
	}


	loop ( -1 )
	{
		do ( "jedi10_sit" );
	}

}

rem ( "Move NPC Jedi 11" );

affect ( "jedi11", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );
	set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
	set ( /*@SET_TYPES*/ "SET_WALKSPEED", 200 );
	wait ( 4000.000 );

	loop ( -1 )
	{
		rem ( "Jedi walks to waypoint 1" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp1" );
		set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_STAND1" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 2" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp2" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 3" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp3" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 4" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp4" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 5" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp5" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 6" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp6" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 7" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp7" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 8" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp8" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 9" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp9" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 10" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp10" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 11" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp11" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 12" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp12" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 13" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp13" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 14" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp14" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 15" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp15" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 16" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp16" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 17" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp17" );
		wait ( 4000.000 );
		rem ( "Jedi walks to waypoint 18" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav11_wp18" );
		wait ( 4000.000 );
	}

}

rem ( "Bobbing Screen" );

affect ( "fallingscreen1", /*@AFFECT_TYPE*/ INSERT )
{

	loop ( -1 )
	{
		move ( < 0.000 0.000 30.000 >, < 0.000 0.000 0.000 >, 1000.000 );
		wait ( 1000.000 );
		move ( < 0.000 0.000 0.000 >, < 0.000 0.000 0.000 >, 1000.000 );
		wait ( 1000.000 );
		move ( < 0.000 0.000 -30.000 >, < 0.000 0.000 0.000 >, 1000.000 );
		wait ( 1000.000 );
	}

}


affect ( "fallingscreen1_static", /*@AFFECT_TYPE*/ FLUSH )
{

	loop ( -1 )
	{
		move ( < 0.000 0.000 30.000 >, < 0.000 0.000 0.000 >, 1000.000 );
		wait ( 1000.000 );
		move ( < 0.000 0.000 0.000 >, < 0.000 0.000 0.000 >, 1000.000 );
		wait ( 1000.000 );
		move ( < 0.000 0.000 -30.000 >, < 0.000 0.000 0.000 >, 1000.000 );
		wait ( 1000.000 );
	}

}

rem ( "Script Lambda Shuttle to move, drop off passengers e.t.c" );

affect ( "jedi12", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );
	set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
	set ( /*@SET_TYPES*/ "SET_WALKSPEED", 400 );

	loop ( -1 )
	{
		flush (  );
		set ( /*@SET_TYPES*/ "SET_INVISIBLE", /*@BOOL_TYPES*/ "false" );
		rem ( "Guard walks to Waypoint 0.5" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav0.5_visitor" );
		wait ( 4000.000 );
		rem ( "Guard walks to Waypoint 1" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav1_visitor" );
		wait ( 8000.000 );
		rem ( "Guard walks to Waypoint 2" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav2_visitor" );
		wait ( 8000.000 );
		rem ( "Guard walks to Waypoint 3" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav3_visitor" );
		wait ( 8000.000 );
		rem ( "Guard walks to Waypoint 4" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav4_visitor" );
		wait ( 8000.000 );
		rem ( "Guard walks to Waypoint 5" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav5_visitor" );
		wait ( 8000.000 );
		rem ( "Guard walks to Waypoint 2" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav2_visitor" );
		wait ( 8000.000 );
		rem ( "Guard walks to Waypoint 1" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav1_visitor" );
		wait ( 8000.000 );
		rem ( "Guard walks to Waypoint 0.5" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav0.5_visitor" );
		wait ( 4000.000 );
		rem ( "Guard walks to Waypoint 0" );
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "nav0_visitor" );
		wait ( 2000.000 );
		set ( /*@SET_TYPES*/ "SET_INVISIBLE", /*@BOOL_TYPES*/ "true" );
		wait ( 75000.000 );
	}

}


affect ( "lambda_shuttle", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );
	move ( $tag( "shuttletag_1", ORIGIN)$, < 0.000 135.000 0.000 >, 0.000 );

	loop ( -1 )
	{
		wait ( 68000.000 );
		set ( /*@SET_TYPES*/ "SET_SOLID", /*@BOOL_TYPES*/ "false" );
		move ( $tag( "shuttletag_2", ORIGIN)$, < 0.000 -45.000 0.000 >, 4000.000 );
		wait ( 4000.000 );
		move ( $tag( "shuttletag_3", ORIGIN)$, < 0.000 -45.000 0.000 >, 5000.000 );
		wait ( 60000.000 );
		move ( $tag( "shuttletag_2", ORIGIN)$, < 0.000 135.000 0.000 >, 5000.000 );
		wait ( 5000.000 );
		move ( $tag( "shuttletag_1", ORIGIN)$, < 0.000 135.000 0.000 >, 4000.000 );
		wait ( 4000.000 );
		set ( /*@SET_TYPES*/ "SET_SOLID", /*@BOOL_TYPES*/ "true" );
	}

}

rem ( "Respawn C3PO" );
use ( "C3PO" );
