
md5anim {
	name "a_wakeup"
	animationfile "robot/hq_wakeup.md5anim"
	flags ONCE
}

texture {
	name "t_titlescreen"
	texturefile "textures/title3.tga"
}

model {
	name "m_elevatortunnel"
	modelfile "objects/tunnel.lwo"

	materials {
		tunnel {
			color elevator_tunnel
		}
		platta {
			color elevator_platta
		}
		rings {
			color elevator_rings
		}
	}
}


model {
	name "m_elevator"
	modelfile "objects/hiss_v002.lwo"
	materials {
		platta {
			color elevator_platta
		}

		ramar2 {
			color elevator_frame1
		}

		ramar3 {
			color elevator_frame2
		}

		stolpar {
			color elevator_pillar
		}

		skarm {
			color elevator_screen
			texture "t_monitor"
			blend 1
			zwrite 0
		}
	}
}

monitor {
	name "t_monitor"
	prio -10
	
	endtime 44
	timeperletter 0.02

	noisecolor monitor_noise
	textcolor monitor_text
	writersound "data/sound/writer.wav"

	script {
		text "                                "
		text "      AMD CYBERNETIC BIOS       "
		text "       1.42.17 PRE-RELEASE      "
		text "                                "
		text "                                "
		text "     Loading Synaptic Matrix    "
		text "........................... Done"
		text "                                "
		text "Energy Supply Status............"
		text "........................ Nominal"
		text "                                "
		text "                                "
		text "      HAIKU 1.2PPC 20450211     "
		text "                                "
		text "                                "
		text "---------- UI_Startup ----------"
		text "                                "
		text "Audio .........................."
		text "       /usr/candela/audio/teetow"
		text "                                "
		text "Applications ..................."
		text "           /usr/candela/matricks"
		text "             /usr/candela/phobos"
		text "                                "
		text "global positioning mesh ........"
		text "            /usr/candela/red_com"
		text "                                "
		text "boundary matrix ................"
		text "                /usr/candela/mad"
		text "                                "
		text "--------------------------------"
		text "                                "
		text "Running in testing mode........."
		text "                                "
		text "Initializing...................."
	}
}

// -------------------------------------------------------

group {
	name "scene1_elevator"

	clear { // we must clear again because of the monitor text
		prio 0
		color background
	}

	scene {
		name "s_elevator"
		file "scenes/1_hiss_v005.lws"
	}

	camera {
		prio 10
		transform "s_elevator.camera"
		nearplane 3.6
		farplane 100
		fov 27
	}

	object {
		model "m_elevatortunnel"
		transform "s_elevator.tunnel"
	}

	object {
		prio 200
		model "m_elevator"
		transform "s_elevator.hiss"
	}

	linemesh {
		prio 210
		meshfile "objects/hiss_wire.lwo"
		transform "s_elevator.hiss"
		color elevator_lineglow
		numtravelers 20
	}

	linemesh {
		prio 210
		meshfile "objects/tunnel_wire.lwo"
		transform "s_elevator.tunnel"
		color elevator_lineglow
		numtravelers 100
	}

	bones {
	    mesh "m_robot_md5mesh"
	    shadermesh "m_robot_mesh"
		layer0 "a_wakeup" 0 1
		scale 0.1
		rotation (0 -0.25 0)
		transform "s_elevator.gubbe"
	}
	
	
	picture {
		prio 300
		start (0 0)
		size (640 480)
		color white
		texture "t_titlescreen"
		alphacontrol "s_elevator.titlescreen"
	}
}

group {
	name "scene1_camspin"

	clear { // we must clear again because of the monitor text
		prio 0
		color background
	}

	scene {
		name "s_run1"
		file "scenes/2_startup003_v002.lws"
	}

	camera {
		prio 10
		transform "s_run1.camera"
		nearplane 0.1
		fov 30
	}

	bones {
	    mesh "m_robot_md5mesh"
	    shadermesh "m_robot_mesh"
		layer0 "a_wakeup" "s_run1.waketime" 1
		layer1 "a_run" "s_run1.localtime" "s_run1.runblend"
		scale 0.1
		rotation (0 -0.25 0)
		transform "s_run1.gubbe"
	}

	object {
		model "m_elevatortunnel"
		transform "s_run1.tunnel"
	}

	object {
		prio 200
		model "m_elevator"
		transform "s_run1.hiss"
	}
}

group {
	name "scene1_firstrun"

	clear { // we must clear again because of the monitor text
		prio 0
		color background
	}

	scene {
		name "s_firstrun"
		file "scenes/3_firstrun004.lws"
	}

	camera {
		prio 10
		transform "s_firstrun.camera"
		nearplane 0.1
		fov 30
	}

	bones {
	    mesh "m_robot_md5mesh"
	    shadermesh "m_robot_mesh"
		layer0 "a_run" "globaltimer.localtime" 1
		scale 0.1
		rotation (0 -0.25 0)
		transform "s_firstrun.gubbe"
	}

	object {
		model "m_elevatortunnel"
		transform "s_firstrun.tunnel"
	}

	object__ {
		model "m_robot_run"
		transform "s_firstrun.gubbe"
	}

	object {
		prio 200
		model "m_elevator"
		transform "s_firstrun.hiss"
	}

	picture {
		prio 300
		start (0 0)
		size (640 480)
		color white
		alphacontrol "s_firstrun.whiteout"
	}
}
