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

	Zombies
	
	This should eventually go away

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

entityDef zombie_default {
	"inherit"						"monster_default"
	"blink_min"						"2.0s"
	"blink_max"						"8.0"

	"head_look"						"1"	
	
	"copy_joint neckcontrol"		"neckcontrol"
	"copy_joint headcontrol"		"headcontrol"

	"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"
	
	// gibs common to all zombies
	"gib"						"1"
	
	"snd_gibbed"				"sound_giblets"
	"snd_bounce"				"ragdoll_impact"
	
	"def_dropGibItem1"			"moveable_item_head_pork"
	"dropGibItem1Joint"			"Chest"
	"dropGibItem1Offset"		"0 0 16"

	"def_dropGibItem2"			"moveable_item_torso_pork"
	"dropGibItem2Joint"			"Chest"

	"def_dropGibItem3"			"moveable_item_rup_arm_pork"
	"dropGibItem3Joint"			"Ruparm"

	"def_dropGibItem4"			"moveable_item_left_waist_pork"
	"dropGibItem4Joint"			"Waist"

	"def_dropGibItem5"			"moveable_item_lup_leg_pork"
	"dropGibItem5Joint"			"Lupleg"

	"def_dropGibItem6"			"moveable_item_rup_leg_pork"
	"dropGibItem6Joint"			"Rupleg"

	"def_dropGibItem7"			"moveable_item_rup2_leg_pork"
	"dropGibItem7Joint"			"Rloleg"

	"def_dropGibItem8"			"moveable_item_pelvis_pork"
	"dropGibItem8Joint"			"Hips"

	"def_dropGibItem9"			"moveable_item_skull_pork"
	"dropGibItem9Joint"			"Headcontrol"
	"dropGibItem9Offset"		"0 0 16"

}

export fred {
	options -prefix ZOMBIE_ -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 -sourcedir models/monsters/zombie/cycles/idles -destdir models/md5/monsters/zombies
	
	addoptions -align ALL

		mesh	npcs_mesh2.mb -range 1 1 -dest labcoatzombie -keepmesh labcoatmesh
		mesh	npcs_mesh2.mb -range 1 1 -dest suitzombie -keepmesh suitmesh
		mesh	npcs_mesh2.mb -range 1 1 -dest jumpsuitzombie -keepmesh jumpsuitmesh
		mesh	npcs_mesh2.mb -range 1 1 -dest tshirtzombie -keepmesh soldiermesh
		mesh	npcs_mesh2.mb -range 1 1 -dest marinezombie -keepmesh marinebodymesh
		//mesh	npcs_mesh2.mb -range 1 1 -dest skeletonzombie -keepmesh skeletonmesh
}



