/***********************************************************************

FRAGCHAMBER_SCIENTIST

***********************************************************************/

model alphalabs3_fragchamber_scientist_head {
	inherit							head_old
	anim panic						models/md5/characters/npcs/heads/alphalabs4/frag_scientist_trigger5.md5anim {
		frame 1							sound_voice snd_talk_primary
	}
	anim relief						models/md5/characters/npcs/heads/alphalabs4/frag_scientist_trigger4.md5anim {
		frame 1							sound_voice snd_talk_secondary
	}
	anim greeting					models/md5/characters/npcs/heads/alphalabs4/frag_scientist_trigger.md5anim {
		frame 1							sound_voice snd_talk_trigger
		frame 100						sound_voice snd_talk_trigger2
	}
	anim thanks						models/md5/characters/npcs/heads/alphalabs4/frag_scientist_trigger13.md5anim {
		frame 1							sound_voice snd_talk_thanks
	}
}

model alphalabs3_fragchamber_scientist {
	inherit							npc_labcoat
	anim stand						models/md5/chars/stand.md5anim
	anim greeting					models/md5/chars/alphalabs4/hey_you.md5anim
	anim panic						models/md5/chars/alphalabs4/freaked_out.md5anim
	anim relief						models/md5/chars/alphalabs4/talk_secondary2.md5anim
	anim thanks						models/md5/chars/alphalabs4/walk_thankyou.md5anim {
		frame 3							sound_body snd_footstep
		frame 17						sound_body snd_footstep
		frame 32						sound_body snd_footstep
		frame 46						sound_body snd_footstep
	}

}

entityDef alphalabs3_fragchamber_scientist {
	"inherit"						"npc_base"
	"model"							"alphalabs3_fragchamber_scientist"
		
	"no_cower"						"1"
	"ignore_obstacles"				"1"
	"def_head"						"alphalabs3_fragchamber_scientist_head"
	"head_joint"					"Shoulders"
	
	"ik_numLegs"					"2"
	"ik_footSize"					"0"
	
	//"look_joint headrot"			"0 0 0"
	"talktime"						"0"

	"look_joint Waist"				"0 0 0"
	"look_joint Chest"				".1 .1 0"
	"look_joint Shoulders"			".3 .3 0"
	"look_joint headcontrol"		".5 .5 0"
	"look_joint Ruparm"				"0 0 0"
	"look_joint Luparm"				"0 0 0"
	
	"cinematic"					"1"

	"copy_joint_world eyecontrol"	""
	"eye_turn_min"					"-20 -30 0"
	"eye_turn_max"					"20 30 0"
	
	"snd_talk_trigger"				"frag_scientist_trigger"	// "Can someone help me?"
	"snd_talk_trigger2"				"frag_scientist_trigger2"	// "Release the door locks"
	"snd_talk_primary"				"frag_scientist_trigger5"	// "Hey!  What are you doing!  Are you trying to kill me?"
	"snd_talk_secondary"			"frag_scientist_trigger4"		// "Oh that was close"
	"snd_talk_thanks"				"frag_scientist_trigger13"		// "Thank you!"
	
	"talk0_blendin"					"8"
	"talk0_blendout"				"8"
	"talk1_blendin"					"8"
	"talk1_blendout"				"8"
	"talk2_blendin"					"8"
	"talk2_blendout"				"8"
}

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

	anim die_start					models/md5/chars/alphalabs4/die_start.md5anim
	anim die						models/md5/chars/alphalabs4/die.md5anim
	anim die_end					models/md5/chars/alphalabs4/die_end.md5anim

}

entityDef alphalabs3_fragchamber_skeleton {
	"inherit"						"npc_base"
	"model"							"alphalabs3_fragchamber_skeleton"
	"sound_bone"					"Chest"	
	"cinematic"						"1"
	
	"def_head"						"head_skull"
	"head_joint"					"Shoulders"
	"copy_joint_world eyecontrol"	""
}


