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

monster_zsec_shotgun.def

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

/****
export shotgun security guy
****/

export james {

	options  -prefix ZOMBIE_ -keep Lknee Rknee Lhand1 Rhand1 eject barrel flash Body Body2 headcontrol neckcontrol loneckcontrol SPINNER -parent headcontrol neckcontrol -parent neckcontrol loneckcontrol -parent loneckcontrol Shoulders -parent rshldrpad Shoulders -parent lshldrpad Shoulders -parent shotgun Rhand1 -parent Body2 Body -parent Hips Body2 -parent SPINNER Body2 -parent Waist SPINNER  -rename sgeject eject -rename sgbarrel barrel -rename sgflash flash -parent eject shotgun -parent flash shotgun -parent barrel shotgun


	addoptions -keepmesh securitybodymesh
	addoptions -keepmesh sec_rshldrmesh
	addoptions -keepmesh sec_lshldrmesh
	addoptions -keepmesh sgmflash1
	addoptions -keepmesh sgmflash2
	addoptions -keepmesh sgmflash3
	addoptions -keepmesh w_shotgunmesh
	addoptions -keepmesh w_shotgunloadermesh
	addoptions -keepmesh skeletonmesh

	mesh	models/monsters/zombie/cycles/zombie_mesh.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/zsecshotgun

	anim	models/monsters/zombie/cycles/idles/shotgun_stand.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/stand
	anim	models/monsters/zombie/cycles/runs/shotgun_run.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/run
	anim	models/monsters/zombie/cycles/walks/shotgun_walk.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/walk
	anim	models/monsters/zombie/cycles/idles/shotgun_sight.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/sight
	//anim	models/monsters/zombie/cycles/pains/shotgun_head_pain1.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/headpain1
	//anim	models/monsters/zombie/cycles/pains/shotgun_head_pain2.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/headpain2
	anim	models/monsters/zombie/cycles/pains/shotgun_chest_pain.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/chestpain
	anim	models/monsters/zombie/cycles/pains/shotgun_left_pain.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/leftarmpain
	anim	models/monsters/zombie/cycles/pains/shotgun_right_pain.mb -rotate 90 -dest models/md5/monsters/zombies/zsec_shotgun/rightarmpain

	addoptions -prefix SUIT_

	anim	maps/fred/underground/ending.mb -range 1 1 -rotate 31 -dest models/md5/cinematics/underground/ending_zsecstart
	anim	maps/fred/underground/ending.mb -range 1 44 -rotate 31 -dest models/md5/cinematics/underground/ending_zsec

}

