model {
	name "m_landing"
	modelfile "objects/landing.lwo"

	materials {
		glow {
			color glow
		}
		stone {
			color stone
		}
		road {
			color road
		}
	}
}


model {
	name "m_circles"
	modelfile "objects/circels.lwo"
	materials {
		glow {
			color glow
			blend 1
			zwrite 0
		}
		stone {
			color stone
			blend 1
			zwrite 0
		}
	}
}

model {
	name "m_hextunnel"
	modelfile "objects/hextunnel.lwo"
	materials {
        Default {
			color tunnel_base
			shader "shr_tunnel"
        }
		tunnel_001 {
			color tunnel_patch1
			shader "shr_tunnel"
		}
		tunnel_002 {
			color tunnel_patch2
			shader "shr_tunnel"
		}
		tunnel_003 {
			color tunnel_patch3
			shader "shr_tunnel"
		}
		tunnel_004 {
			color tunnel_patch4
			shader "shr_tunnel"
		}
		tunnel_005 {
			color tunnel_patch5
			shader "shr_tunnel"
		}
	}
}

md5anim {
	name "a_fall"
	animationfile "robot/hq_fall.md5anim"
}

md5anim {
	name "a_land"
	animationfile "robot/hq_land.md5anim"
}


group {
	name "tunnel"

	scene {
		name "s_scene5_2"
		file "scenes/tunnel_v005.lws"
	}

	camera {
		prio 10
		transform "s_scene5_2.camera"
		nearplane 0.1
		farplane 100000
		fov 35
	}

	light {
		name "m_tunnellight"
		transform "s_scene5_2.light"
		// Masterchannel stuff... (get intensity from here)
		//intensity
	}

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

	object {
		model "m_hextunnel"
		transform "s_scene5_2.tunnel"
		shader "shr_tunnel"
		light "m_tunnellight"
		lightrange 60.0
		lightintensity "s_scene5_2.light_intensity"
	}

	linemesh {
		prio 110
		meshfile "objects/hextunnel_wire.lwo"
		transform "s_scene5_2.tunnel"
		color tunnel_wire
	}

	motionblur__ {
		prio 100000
		name "BLURRR R R RR"
	}

	particles {
	         //passive
                         prio 32
                         name "particles1"
                         texture "t_particle"
                         transform "s_scene5_2.camera.transform"
                         maxparticles 1000
                         particlespersec 1000000000.0
                         size 5.0
                         // attractors {
                         //           ball {
                         //                   force 5.0
                         //                   falloff 0.3
                         //                   positionmodifier "road1.Road1"
                         //           }
                         //           gravity {
                         //                   force 5.0
                         //           }
                         //}
                         emitter {
                                 position (0 -2000 0)
                                 basevelocity (0.0 400.0 0.0)
                                 velmodifier (0.0 20.0 0.0)
                                 color (1.0 0.5 0.1 0.0)
                                 lifetime 2.0
                                 lifetimemodifer 1.0
                                 posmodifier (200.0 3000.0 200.0)
                         }
                }

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

group {
	name "land"

	scene {
		name "s_landing"
		file "scenes/landning_v012.lws"
	}

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

	bones {
	    mesh "m_robot_md5mesh"
	    shadermesh "m_robot_mesh"
		layer0 "a_land" 10 1
		layer1 "a_fall" 0 "s_landing.fallblend"
		layer2 "a_run" "land.localtime" "s_landing.runblend"
		scale 0.1
		rotation (0 -0.25 0)
		transform "s_landing.gubbe"
	}

	object {
		model "m_landing"
		transform "s_landing.landing"
	}
}