model alphalabs3_fragchamber_scientist2_head {
	inherit							head_old
	anim talk_primary				models/md5/characters/npcs/heads/alphalabs4/frag_scientist_primary.md5anim {
		frame 1							sound_voice snd_talk_primary
	}
	
	anim talk_secondary1			models/md5/characters/npcs/heads/alphalabs4/frag_scientist_secondary.md5anim {
		frame 1							sound_voice snd_talk_secondary
	}
	
	anim talk_secondary2				models/md5/characters/npcs/heads/alphalabs4/frag_scientist_secondary2.md5anim {
		frame 1							sound_voice snd_talk_secondary2
	}
	
	anim trigger13					models/md5/characters/npcs/heads/alphalabs4/frag_scientist_trigger13.md5anim {
		frame 1							sound_voice frag_scientist_trigger13
	}	
	
	anim talk_line1					models/md5/characters/npcs/heads/alphalabs4/frag_scientist_trigger10.md5anim {
		frame 1							sound_voice snd_line1
	}
	
	anim talk_line2					models/md5/characters/npcs/heads/alphalabs4/frag_scientist_trigger11.md5anim {
		frame 1							sound_voice snd_line2
	}
	
	anim talk_line3					models/md5/characters/npcs/heads/alphalabs4/frag_scientist_trigger12.md5anim {
		frame 1							sound_voice snd_line3
	}
}

model alphalabs3_fragchamber_scientist2 {
	inherit							npc_labcoat
	anim pda_idle_look				models/md5/chars/PDA_idle.md5anim
	anim stand						models/md5/chars/PDA_idle.md5anim
	anim idle						models/md5/chars/PDA_talk.md5anim
	anim talk_trigger				models/md5/chars/PDA_talk.md5anim
	anim talk_primary				models/md5/chars/PDA_talk.md5anim
	anim talk_secondary1			models/md5/chars/PDA_talk.md5anim
	anim talk_secondary2			models/md5/chars/PDA_talk.md5anim
	anim talk_line1					models/md5/chars/PDA_talk.md5anim
	anim talk_line2					models/md5/chars/PDA_talk.md5anim
	anim talk_line3					models/md5/chars/PDA_talk.md5anim
}

entityDef alphalabs3_fragchamber_scientist2 {
	"inherit"						"npc_base"
	"skin"							"skins/characters/npcs/alphalabs3_fragchamber_scientist2.skin"
	"model"							"alphalabs3_fragchamber_scientist2"
	"def_head"						"alphalabs3_fragchamber_scientist2_head"
	"head_joint"					"Shoulders"

	"talk_no_turn"					"1"
	"talktime"						"0"
	
	"copy_joint_world eyecontrol"	""
	
	"neverDormant"					"1"		// FIXME: character is intersecting door in map and goes dormant.  this should be removed after we fix that.

	"ik_numLegs"					"2"
	"ik_footSize"					"0"
	
	"def_attach"					"pda_alphalabs3_fragchamber_scientist2"
	"def_dropDeathItem"				"pda_alphalabs3_fragchamber_scientist2"
	"dropDeathItemJoint"			"pda"
	"dropDeathItemRotation"			"0 0 0"
	
	"cinematic"						"1"
	
	"look_joint Waist"				"0 0 0"
	"look_joint Chest"				".1 .1 0"
	"look_joint Shoulders"			".3 .3 0"
	"look_joint headcontrol"		".5 .5 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"	
	
	"snd_line1"						"frag_scientist_trigger10"
	"snd_line2"						"frag_scientist_trigger11"
	"snd_line3"						"frag_scientist_trigger12"
	"snd_talk_trigger"				"frag_scientist_trigger"
	"snd_talk_primary"				"frag_scientist_primary"
	"snd_talk_secondary"			"frag_scientist_secondary"
	"snd_talk_secondary2"			"frag_scientist_secondary2"
	
	"talk0_blendin"					"8"
	"talk0_blendout"				"8"
	"talk1_blendin"					"8"
	"talk1_blendout"				"8"
	"talk2_blendin"					"8"
	"talk2_blendout"				"8"
}


// CINEMATICS

export fred {
	camera	maps/fred/alphalabs3/playershot1.mb -dest models/md5/cinematics/alphalabs3/vagaryintro_cam1
	camera	maps/fred/alphalabs3/vagaryintro2.mb -dest models/md5/cinematics/alphalabs3/vagaryintro_cam2

}