export fred {
	options -prefix ZOMBIE_ -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 skeletonmesh

	anim	maps/fred/marscity_2/zombie_eats_marine.mb -range 35 99 -rotate 180 -dest models/md5/cinematics/marscity_2/zkiller_zombie

	anim	maps/eric/commoutside/zombiecam_09.mb -dest models/md5/cinematics/commoutside/zombie_with_camera

	anim	maps/fred/delta2a/zoffice1.mb -xyzprecision 0.01 -quatprecision 0.00006 -rotate 90 -dest models/md5/cinematics/delta2a/zoffice1
	anim	maps/fred/delta2a/zoffice2.mb -rotate 90 -range 1 80 -dest models/md5/cinematics/delta2a/zoffice2start
	anim	maps/fred/delta2a/zoffice2.mb -rotate 90 -range 81 200 -dest models/md5/cinematics/delta2a/zoffice2
	anim	maps/fred/delta2a/zoffice2_end.mb -rotate 90 -range 201 290 -dest models/md5/cinematics/delta2a/zoffice2end

	anim	maps/fred/delta2b/keycardzombie.mb -range 1 1 -rotate 130 -dest models/md5/monsters/zombies/keycardgetupidle
	anim	maps/fred/delta2b/keycardzombie.mb -range 1 50 -rotate 130 -dest models/md5/monsters/zombies/keycardgetup

	mesh	models/monsters/zombie/cycles/idles/pistol_stand.mb -rotate 90 -dest models/md5/monsters/zombies/zombies

	anim	models/monsters/zombie/cycles/heads/sechead.mb -rotate 90 -dest models/md5/monsters/zombies/sechead
	anim	models/monsters/zombie/cycles/heads/zbludhead.mb -rotate 90 -dest models/md5/monsters/zombies/zbludhead
	anim	models/monsters/zombie/cycles/heads/zsgogshead.mb -rotate 90 -dest models/md5/monsters/zombies/zsgogshead
	anim	models/monsters/zombie/cycles/heads/zsreghead.mb -rotate 90 -dest models/md5/monsters/zombies/zsreghead

	anim	models/monsters/zombie/cycles/heads/blink.mb -rotate 90 -dest models/md5/monsters/zombies/blink

	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks.mb -rotate 90 -range 231 256 -dest models/md5/monsters/zombies/swing1
	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks.mb -rotate 90 -range 257 288 -dest models/md5/monsters/zombies/swing2
	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks.mb -rotate 90 -range 295 332 -dest models/md5/monsters/zombies/swing3

	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks.mb -rotate 90 -range 480 513 -dest models/md5/monsters/zombies/flashlightswing1
	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks.mb -rotate 90 -range 530 563 -dest models/md5/monsters/zombies/flashlightswing2
	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks.mb -rotate 90 -range 640 704 -dest models/md5/monsters/zombies/flashlightswing3

	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks2.mb -rotate 180 -range 50 120 -dest models/md5/monsters/zombies/swing4
	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks2.mb -rotate 180 -range 124 176 -dest models/md5/monsters/zombies/swing5
	anim	models/monsters/zombie/cycles/attacks/zombie_swing_attacks2.mb -rotate 180 -range 208 248 -dest models/md5/monsters/zombies/zsight2

	anim	models/monsters/zombie/cycles/idles/crawl_n_getup.mb -rotate 90 -dest models/md5/monsters/zombies/zcrawl_n_getup
	anim	models/monsters/zombie/cycles/idles/crawl_n_getup.mb -range 1 1 -rotate 90 -dest models/md5/monsters/zombies/zcrawl_n_getup_idle
	anim	models/monsters/zombie/cycles/idles/flashlight_idle.mb -rotate 90 -dest models/md5/monsters/zombies/zflashidle
	anim	models/monsters/zombie/cycles/idles/flashlight_sight.mb -rotate 90 -dest models/md5/monsters/zombies/zflashsight

	anim	models/monsters/zombie/cycles/idles/zombie_idle.mb -rotate 90 -dest models/md5/monsters/zombies/zidle1
	anim	models/monsters/zombie/cycles/idles/zombie_sight1.mb -rotate 90 -dest models/md5/monsters/zombies/zsight1

	anim	models/monsters/zombie/cycles/walks/zombiewalk1.mb -cycleStart 60 -rotate 180 -dest models/md5/monsters/zombies/zwalk1
	anim	models/monsters/zombie/cycles/walks/flashlightwalk.mb -rotate 180 -dest models/md5/monsters/zombies/flashlightwalk
	anim	models/monsters/zombie/cycles/walks/getup_from_bench.mb -rotate -90 -dest models/md5/monsters/zombies/getup_from_bench
	anim	models/monsters/zombie/cycles/walks/getup_from_bench.mb -rotate -90 -range 1 1 -dest models/md5/monsters/zombies/getup_from_bench_idle

	anim	models/monsters/zombie/cycles/walks/zombie_eats_zombie_on_desk.mb -range 1 80 -dest models/md5/monsters/zombies/deskeatloop
	anim	models/monsters/zombie/cycles/walks/zombie_eats_zombie_on_desk.mb -range 81 105 -dest models/md5/monsters/zombies/deskeatgetup

	anim	models/monsters/zombie/cycles/walks/zombie_eats_fatty_on_floor.mb -rotate 90 -range 1 60 -dest models/md5/monsters/zombies/flooreatloop
	anim	models/monsters/zombie/cycles/walks/zombie_getsup_aftereating_fatty_on_floor.mb -rotate 90 -range 61 150 -dest models/md5/monsters/zombies/flooreatgetup


	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 44 63 -rotate 90 -dest models/md5/monsters/zombies/chestpain1
	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 65 83 -rotate 90 -dest models/md5/monsters/zombies/leftarmpain1
	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 85 105 -rotate 90 -dest models/md5/monsters/zombies/rightarmpain1
	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 108 125 -rotate 90 -dest models/md5/monsters/zombies/chestpain2
	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 133 155 -rotate 90 -dest models/md5/monsters/zombies/headpain1
	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 163 185 -rotate 90 -dest models/md5/monsters/zombies/leftarmpain2
	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 187 215 -rotate 90 -dest models/md5/monsters/zombies/leftarmpain3
	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 248 274 -rotate 90 -dest models/md5/monsters/zombies/headpain2
	anim	models/monsters/zombie/cycles/pains/zsec_pistol_pains.mb -range 308 338 -rotate 90 -dest models/md5/monsters/zombies/rightarmpain2

	anim	maps/fred/underground/crazy_into_zombie.mb -rotate -90 -range 440 550 -dest models/md5/monsters/zombies/crazytransform

	anim	maps/fred/underground/airlockencounter.mb -rotate 180 -range 1 80 -dest models/md5/cinematics/underground/airlockfdrag -prefix ZOMBIE2_
	anim	maps/fred/underground/airlockencounter.mb -rotate 180 -range 81 150 -dest models/md5/cinematics/underground/airlockfeatloop -prefix ZOMBIE2_
	anim	maps/fred/underground/airlockencounter.mb -rotate 180 -range 150 186 -dest models/md5/cinematics/underground/airlockfgetup -prefix ZOMBIE2_

	

addoptions -prefix SUIT_
	anim	models/monsters/zombie/cycles/idles/zombie_getup2.mb -range 0 0 -rotate 90 -dest models/md5/monsters/zombies/zombie_getup2_pose	
	anim	models/monsters/zombie/cycles/idles/zombie_getup2.mb -rotate 90 -dest models/md5/monsters/zombies/zombie_getup2
	anim	models/monsters/zombie/cycles/idles/zombie_getup3.mb -range 0 0 -rotate 90 -dest models/md5/monsters/zombies/zombie_getup3_pose
	anim	models/monsters/zombie/cycles/idles/zombie_getup3.mb -rotate 90 -dest models/md5/monsters/zombies/zombie_getup3
	anim	models/monsters/zombie/cycles/idles/zombie_idle1.mb -rotate 90 -dest models/md5/monsters/zombies/zombie_idle1
	anim	models/monsters/zombie/cycles/idles/zombie_idle2.mb -rotate 90 -dest models/md5/monsters/zombies/zombie_idle2
	
	anim	models/monsters/zombie/cycles/idles/influence_hanging.mb -rotate 90 -dest models/md5/monsters/zombies/influence_hanging
	
	anim	maps/fred/underground/crazy_into_zombie.mb -rotate -90 -range 1 110 -dest models/md5/monsters/zombies/crazybackup
	anim	maps/fred/underground/crazy_into_zombie_b.mb -rotate -90 -range 112 440 -dest models/md5/monsters/zombies/crazyloop

	anim	maps/fred/underground/jamesclimbupledge_stand.mb -range 1 1 -rotate 180 -dest models/md5/cinematics/underground/invasion_ledgeclimb_stand
	anim	maps/fred/underground/jamesclimbupledge.mb -rotate 180 -dest models/md5/cinematics/underground/invasion_ledgeclimb
	
}