
//CINEMATICS
	
export fred {

	options -prefix SKULL_
	anim	maps/fred/underground/crazysci_coop1.mb -range 620 795 -dest models/md5/cinematics/underground/coop/transformskull


	options -prefix SUIT_ -keep eyecontrol rshldrpad lshldrpad Lknee Rknee Body Body2 Lhand Lhand1 Rhand Rhand1 headcontrol neckcontrol loneckcontrol SPINNER Rball_r Rtoe_r Lball_r Ltoe_r Chest Shoulders Luparm_orbit Ruparm_orbit Belly Lrib Rrib chair RHANDCONNECTOR LHANDCONNECTOR -parent RHANDCONNECTOR Rhand1 -parent LHANDCONNECTOR Lhand1 -parent headcontrol neckcontrol -parent neckcontrol loneckcontrol -parent loneckcontrol Shoulders  -parent rshldrpad Shoulders -parent lshldrpad Shoulders -parent Body2 Body -parent Hips Body2 -parent SPINNER Body2 -parent Waist SPINNER 

	addoptions -keepmesh marinebodymesh
	addoptions -align ALL

	anim	maps/fred/underground/crazysci_coop1.mb -rotate 180 -range 1 10 -dest models/md5/cinematics/underground/coop/crazysci1_working
	anim	maps/fred/underground/crazysci_coop1.mb -rotate 180 -range 1 224 -dest models/md5/cinematics/underground/coop/crazysci1
	anim	maps/fred/underground/crazysci_coop1.mb -rotate 180 -range 225 795 -dest models/md5/cinematics/underground/coop/crazysci2
	anim	maps/fred/underground/crazysci_coop_start_idle.mb -rotate 180 -range 1 90 -dest models/md5/cinematics/underground/coop/crazysci_loop
	anim	models/characters/male_npc/cycles/idles/stand_180_origin.mb -rotate 180 -dest models/md5/cinematics/underground/coop/180stand

	//sci head

	options -prefix H5_ -keep headcontrol neckcontrol loneckcontrol Leyeaim Reyeaim -parent Head headcontrol -parent Reyeaim Head -parent Leyeaim Head -parent headcontrol neckcontrol -parent neckcontrol loneckcontrol -parent Neck neckcontrol -parent Jaw Head -parent mouth12 Head -parent mouth1 Head -parent mouth2 Head -parent mouth3 Head -parent mouth4 Jaw -parent mouth5 Jaw -parent mouth6 Jaw -parent mouth7 Jaw -parent mouth8 Jaw -parent mouth9 Head -parent mouth10 Head -parent mouth11 Head -parent tongue1 Jaw -parent Lcheek Head -parent Rcheek Head -parent Rnostril Head -parent Lnostril Head -parent Lsmile Head -parent Rsmile Head -parent Rcheek Head -parent Lcheek Head -parent Lsneer Head -parent Rsneer Head -parent Lbrow1 Head -parent Lbrow2 Head -parent Lbrow3 Head -parent Rbrow1 Head -parent Rbrow2 Head -parent Rbrow3 Head -parent Ruplid Head -parent Rlolid Head -parent Luplid Head -parent Llolid Head  
	
	anim models/characters/heads/head05_asian/sci_crazy_start.mb -range 1 224 -rotate 90 -dest models/md5/cinematics/underground/coop/crazyscihead1
	anim models/characters/heads/head05_asian/sci_crazy_start_b.mb -range 200 744 -rotate 90 -dest models/md5/cinematics/underground/coop/crazyscihead2

}

model xbox_underground_coop_sciskull {
	mesh						models/md5/cinematics/underground/chestskull.md5mesh
 
	anim floorskull				models/md5/cinematics/underground/coop/transformskull.md5anim {
		frame 65				sound_voice2 mc_skull_shriek
		frame 90				sound_voice mc_skull_passby
		frame 95				trigger guisting_speaker
		frame 113				trigger roq2_relay
	}
}


entityDef xbox_underground_coop_sciskull {
	"inherit"						"cin_base"
	"anim"							"floorskull"
	"model"							"xbox_underground_coop_sciskull"
}

model xbox_underground_coop_sci2 {
	inherit							npc_labcoat
	
	anim start						models/md5/cinematics/underground/crazy_sci_start.md5anim
	anim crazy_a					models/md5/cinematics/underground/coop/crazysci1.md5anim {
		//frame 1						event disableEyeFocus
		frame 1						sound_global guilt
		frame 1						event ignoreDamage
		frame 16					sound_voice snd_crazy1
		}
	anim crazy_b					models/md5/cinematics/underground/coop/crazysci2.md5anim {
		//frame 1						event disableEyeFocus
		frame 1						event ignoreDamage
		frame 16					sound_voice snd_crazy2
		frame 136					sound_voice snd_crazy3
		frame 206					sound_voice snd_crazy4
		frame 310					trigger roq1_relay
		frame 361					sound_voice snd_crazy5
		}
}

entityDef xbox_underground_coop_sci2 {
	"inherit"						"npc_base"
	"model"							"xbox_underground_coop_sci2"
	"size"							""
	"mass"							"5000"
	"ik_numlegs"					"0"
	"sound_bone"					"Chest"
	"def_head"						"xbox_underground_coop_scihead"
	"head_joint"					"Shoulders"	
	//"def_dropDeathItem9"			"moveable_item_pistol"
	//"dropDeathItem9Joint"			"pistol"
	//"skin_dropDeath"				"skins/characters/npcs/labcoat_asian.skin"

	"copy_joint_world eyecontrol"	""

	"snd_crazy1"					"scinuts1a"
	"snd_crazy2"					"scinuts2a"
	"snd_crazy3"					"scinuts3a"	
	"snd_crazy4"					"scinuts4a"
	"snd_crazy5"					"scinuts5a"
	"snd_crazy6"					"scinutsend"
}