model alphalabs3_vagaryintro_vagary {
	mesh						models/md5/monsters/vagary/vagary.md5mesh
	anim vagaryintro1			models/md5/cinematics/alphalabs3/vagintro_vagary1.md5anim
	anim vagaryintro2			models/md5/cinematics/alphalabs3/vagintro_vagary2.md5anim {
		frame 21				sound_body	monster_demon_vagary_step
		frame 25				sound_body	monster_demon_vagary_step
		frame 26				sound_voice monster_demon_vagary_sigh
		frame 31				sound_body	monster_demon_vagary_step
		frame 38				sound_body	monster_demon_vagary_step
		frame 44				sound_body	monster_demon_vagary_step
		frame 50				sound_body	monster_demon_vagary_step
		frame 55				sound_body	monster_demon_vagary_step
		frame 77				sound_body	monster_demon_vagary_step
		frame 80				sound_body	monster_demon_vagary_step
		frame 84				sound_body	monster_demon_vagary_step
		frame 90				sound_body	monster_demon_vagary_step
		frame 102				sound_body	monster_demon_vagary_step
		frame 124				sound_body	monster_demon_vagary_step
		frame 134				sound_body	monster_demon_vagary_step
		frame 137				sound_body	monster_demon_vagary_step
		frame 145				sound_body	monster_demon_vagary_step
		frame 151				sound_body	monster_demon_vagary_step
		frame 159				sound_body	monster_demon_vagary_step
		frame 166				sound_voice	monster_demon_vagary_groan
		frame 166				sound_body	monster_demon_vagary_step
		frame 175				sound_body	monster_demon_vagary_step
		frame 180				sound_body	monster_demon_vagary_step
		frame 184				sound_body	monster_demon_vagary_step
		frame 190				sound_body	monster_demon_vagary_step
		frame 195				sound_body	monster_demon_vagary_step
		frame 200				sound_body	monster_demon_vagary_step
		frame 205				sound_body	monster_demon_vagary_step
		frame 225				sound_body	monster_demon_vagary_step
		frame 230				sound_body	monster_demon_vagary_step
		frame 235				sound_voice monster_demon_vagary_sigh2
		frame 236				sound_body	monster_demon_vagary_step
		frame 243				sound_body	monster_demon_vagary_step
		frame 250				sound_body	monster_demon_vagary_step
		frame 259				sound_body	monster_demon_vagary_step
		frame 262				sound_body	monster_demon_vagary_step
		frame 270				sound_body	monster_demon_vagary_step
		frame 281				sound_body	monster_demon_vagary_step
		frame 292				sound_body	monster_demon_vagary_step
		frame 295				sound_voice	monster_boss_vagary_chatter_combat
		frame 298				sound_body	monster_demon_vagary_step
		frame 311				sound_body	monster_demon_vagary_step
		frame 320				sound_body	monster_demon_vagary_step
		frame 369				sound_body	monster_demon_vagary_step
		frame 380				sound_body	monster_demon_vagary_step
		frame 385				sound_body	monster_demon_vagary_step
		frame 390				sound_body	monster_demon_vagary_step
		frame 395				sound_body	monster_demon_vagary_step
		frame 400				sound_body	monster_demon_vagary_step
		frame 404				sound_body	monster_demon_vagary_step
		frame 410				sound_body	monster_demon_vagary_step
		frame 415				sound_body	monster_demon_vagary_step
		frame 418				sound_body	monster_demon_vagary_step

		frame 342				sound_voice monster_boss_vagary_sight
	}

	anim retreat				models/md5/cinematics/alphalabs3/vagintro_retreat.md5anim
}

entityDef alphalabs3_vagaryintro_vagary {
	"inherit"					"cin_base"
	"anim"						"vagaryintro"
	"model"						"alphalabs3_vagaryintro_vagary"
	"sound_bone"				"Chest"
	"cinematic"					"1"
}

model alphalabs3_vagaryintro_player {
	mesh						models/md5/characters/player/mocap/wepplayer.md5mesh
	skin						skins/player/shotgun.skin	

	anim vagaryintro1			models/md5/cinematics/alphalabs3/vagintro_player1.md5anim {
		frame 1					sound_global alpha4_vagary_intro_music
		frame 4					sound_body player_sounds_footstep
		frame 17				sound_body player_sounds_footstep
		frame 31				sound_body player_sounds_footstep
		frame 46				sound_body player_sounds_footstep
		frame 59				sound_body player_sounds_footstep
		frame 74				sound_body player_sounds_footstep
		frame 87				sound_body player_sounds_footstep
		frame 103				sound_body player_sounds_footstep
		frame 116				sound_body player_sounds_footstep
	}
	anim vagaryintro2			models/md5/cinematics/alphalabs3/vagintro_player2.md5anim

}

entityDef alphalabs3_vagaryintro_player {
	"inherit"					"cin_base"
	"anim"						"vagaryintro"
	"model"						"alphalabs3_vagaryintro_player" 
	"sound_bone"				"Chest"
	"cinematic"					"1"
}

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

	"anim vagaryintro1"				"models/md5/cinematics/alphalabs3/vagaryintro_cam1.md5camera"
	"anim vagaryintro2"				"models/md5/cinematics/alphalabs3/vagaryintro_cam2.md5camera"

}