model model_monster_zsec_shotgun {
	mesh							models/md5/monsters/zombies/zsec_shotgun/zsecshotgun.md5mesh
	channel torso					( *Waist )
	channel legs					( origin Body Body2 *Hips -*Waist SPINNER )

	skin							skins/monsters/zombies/zsecurity_shotgun.skin

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

	anim stand 						models/md5/monsters/zombies/zsec_shotgun/stand.md5anim
	anim idle						models/md5/monsters/zombies/zsec_shotgun/stand.md5anim

	anim surprise					models/md5/monsters/zombies/zsec_shotgun/shotgun_activate_step_right.md5anim {
		frame 12						sound_body monster_zombie_security_footstep
		frame 16						sound_body monster_zombie_security_footstep
		frame 20						sound_body monster_zombie_security_footstep
		frame 23						launch_missile shotgun
		frame 23						sound_weapon monster_shotgun_fire
		frame 38						launch_missile shotgun
		frame 38						sound_weapon monster_shotgun_fire
		frame 54						launch_missile shotgun
		frame 54						sound_weapon monster_shotgun_fire
	}

	anim sight						models/md5/monsters/zombies/zsec_shotgun/sight.md5anim {
		frame 1							sound_voice monster_zombie_security_sight
		frame 1							sound_body monster_zombie_security_footstep
		frame 14						sound_body monster_zombie_security_footstep
	}
	
	anim walk 						models/md5/monsters/zombies/zsec_shotgun/walk.md5anim {
		frame 1							sound_body monster_zombie_security_footstep
		frame 14						sound_body monster_zombie_security_footstep		
	}
		
	anim run 						models/md5/monsters/zombies/zsec_shotgun/run.md5anim {
		frame 8							sound_body monster_zombie_security_footstep		
		frame 18						sound_body monster_zombie_security_footstep		
	}

	anim crouch_range_attack		models/md5/monsters/zombies/zsec_shotgun/crouch_range_attack.md5anim
	anim crouch_range_attack_loop	models/md5/monsters/zombies/zsec_shotgun/crouch_range_attack_loop.md5anim {
		frame 1							sound_weapon monster_shotgun_fire
		frame 1							launch_missile shotgun
	}
	anim crouch_range_attack_end	models/md5/monsters/zombies/zsec_shotgun/crouch_range_attack_end.md5anim
	anim crouch_range_attack_aim	models/md5/monsters/zombies/zsec_shotgun/crouch_range_attack_aim.md5anim

	anim range_attack_aim			models/md5/monsters/zombies/zsec_shotgun/stand_aim.md5anim

	anim step_left					models/md5/monsters/zombies/zsec_shotgun/shotgun_step_left.md5anim {
		frame 6							sound_body monster_zombie_security_footstep
		frame 13						sound_body monster_zombie_security_footstep
	}
	anim step_right 				models/md5/monsters/zombies/zsec_shotgun/shotgun_step_right.md5anim {
		frame 5							sound_body monster_zombie_security_footstep
		frame 12						sound_body monster_zombie_security_footstep
	}

	anim evade_left           		models/md5/monsters/zombies/zsec_shotgun/evade_left.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
		frame 10						sound_body monster_zombie_security_footstep
		frame 19						sound_body monster_zombie_security_footstep
		frame 24						sound_body monster_zombie_security_footstep
		frame 30						sound_body monster_zombie_security_footstep
		frame 32						sound_body monster_zombie_security_footstep
	}
	
	anim evade_right				models/md5/monsters/zombies/zsec_shotgun/evade_right.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
		frame 17						sound_body monster_zombie_security_footstep
		frame 23						sound_body monster_zombie_security_footstep
		frame 29						sound_body monster_zombie_security_footstep
	}
	
	anim stepoutright_out			models/md5/monsters/zombies/zsec_shotgun/wallleanrightshotgun_B.md5anim {
		frame 2							sound_body monster_zombie_security_footstep
	}
	anim stepoutright_fire			models/md5/monsters/zombies/zsec_shotgun/wallleanrightshotgun_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim stepoutright_in			models/md5/monsters/zombies/zsec_shotgun/wallleanrightshotgun_D.md5anim {
		frame 15						sound_body monster_zombie_security_footstep
	}
	anim stepoutright_wait			models/md5/monsters/zombies/zsec_shotgun/wallleanrightshotgun_A.md5anim

	anim stepoutleft_out			models/md5/monsters/zombies/zsec_shotgun/wallleanleftshotgun_B.md5anim {
		frame 4							sound_body monster_zombie_security_footstep
	}
	anim stepoutleft_fire			models/md5/monsters/zombies/zsec_shotgun/wallleanleftshotgun_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim stepoutleft_in				models/md5/monsters/zombies/zsec_shotgun/wallleanleftshotgun_D.md5anim {
		frame 15						sound_body monster_zombie_security_footstep
	}
	anim stepoutleft_wait			models/md5/monsters/zombies/zsec_shotgun/wallleanleftshotgun_A.md5anim

	anim leanoutright_out			models/md5/monsters/zombies/zsec_shotgun/wallleanrightshotgun_B.md5anim {
		frame 2							sound_body monster_zombie_security_footstep
	}
	anim leanoutright_fire			models/md5/monsters/zombies/zsec_shotgun/wallleanrightshotgun_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim leanoutright_in			models/md5/monsters/zombies/zsec_shotgun/wallleanrightshotgun_D.md5anim {
		frame 15						sound_body monster_zombie_security_footstep
	}
	anim leanoutright_wait			models/md5/monsters/zombies/zsec_shotgun/wallleanrightshotgun_A.md5anim


	anim leanoutleft_out			models/md5/monsters/zombies/zsec_shotgun/wallleanleftshotgun_B.md5anim {
		frame 3							sound_body monster_zombie_security_footstep
	}
	anim leanoutleft_fire			models/md5/monsters/zombies/zsec_shotgun/wallleanleftshotgun_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim leanoutleft_in				models/md5/monsters/zombies/zsec_shotgun/wallleanleftshotgun_D.md5anim {
		frame 15						sound_body monster_zombie_security_footstep
	}
	anim leanoutleft_wait			models/md5/monsters/zombies/zsec_shotgun/wallleanleftshotgun_A.md5anim

	anim cratestand_out				models/md5/monsters/zombies/zsec_shotgun/crate_up_B.md5anim
	anim cratestand_fire			models/md5/monsters/zombies/zsec_shotgun/crate_up_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim cratestand_in				models/md5/monsters/zombies/zsec_shotgun/crate_up_D.md5anim
	anim cratestand_wait			models/md5/monsters/zombies/zsec_shotgun/crate_up_A.md5anim

	anim rotoutleft1_out			models/md5/monsters/zombies/zsec_shotgun/wallrotleftshotgun_B.md5anim {
		frame 15						sound_body monster_zombie_security_footstep
	}
	anim rotoutleft1_fire			models/md5/monsters/zombies/zsec_shotgun/wallrotleftshotgun_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim rotoutleft1_in				models/md5/monsters/zombies/zsec_shotgun/wallrotleftshotgun_D.md5anim {
		frame 13						sound_body monster_zombie_security_footstep
	}
	anim rotoutleft1_wait			models/md5/monsters/zombies/zsec_shotgun/wallrotleftshotgun_A.md5anim

	anim rotoutright1_out			models/md5/monsters/zombies/zsec_shotgun/wallrotrightshotgun_B.md5anim {
		frame 16						sound_body monster_zombie_security_footstep
	}
	anim rotoutright1_fire			models/md5/monsters/zombies/zsec_shotgun/wallrotrightshotgun_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim rotoutright1_in			models/md5/monsters/zombies/zsec_shotgun/wallrotrightshotgun_D.md5anim {
		frame 14						sound_body monster_zombie_security_footstep
	}
	anim rotoutright1_wait			models/md5/monsters/zombies/zsec_shotgun/wallrotrightshotgun_A.md5anim

	anim rotoutleft2_out			models/md5/monsters/zombies/zsec_shotgun/wallrotleftshotgun_B.md5anim {
		frame 15						sound_body monster_zombie_security_footstep
	}
	anim rotoutleft2_fire			models/md5/monsters/zombies/zsec_shotgun/wallrotleftshotgun_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim rotoutleft2_in				models/md5/monsters/zombies/zsec_shotgun/wallrotleftshotgun_D.md5anim {
		frame 13						sound_body monster_zombie_security_footstep
	}
	anim rotoutleft2_wait			models/md5/monsters/zombies/zsec_shotgun/wallrotleftshotgun_A.md5anim
	
	anim rotoutright2_out			models/md5/monsters/zombies/zsec_shotgun/wallrotrightshotgun_B.md5anim {
		frame 15						sound_body monster_zombie_security_footstep
	}
	anim rotoutright2_fire			models/md5/monsters/zombies/zsec_shotgun/wallrotrightshotgun_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim rotoutright2_in			models/md5/monsters/zombies/zsec_shotgun/wallrotrightshotgun_D.md5anim {
		frame 14						sound_body monster_zombie_security_footstep
	}
	anim rotoutright2_wait			models/md5/monsters/zombies/zsec_shotgun/wallrotrightshotgun_A.md5anim

	anim range_attack				models/md5/monsters/zombies/zsec_shotgun/raise.md5anim
	anim range_attack_loop1			models/md5/monsters/zombies/zsec_shotgun/stand_fire.md5anim {
		frame 1							sound_weapon monster_shotgun_fire
		frame 1							launch_missile shotgun
	}
	anim range_attack_loop2			models/md5/monsters/zombies/zsec_shotgun/stand_fire.md5anim {
		frame 1							sound_weapon monster_shotgun_fire
		frame 1							launch_missile shotgun
	}
	anim range_attack_end			models/md5/monsters/zombies/zsec_shotgun/lower.md5anim

	anim crate_up_out				models/md5/monsters/zombies/zsec_shotgun/crate_up_B.md5anim
	anim crate_up_fire				models/md5/monsters/zombies/zsec_shotgun/crate_up_C.md5anim {
		frame 2							launch_missile shotgun
		frame 2							sound_weapon monster_shotgun_fire
	}
	anim crate_up_in				models/md5/monsters/zombies/zsec_shotgun/crate_up_D.md5anim
	anim crate_up_wait				models/md5/monsters/zombies/zsec_shotgun/crate_up_A.md5anim

	anim crouch_pain				models/md5/monsters/zombies/zsec_shotgun/shotgun_crouch_left_pain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}

	anim crouch_pain_chest			models/md5/monsters/zombies/zsec_shotgun/shotgun_crouch_left_pain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim crouch_pain_head			models/md5/monsters/zombies/zsec_shotgun/shotgun_crouch_right_pain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim crouch_pain_left_arm		models/md5/monsters/zombies/zsec_shotgun/shotgun_crouch_left_pain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim crouch_pain_right_arm		models/md5/monsters/zombies/zsec_shotgun/shotgun_crouch_right_pain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim pain						models/md5/monsters/zombies/zsec_shotgun/rightarmpain.md5anim{
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim pain_head1					models/md5/monsters/zombies/zsec_shotgun/rightarmpain.md5anim{
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim pain_head2					models/md5/monsters/zombies/zsec_shotgun/rightarmpain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim pain_right_arm			    models/md5/monsters/zombies/zsec_shotgun/rightarmpain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim pain_chest					models/md5/monsters/zombies/zsec_shotgun/leftarmpain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}
	anim pain_left_arm				models/md5/monsters/zombies/zsec_shotgun/leftarmpain.md5anim {
		frame 1							sound_voice monster_zombie_security_pain
	}
}

