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

monster_zombie_bernie.def

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

export fred {
	options	-prefix BERNIE_ -scale 1.1 -keep Lknee Rknee -align ALL -keep Neck SPINNER Flamewrist Flametrap Flamehips Flamebutt Flamehead Flamepelvis -parent SPINNER Body2 -parent Waist SPINNER  -sourcedir models/monsters/zombie/bernie/cycles -destdir models/md5/monsters/zombies/bernie
	mesh	bernie_mesh.mb -dest bernie
	anim	af_pose.mb -range 1 1
	anim	stand2.mb -dest stand
	anim	sight1.mb 
	anim	walk1.mb -rotate 90
	anim	swings.mb -rotate 90 -range 381 416 -dest swing1
	anim	swings.mb -rotate 90 -range 417 470 -dest swing2
	anim	swings.mb -rotate 90 -range 477 512 -dest swing3
	anim	swings.mb -rotate 90 -range 642 705 -dest swing4
	anim	swings2.mb -dest swing5
	anim	pain_head.mb -range 287 318 -dest head_pain1
	anim	pain_head.mb -range 124 157 -dest head_pain2
	anim	pain_head.mb -range 159 186 -dest head_pain3
	anim	pain_chest.mb -range 47 73 -dest chest_pain1
	anim	pain_chest.mb -range 100 121 -dest chest_pain2
	anim	pain_leftarm.mb -range 64 100 -dest leftarm_pain1
	anim	pain_leftarm.mb -range 202 233 -dest leftarm_pain2
	anim	pain_rightarm.mb -range 36 65 -dest rightarm_pain1
	anim	pain_rightarm.mb -range 159 186 -dest rightarm_pain2
	anim	spit_attack1.mb
	anim	fastwalk.mb -rotate -90 -range 97 140
}	

model monster_zombie_bernie {
	mesh							models/md5/monsters/zombies/bernie/bernie.md5mesh

	channel torso					( *Waist )
	channel legs					( *origin -*Waist SPINNER )

	anim af_pose					models/md5/monsters/zombies/bernie/af_pose.md5anim
	anim ik_pose					models/md5/monsters/zombies/bernie/af_pose.md5anim

	anim stand						models/md5/monsters/zombies/bernie/stand.md5anim
	anim sight						models/md5/monsters/zombies/bernie/sight1.md5anim {
		frame 1							sound_voice snd_sight
	}
	anim idle						models/md5/monsters/zombies/bernie/stand.md5anim
	anim walk						models/md5/monsters/zombies/bernie/fastwalk.md5anim {
		frame 10						sound_body3 snd_footdrag
		frame 6							sound_body2 snd_footstep
		frame 29						sound_body2 snd_footstep
		frame 37						sound_body snd_footdrag
			}
	anim melee_attack1				models/md5/monsters/zombies/bernie/swing1.md5anim {
		frame 1							sound_voice snd_chatter_combat
		frame 11						melee melee_zombie_maint_Right
	}
	anim melee_attack2				models/md5/monsters/zombies/bernie/swing2.md5anim {
		frame 1							sound_voice snd_chatter_combat
		frame 26						melee melee_zombie_maint_Right
	}
	anim melee_attack3				models/md5/monsters/zombies/bernie/swing3.md5anim {
		frame 1							sound_voice snd_chatter_combat
		frame 14						melee melee_zombie_maint_Left
	}
	anim melee_attack4				models/md5/monsters/zombies/bernie/swing4.md5anim {
		frame 1							sound_voice snd_chatter_combat
		frame 11						melee melee_zombie_maint_Right
		frame 36						melee melee_zombie_maint_Left
	}
	anim melee_attack5				models/md5/monsters/zombies/bernie/swing5.md5anim {
		frame 1							sound_voice snd_chatter_combat
		frame 22						melee melee_zombie_maint_Right
	}
	anim range_attack1				models/md5/monsters/zombies/bernie/spit_attack1.md5anim {
		frame 10						create_missile Jaw
		frame 24						launch_missile Jaw
	}
	
	anim pain						models/md5/monsters/zombies/bernie/head_pain1.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_head1					models/md5/monsters/zombies/bernie/head_pain1.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_head2					models/md5/monsters/zombies/bernie/head_pain2.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_head3					models/md5/monsters/zombies/bernie/head_pain3.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_chest1				models/md5/monsters/zombies/bernie/chest_pain1.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_chest2				models/md5/monsters/zombies/bernie/chest_pain2.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_left_arm1				models/md5/monsters/zombies/bernie/leftarm_pain1.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_left_arm2				models/md5/monsters/zombies/bernie/leftarm_pain2.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_right_arm1			models/md5/monsters/zombies/bernie/rightarm_pain1.md5anim {
			frame 1							sound_voice snd_pain
	}
	anim pain_right_arm2			models/md5/monsters/zombies/bernie/rightarm_pain2.md5anim {
			frame 1							sound_voice snd_pain
	}
}

