
export fred {
 	
	camera	maps/fred/monorail/raisecommando2.mb -dest models/md5/cinematics/monorail/raisecommando_cam
	camera	maps/fred/monorail/crash.mb -dest models/md5/cinematics/monorail/crash_cam
	
	addoptions -prefix ENV_
	mesh	maps/fred/monorail/crash.mb -dest models/md5/cinematics/monorail/crash_debris
	anim	maps/fred/monorail/crash.mb -dest models/md5/cinematics/monorail/crash_debris

}


model monorail_riderhead {
	mesh							models/md5/characters/npcs/heads/h2.md5mesh
	channel eyelids						( Ruplid Rlolid Luplid Llolid )
	
	anim idle						models/md5/characters/npcs/heads/h2idle.md5anim
	anim stand						models/md5/characters/npcs/heads/h2idle.md5anim
	anim blink						models/md5/characters/npcs/heads/h2blink.md5anim
	
	anim notrig						models/md5/characters/npcs/heads/monorail/monorail_riderhead9.md5anim

	anim before_trigger				models/md5/characters/npcs/heads/monorail/monorail_before_trigger.md5anim
	anim hidden						models/md5/characters/npcs/heads/monorail/monorail_riderhead1.md5anim 
	anim surprise					models/md5/characters/npcs/heads/monorail/monorail_riderhead2.md5anim {
		frame 10						sound_voice monorail_suitguy_surprise 
	}
	anim standing					models/md5/characters/npcs/heads/monorail/monorail_riderhead3.md5anim 
	anim sitdown					models/md5/characters/npcs/heads/monorail/monorail_riderhead4.md5anim {
		frame 25							sound_voice monorail_suitguy_trigger
	}
	anim sitting					models/md5/characters/npcs/heads/monorail/monorail_riderhead5.md5anim
	anim talk_primary				models/md5/characters/npcs/heads/monorail/monorail_riderhead6.md5anim {
		frame 1							sound_voice monorail_suitguy_primary
	}
	anim talk_secondary1			models/md5/characters/npcs/heads/monorail/monorail_riderhead7.md5anim {
		frame 1							sound_voice snd_talk_secondary1
	}
	anim talk_secondary2			models/md5/characters/npcs/heads/monorail/monorail_riderhead8.md5anim {
		frame 1							sound_voice snd_talk_secondary2
	}	
}

model monorail_rider {
	mesh							models/md5/chars/labcoat.md5mesh
	channel torso					( *Waist )
	channel legs					( origin Body Body2 *Hips -*Waist SPINNER eyecontrol chair)

	anim af_pose					models/md5/chars/af_pose.md5anim

	anim before_trigger				models/md5/cinematics/monorail/before_trigger.md5anim
	anim hidden						models/md5/cinematics/monorail/before_trigger.md5anim

	//anim hidden						models/md5/cinematics/monorail/rider_hidden.md5anim
	anim surprise					models/md5/cinematics/monorail/rider_surprise.md5anim
	anim standing					models/md5/cinematics/monorail/rider_stand.md5anim
	anim sitdown					models/md5/cinematics/monorail/rider_trigger.md5anim {
//		frame 150						trigger monoplayerclip
//		frame 200						enableEyeFocus
//		frame 221						disableEyeFocus
//		frame 280						enableEyeFocus
//		frame 349						disableEyeFocus
//		frame 430						enableEyeFocus
//		frame 529						disableEyeFocus

		frame 126						trigger monoplayerclip 
		frame 160						trigger monoclip_relay
		frame 176						enableEyeFocus
		frame 197						disableEyeFocus
		frame 256						enableEyeFocus
		frame 325						disableEyeFocus
		frame 406						enableEyeFocus
		frame 505						disableEyeFocus

	}
	anim sitting					models/md5/cinematics/monorail/rider_sit.md5anim
	anim talk_primary				models/md5/cinematics/monorail/rider_primary.md5anim {
		frame 1							enableEyeFocus
	}
	anim talk_secondary1			models/md5/cinematics/monorail/rider_secondary1.md5anim
	anim talk_secondary2			models/md5/cinematics/monorail/rider_secondary2.md5anim
	
	anim notrig						models/md5/cinematics/monorail/rider_notrig.md5anim

	anim cower						models/md5/cinematics/monorail/rider_sit.md5anim
	anim idle						models/md5/cinematics/monorail/rider_sit.md5anim
	anim stand						models/md5/cinematics/monorail/rider_sit.md5anim
	anim turn_left					models/md5/cinematics/monorail/rider_sit.md5anim
	anim turn_right					models/md5/cinematics/monorail/rider_sit.md5anim
	anim pain						models/md5/cinematics/monorail/rider_sit.md5anim
}