entityDef monster_zsec_shotgun {
	"inherit"						"monster_zsec_pistol"
	"scriptobject"					"ai"
	"nativeobject"					"rvmMonsterZombieSecurityPistol"
	"size"							"40 40 72"
	"use_aas"						"aas48"
	"team"							"1"
	"rank"							"1"
	"health"						"90"
	"def_projectile"				"projectile_bullet_zsec_shotgun"
	"projectile_spread"				"5"
	"num_projectiles"				"7"
	"attack_cone"					"70"
	"attack_accuracy"				"2"
	"smoke_weapon"					"cgsmoke.smoke"
	"smoke_wound_metal"				"bulletricochet.prt"
	"smoke_wound_ricochet"			"bulletricochet.prt"

	"skin_dropGib"					"skins/monsters/zombies/securitygib.skin"
	"def_dropGibItem1"				"moveable_item_head_pork"
	"dropGibItem1Joint"				"headcontrol"

	"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_dropDeathItem9"			"moveable_item_shotgun"
	"dropDeathItem9Joint"			"shotgun"
	"skin_dropDeath"				"skins/monsters/zombies/zsecurity.skin"

	"ragdoll"						"monster_zombie_security_shotgun"
	"model"							"model_monster_zsec_shotgun"
	"def_head"						"head_zombie5"
	"head_joint"					"Shoulders"

	"mtr_flashShader"				"muzzleflash"
	"flashTime"						"0.15"
	"flashColor"					"1 0.8 0.4"
	"flashRadius"					"240"
}