entityDef monster_zombie_bernie {
	"inherit"						"zombie_default"
	"scriptobject"					"monster_zombie_bernie"
	"ragdoll"						"monster_zombie_bernie"
	"model"							"monster_zombie_bernie"
	"size"							"48 48 68"
	"use_aas"						"aas48"
	"team"							"1"
	"rank"							"0"
	"health"						"150"
	"melee_range"					"32"
	"anim"							"idle"
	"attack_cone"					"70"
	"attack_accuracy"				"0"
	"mass"							"200"

	"look_min"						"-90 -125 0"
	"look_max"						"25 125 0"
	"look_joint Waist"				"0.4 0.4 0"
	"look_joint Head"				"0.6 0.6 0"

	"dropGibItem9Joint"				"Head"

	"chatter_min"					"3"
	"chatter_max"					"4"
	"chatter_combat_min"			"2"
	"chatter_combat_max"			"2"
	
	"skin"							"skins/monsters/zombies/bernie.skin"
	"skin_dropGib"					"skins/monsters/zombies/berniegib.skin"

	"ik_numLegs"					"2"
	"ik_footSize"					"4"
	"ik_waist"						"Body"
	"ik_hip1"						"Lupleg"
	"ik_hip2"						"Rupleg"
	"ik_knee1"						"Lloleg"
	"ik_knee2"						"Rloleg"
	"ik_ankle1"						"Lankle_r"
	"ik_ankle2"						"Rankle_r"
	"ik_dir1"						"Lknee"
	"ik_dir2"						"Rknee"
	"ik_foot1"						"Lball_r"
	"ik_foot2"						"Rball_r"

	"damage_zone head"				"*Neck"
	"damage_zone chest"				"*Waist -*Neck"
	"damage_zone left_arm"			"*Luparm"
	"damage_zone right_arm"			"*Ruparm"
	"damage_zone legs"				"*Hips origin Body2"
	"damage_scale head"				"2"
	
	//"smokeParticleSystem"			"Flamebutt"
	"smokeParticleSystem2"			"Flametrap"
	"smokeParticleSystem3"			"Flamehead"
	"smokeParticleSystem4"			"Flamewrist"
	//"smokeParticleSystem5"			"Flamehips"
	//"smokeParticleSystem6"			"Flamepelvis"

	"snd_sight"						"bernie_sight"
	"snd_footstep"					"monster_zombie_commando_footstep"
	"snd_footdrag"					"bernie_footdrag"
	"snd_melee_attack_1"			"bernie_attack"
	"snd_melee_attack_2"			"bernie_attack"
	"snd_melee_attack_3"			"bernie_attack"
	"snd_chatter"					"bernie_chatter"
	"snd_chatter_combat"			"bernie_chatter_combat"
	"snd_pain"						"bernie_pain"
	"snd_death"						"bernie_death"
	"snd_thud"						"monster_zombie_maint_thud"
	"snd_swipe"						"monster_zombie_maint_swipe"
	"snd_ambient"					"monster_zombie_ambient_burn"

}