model xbox_underground_coop_scihead {
	mesh							models/md5/characters/npcs/heads/h5.md5mesh
	anim idle						models/md5/characters/npcs/heads/h5idle.md5anim
	anim crazy_a					models/md5/cinematics/underground/coop/crazyscihead1.md5anim	
	anim crazy_b					models/md5/characters/npcs/heads/underground/sci_crazy_start_c.md5anim
}

model xbox_underground_coop_zombhead {
	mesh							models/md5/characters/npcs/heads/h5.md5mesh
	anim idle						models/md5/characters/npcs/heads/h5idle.md5anim
	anim stand						models/md5/characters/npcs/heads/h5idle.md5anim
	anim crazy_a					models/md5/cinematics/underground/coop/crazyscihead1.md5anim
	anim crazy_b					models/md5/cinematics/underground/coop/crazyscihead2.md5anim {
		frame 520					sound_voice2 mc_leatherface
		frame 525					trigger transformation_facelight
		frame 530					call setShaderTime
		frame 530					sound_voice zombiesting
		frame 530					skin skins\characters\npcs\head_asian_zomb
	}

	anim transform					models/md5/heads/asian_young/underground/crazy_transform.md5anim {
		frame 65					sound_voice2 mc_leatherface
		frame 65					trigger transformation_facelight
		frame 80					call setShaderTime
		frame 80					sound_voice zombiesting
		frame 80					skin skins\characters\npcs\head_asian_zomb
	}
}

entityDef xbox_underground_coop_sci {
	"inherit"						"monster_zombie_maint_bald"
	"model"							"xbox_underground_coop_sci"
			
	"def_head"						"xbox_underground_coop_zombhead"
	"head_joint"					"Shoulders"

	"bone_orientation"				"Body2"
	"eye_turn_min"					"-20 -30 0"
	"eye_turn_max"					"20 30 0"
	"eye_verticle_offset"			"5"
	"eye_horizontal_offset"			"-8"
	"eye_focus_rate"				"0.5"
	"head_focus_rate"				"0.1"

	"look_min"						"-90 -125 0"
	"look_max"						"25 125 0"
	"look_joint Waist"				"-0.1333 0.1333 0"
	"look_joint Chest"				"-0.1333 0.1333 0"
	"look_joint Shoulders"			"-0.1333 0.1333 0"
	"look_joint headcontrol"		"-0.6 0.6 0"
	"look_joint Ruparm"				"-0.4 0 0"
	"look_joint Luparm"				"-0.4 0 0"	

	"fov"							"360"

	"copy_joint neckcontrol"		"neckcontrol"
	"copy_joint headcontrol"		"headcontrol"
	//"copy_joint_world eyecontrol"	"eyecontrol"


	
	"health"						"1"
	"normal_health"					"80"	// amount of health after turning into a zombie
	"stay_on_attackpath"			"1"		// for him to finish his attack path since he's not a zombie until the end of it
	
	// clear the combat chatter .  we reenable the sound after he turns into a zombie by using a 
	// framecommand to call a script function.
	"snd_chatter_combat"			""
	
	// copied into "snd_chatter_combat" when he turns into a zombie
	"snd_chatter_combat_precache"	"monster_zombie_fat_chatter_combat"

	"snd_crazy1"					"scinuts1a"
	"snd_crazy2"					"scinuts2a"
	"snd_crazy3"					"scinuts3a"	
	"snd_crazy4"					"scinuts4a"
	"snd_crazy5"					"scinuts5a"
	"snd_crazy6"					"scinutsend"

}

model xbox_underground_coop_sci {
	inherit							model_monster_zombie
	mesh							models/md5/monsters/zombies/labcoatzombie.md5mesh
	channel torso					( *Waist )
	channel legs					( origin Body Body2 *Hips -*Waist SPINNER eyecontrol chair)

	skin							skins/monsters/zombies/labcoat.skin
	remove idle
	anim idle						models/md5/cinematics/underground/coop/crazysci_loop.md5anim
	//anim stand						models/md5/cinematics/underground/coop/180stand.md5anim
	anim stand						models/md5/cinematics/underground/coop/crazysci_loop.md5anim


	anim start						models/md5/cinematics/underground/crazy_sci_start.md5anim
	anim crazy_a					models/md5/cinematics/underground/coop/crazysci1.md5anim {
		frame 1						event disableEyeFocus
		frame 15						event enableEyeFocus
		frame 1						sound_global guilt
		//frame 1						event ignoreDamage
		frame 16					sound_voice snd_crazy1
		frame 40						event disableEyeFocus
		frame 70						event enableEyeFocus
		frame 195						event disableEyeFocus
		}
	anim crazy_b					models/md5/cinematics/underground/coop/crazysci2.md5anim {

		frame 16					sound_voice snd_crazy2
		frame 126					event disableEyeFocus
		frame 136					sound_voice snd_crazy3
		frame 180					event enableEyeFocus
		frame 206					sound_voice snd_crazy4
		frame 275					event disableEyeFocus		
		frame 310					trigger roq1_relay
		frame 361					sound_voice snd_crazy5
		frame 520					call "map_mc_underground::crazy_sci_becomeZombie"
		}



	anim backup						models/md5/monsters/zombies/crazybackup.md5anim {
		frame 1							sound_voice2 jonathan_aya
		frame 40						sound_voice2 jonathan_lord_help_us
	
	}
	anim transform					models/md5/monsters/zombies/crazytransform.md5anim {
		frame 15						sound_voice jonathan_huh
		frame 30						sound_voice2 jonathan_no
		frame 80						call "map_mc_underground::crazy_sci_becomeZombie"
	}
}