entityDef damage_bullet_zsec_shotgun {
	"damage"						"3"
	"kickDir"						"1 0 0"

	"mtr_blob"						"genericDamage"
	"blob_time"						"300"
	"blob_size"						"400"
	"blob_offset_x"					"400"

	"knockback"						"0.5"

	"smoke_wound_flesh"				"bloodwound.smoke"
	"mtr_wound_flesh"				"textures/decals/hurt02"
	"mtr_splat_flesh"				"textures/decals/dsplat2"
	"mtr_splat_flesh2"				"textures/decals/dsplat5"
	"mtr_splat_flesh3"				"textures/decals/dsplat7"
	"mtr_splat_flesh4"				"textures/decals/dsplat11"
	"snd_flesh"						"shotgun_impact_flesh"

	"kick_time"						"400"
	"kick_amplitude"				"1"

	"dv_time"						"100"
}

entityDef projectile_bullet_zsec_shotgun {
	"spawnclass"					"idProjectile"
	"mins"							"-1 -1 -1"
	"maxs"							"1 1 1"
	"cone"							"2"
	"scale"							"0.1"
	"noshadows"						"1"
									
	"snd_ricochet"					"bullet_ricochet"
	"snd_impact"					"shotgun_impact_metal"

	"def_damage"					"damage_bullet_zsec_shotgun"

	"launchFromBarrel"				"0"
	"health"						"0"
	"velocity"						"7200 0 0"	// .38 Special 600 fps.  Source: Petzal, David E. "How fast is a speeding bullet." Field and Stream. 97 (1992): 23
	"angular_velocity"				"0 0 0"
	"thrust"						"0"
	"thrust_start"					"0"
	"thrust_end"					"0"
	"linear_friction"				"0"
	"angular_friction"				"0"
	"contact_friction"				"0"
	"bounce"						"0.6"
	"mass"							"1.0"
	"gravity"						"0"
	"fuse"							"4"

	"detonate_on_fuse"				"0"
	"detonate_on_death"				"0"
	"detonate_on_world"				"1"
	"detonate_on_actor"				"1"

	"impact_damage_effect"			"1"
	"impact_gib"					"1"
									
	"mtr_detonate"					"textures/decals/bulleth02"
	"decal_size"					"10"

	"smoke_fly"						""
	"smoke_detonate"				"smokeandspark.smoke"
	"smoke_bounce"					"sparkdebris.smoke"
	"smoke_fuse"					""

	"mtr_light_shader"				""
	"light_color"					"0 0 0"
	"light_radius"					"0"
	"light_offset"					"0 0 0"

	"mtr_explode_light_shader"		""
	"explode_light_color"			"0 0 0"
	"explode_light_radius"			"0"
	"explode_light_fadetime"		"0"
}