entityDef monorail_rider {
	"inherit"						"npc_base"
	"model"							"monorail_rider"
	"talkradius"					"512"
	"turn_rate"						"0"
	"follow_once"					"1"
	"def_head"						"monorail_riderhead"
	"head_joint"					"Shoulders"
	"sound_bone"					"Chest"
	"talktime"						"1"
	"bone_focus"					"headcontrol"
	"bone_leftEye"					"Leyeaim"
	"bone_rightEye"					"Reyeaim"
	"bone_orientation"				"Body2"
	"ik_numLegs"					"0"
	"copy_joint_world eyecontrol"	""

	"look_min"						"-90 -125 0"
	"look_max"						"25 125 0"
	"look_joint Waist"				"0 0 0"
	"look_joint Chest"				"0 0 0"
	"look_joint Shoulders"			".2 .2 0"
	"look_joint headcontrol"		".8 .8 0"
	"look_joint Ruparm"				"0 0 0"
	"look_joint Luparm"				"0 0 0"
	
	"eye_turn_min"					"-20 -30 0"
	"eye_turn_max"					"20 30 0"
	"eye_verticle_offset"			"5"
	"eye_horizontal_offset"			"-8"
	"eye_focus_rate"				"0.05"
	"head_focus_rate"				"0.05"

	"talk0_blendin"					"0"
	"talk0_blendout"				"0"
	"talk1_blendin"					"0"
	"talk1_blendout"				"0"
	"talk2_blendin"					"6"
	"talk2_blendout"				"6"

	"snd_talk_secondary1"			"monorail_suitguy_secondary1"
	"snd_talk_secondary2"			"monorail_suitguy_secondary2"
}

entityDef monorail_raisecommando_cam {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-16 -16 0"
	"editor_maxs"					"16 16 64"
	
	"spawnclass"					"idCameraAnim"

	"anim raise"					"models/md5/cinematics/monorail/raisecommando_cam.md5camera"
	"cinematic"						"1"
}

model monorail_raisecommando_marine1 {
	inherit							npc_marine
	anim raise						models/md5/cinematics/monorail/fallingsoldier.md5anim
}

entityDef monorail_raisecommando_marine1 {
	"inherit"						"npc_base"
	"model"							"monorail_raisecommando_marine1"
	"anim"							"raise"
	"ik_numlegs"					"0"
	"cinematic"						"1"
	"def_head"						"head_bald"
	"head_joint"					"Shoulders"
	"copy_joint_world eyecontrol"	""

}

model monorail_raisecommando_betrugerhead {
	mesh							models/md5/heads/betruger/betruger.md5mesh
	channel eyelids					( Ruplid Rlolid Luplid Llolid )
	
	anim idle						models/md5/heads/betruger/betrugeridle.md5anim
	anim stand						models/md5/heads/betruger/betrugeridle.md5anim
	anim raise						models/md5/heads/betruger/monorail/betruger_raise.md5anim
	anim blink						models/md5/heads/betruger/betrugerblink.md5anim
}


model monorail_raisecommando_betruger {
	inherit							npc_labcoat
	anim raise						models/md5/chars/betruger/monorail/raise.md5anim {
		frame 1							event disableEyeFocus
		frame 1							sound_global monorail_intro_sound
		frame 1							sound_global monorail_intro_music
		frame 5							sound_voice snd_one
		frame 255						sound_voice snd_two
		frame 330						trigger fredsplat1
		frame 338						trigger fredsplat2
		frame 390						sound_voice snd_three
	}
}

entityDef monorail_raisecommando_betruger {
	"inherit"						"npc_base"
	"model"							"monorail_raisecommando_betruger"
	"anim"							"raise"
	"snd_one"						"monorail_betruger_one"
	"snd_two"						"monorail_betruger_two"
	"snd_three"						"monorail_betruger_three"

	"def_head"						"monorail_raisecommando_betrugerhead"
	"head_joint"					"Shoulders"
	"cinematic"						"1"
}

model monorail_raisecommando_changer {
	inherit							npc_marine
	anim raise						models/md5/cinematics/monorail/transforming.md5anim
}

entityDef monorail_raisecommando_changer {
	"inherit"						"npc_base"
	"model"							"monorail_raisecommando_changer"
	"anim"							"raise"
	"cinematic"						"1"
	"def_head"						"head_bald"
	"head_joint"					"Shoulders"
	"copy_joint_world eyecontrol"	""

}

model monorail_raisecommando_zct {
	mesh							models/md5/monsters/zct/zct.md5mesh
	anim raise						models/md5/cinematics/monorail/zct.md5anim
}

entityDef monorail_raisecommando_zct {
	"inherit"						"cin_base"
	"model"							"monorail_raisecommando_zct"
	"anim"							"raise"
	"cinematic"						"1"
}

model monorail_crashsight_player {
	mesh							models/md5/characters/player/mocap/mgplayer.md5mesh
	skin							skins/player/machinegun.skin

	anim crash						models/md5/cinematics/monorail/crash_player.md5anim
	anim walk2stop					models/md5/cinematics/monorail/walk2stopfull.md5anim {
		frame 1						skin skins/player/machinegun.skin
	}
}

entityDef monorail_crashsight_player {
	"inherit"						"cin_base"
	"model"							"monorail_crashsight_player"
	"anim"							"crash"
	"cinematic"						"1"
}

entityDef monorail_crash_cam {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-16 -16 0"
	"editor_maxs"					"16 16 64"
	
	"spawnclass"					"idCameraAnim"

	"anim crash"					"models/md5/cinematics/monorail/crash_cam.md5camera"
	"cinematic"						"1"
}

model monorail_crash_debris {	
	mesh							models/md5/cinematics/monorail/crash_debris.md5mesh
	anim raise						models/md5/cinematics/monorail/crash_debris.md5anim {
		frame 20					sound_voice monorail_metal_01
		frame 60					sound_voice2 monorail_metal_02
		frame 90					sound_voice monorail_metal_03
	}
}

entityDef monorail_crash_debris {	
	"inherit"						"cin_base"
	"model"							"monorail_crash_debris"
	"anim"							"raise"
	"cinematic"						"1"
}