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

Environments

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

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

Kitchen Servers and Table

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

export env_export_01 {
	options -prefix ENV_
	mesh	models/Fred/imp_kitchen_jim.ma -dest models/Fred/env_kitchen
	anim	models/Fred/imp_kitchen_jim_idle.ma -dest models/Fred/env_kitchen_idle
	anim	models/Fred/imp_kitchen_jim.ma -dest models/Fred/env_kitchen
}

entityDef env_kitchen {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-16 -16 0"
	"editor_maxs"					"16 16 64"
									
	"spawnclass"					"idAnimatedEntity"								
	"start_anim"					"idle"
	"anim"							"active"

	"model"							"env_kitchen"
}


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

Severed Zombie 

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


export env_export_02 {
	options -prefix Z1_ -parent spine1 hand
	mesh	models/monsters/zombie/zombie01/severed/idle.mb -dest models/monsters/zombie/zombie01/severed/idlemesh
	anim	models/monsters/zombie/zombie01/severed/idle.mb -dest models/monsters/zombie/zombie01/severed/idleanim
	anim	models/monsters/zombie/zombie01/severed/wake.mb -dest models/monsters/zombie/zombie01/severed/wakeanim
	
}

entityDef env_severed_zombie {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-16 -16 0"
	"editor_maxs"					"16 16 64"
									
	"spawnclass"					"idAnimatedEntity"								
	"start_anim"					"idle"
	"anim"							"active"

	"model"							"env_severed_zombie"
}

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

Pinky_Pipes 

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


export env_export_03 {
	options -prefix PIPES_
	mesh	maps/fred/wall/pipes_bust2.mb -dest maps/fred/wall/pipemesh
	anim	maps/fred/wall/pipes_bust2.mb -range 1 3 -dest maps/fred/wall/pipeidleanim
	anim	maps/fred/wall/pipes_bust2.mb -range 1 151 -dest maps/fred/wall/pipeanim
	
}

entityDef env_pinky_pipes {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-16 -16 0"
	"editor_maxs"					"16 16 64"
									
	"spawnclass"					"idAnimatedEntity"
	"cinematic"						"1"
	"start_anim"					"idle"
	"anim"							"active"

	"model"							"env_pinky_pipes"
}

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

enpro_wall 

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

export env_export_04 {
	options -prefix ENPRO_ -align ALL
	mesh	maps/fred/enprowall/idle.mb
	anim	maps/fred/enprowall/fullanim.mb -range 1 2 -dest maps/fred/enprowall/idle
	anim	maps/fred/enprowall/fullanim.mb -range 1 310 -dest maps/fred/enprowall/fullanim
	anim	maps/fred/enprowall/fullanim.mb -range 1 26 -dest maps/fred/enprowall/one
	anim	maps/fred/enprowall/fullanim.mb -range 26 70 -dest maps/fred/enprowall/two
	anim	maps/fred/enprowall/fullanim.mb -range 78 96 -dest maps/fred/enprowall/three
	anim	maps/fred/enprowall/fullanim.mb -range 131 160 -dest maps/fred/enprowall/four	
	anim	maps/fred/enprowall/fullanim.mb -range 167 239 -dest maps/fred/enprowall/five
	anim	maps/fred/enprowall/fullanim.mb -range 240 260 -dest maps/fred/enprowall/six
	anim	maps/fred/enprowall/fullanim.mb -range 252 310 -dest maps/fred/enprowall/seven
}

entityDef env_enprowall {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-16 -16 0"
	"editor_maxs"					"16 16 64"
									
	"spawnclass"					"idAnimatedEntity"								
	"start_anim"					"idle"
	"anim"							"active"

	"model"							"env_enprowall"
}

/***************************************************
shaking_shelf

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


export env_export_05 {
	options -prefix SHELF_ -align ALL
	mesh	maps/fred/controlroom/shake.mb -dest maps/fred/controlroom/shelfmesh
	anim	maps/fred/controlroom/shake.mb -range 1 2 -dest maps/fred/controlroom/shelfidle
	anim	maps/fred/controlroom/shake.mb -dest maps/fred/controlroom/shelfanim
	
}

entityDef shaking_shelf {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-16 -16 0"
	"editor_maxs"					"16 16 64"
									
	"spawnclass"					"idAnimatedEntity"								
	"start_anim"					"idle"
	"anim"							"active"

	"model"							"shaking_shelf"
}

/***************************************************
sencpu

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

export env_export_06 {
	options -prefix ENV_ 
	mesh	maps/fred/sencpu/sencpu.mb -dest maps/fred/sencpu/sencpumesh
	anim	maps/fred/sencpu/sencpu.mb -range 0 1 -dest maps/fred/sencpu/sencpuidle
	anim	maps/fred/sencpu/sencpu.mb -range 2 92 -dest maps/fred/sencpu/sencpuanim
	
}

entityDef env_sencpu {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-16 -16 0"
	"editor_maxs"					"16 16 64"
									
	"spawnclass"					"idAnimatedEntity"								
	"start_anim"					"idle"
	"anim"							"active"

	"model"							"env_sencpu"
}

/***************************************************
Rope
***************************************************/

export env_export_07 {
	options -prefix ROPE_
	mesh	models/Fred/rope.mb -dest models/Fred/ropemesh
	anim	models/Fred/rope.mb -dest models/Fred/ropeanim
}

entityDef env_rope {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-8 -8 -8"
	"editor_maxs"					"8 8 8"

	"editor_usage"					"A rope.\n"

	"spawnclass"					"idHangingAF"

	"model"							"env_rope"
}

/***************************************************
Rope2
***************************************************/


export env_export_08 {
	options -prefix ROPE_
	mesh	models/Fred/rope2.mb -dest models/Fred/ropemesh2
	anim	models/Fred/rope2.mb -dest models/Fred/ropeanim2
}

entityDef env_rope2 {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-8 -8 -8"
	"editor_maxs"					"8 8 8"

	"editor_usage"					"A rope.\n"

	"spawnclass"					"idHangingAF"

	"model"							"env_rope2"
}

/***************************************************
Branch
***************************************************/


export env_export_09 {
	options -prefix BRANCH_
	mesh	models/Fred/branch.mb -dest models/Fred/branchmesh
	anim	models/Fred/branch.mb -dest models/Fred/branchanim
}

entityDef env_branch {
	"editor_color"					"1 .5 0"
	"editor_mins"					"-8 -8 -8"
	"editor_maxs"					"8 8 8"

	"editor_usage"					"A Branch.\n"

	"spawnclass"					"idHangingAF"

	"model"							"env_branch"
}

/***************************************************
chain
***************************************************/

entityDef env_chain {
	"editor_color"					"1 .5 .3"
	"editor_mins"					"?"
	"editor_maxs"					"?"

	"editor_usage"					"A chain hanging down from the ceiling.\n" \
									"\n" \
									"'links'			Number of links in the chain. (default 3)\n" \
									"'length'			Length of the chain. (default number of links times 32)\n" \
									"'width'			Width of a link. (default 8)\n"
	
	"spawnclass"					"idChain"
}

/***************************************************
swinglamp
***************************************************/

entityDef env_swinglamp {
	"editor_color"					"1 .5 .3"
	"editor_mins"					"?"
	"editor_maxs"					"?"

	"editor_usage"					"Lamp attached to one or two chains hanging down from the ceiling.\n" \
									"All the key/value pairs of the 'light' entity can also be used.\n" \
									"\n" \
									"'links'			Number of links in the chain. (default 3)\n" \
									"'length'			Length of the chain. (default number of links times 32)\n" \
									"'width'			Width of a link. (default 8)\n" \
									"'lampmodel'		Model of the lamp attached to the chain(s).\n" \
									"'chainOffset'		x and y offset for two chains. If not set there will only be one chain.\n"

	"spawnclass"					"idMover_Periodic"
}

/***************************************************
multi-model ragdoll
***************************************************/

entityDef env_ragdoll {
	"editor_color"					"1 .5 .3"
	"editor_mins"					"?"
	"editor_maxs"					"?"

	"editor_usage"					"Go away!\n"

	"spawnclass"					"idAFEntity_Generic"
	"snd_bounce"					"ragdoll_bounce"
}

// -----------------------------------------------------------------------------
// Auto-generated model decls converted from entityDef md5mesh animation entries
// -----------------------------------------------------------------------------

model env_kitchen {
	mesh								models/Fred/env_kitchen.md5mesh

	anim active                      models/Fred/env_kitchen.md5anim
	anim idle                        models/Fred/env_kitchen_idle.md5anim
}

model env_severed_zombie {
	mesh								models/monsters/zombie/zombie01/severed/idlemesh.md5mesh

	anim active                      models/monsters/zombie/zombie01/severed/wakeanim.md5anim
	anim idle                        models/monsters/zombie/zombie01/severed/idleanim.md5anim
}

model env_pinky_pipes {
	mesh								maps/fred/wall/pipemesh.md5mesh

	anim looper                      maps/fred/wall/pipeidleanim.md5anim
	anim trigme                      maps/fred/wall/pipeanim.md5anim {
		frame 17                  sound snd_bash1
		frame 54                  sound snd_bash2
		frame 70                  sound snd_bounce1
		frame 78                  sound snd_bounce2
		frame 83                  sound snd_slide
		frame 93                  sound snd_tear
		frame 105                 sound snd_handstep
		frame 108                 sound snd_growl2
		frame 124                 sound snd_handstep
		frame 130                 sound snd_growl3
		frame 134                 sound snd_handstep
		frame 148                 sound snd_footstep
		frame 151                 sound snd_handstep
	}
}

model env_enprowall {
	mesh								maps/fred/enprowall/idle.md5mesh

	anim active                      maps/fred/enprowall/fullanim.md5anim
	anim five                        maps/fred/enprowall/five.md5anim
	anim four                        maps/fred/enprowall/four.md5anim
	anim idle                        maps/fred/enprowall/idle.md5anim
	anim one                         maps/fred/enprowall/one.md5anim
	anim seven                       maps/fred/enprowall/seven.md5anim
	anim six                         maps/fred/enprowall/six.md5anim
	anim three                       maps/fred/enprowall/three.md5anim
	anim two                         maps/fred/enprowall/two.md5anim
}

model shaking_shelf {
	mesh								maps/fred/controlroom/shelfmesh.md5mesh

	anim active                      maps/fred/controlroom/shelfanim.md5anim
	anim idle                        maps/fred/controlroom/shelfidle.md5anim
}

model env_sencpu {
	mesh								maps/fred/sencpu/sencpumesh.md5mesh

	anim active                      maps/fred/sencpu/sencpuanim.md5anim
	anim idle                        maps/fred/sencpu/sencpuidle.md5anim
}

model env_rope {
	mesh								models/Fred/ropemesh.md5mesh

	anim idle                        models/Fred/ropeanim.md5anim
}

model env_rope2 {
	mesh								models/Fred/ropemesh2.md5mesh

	anim idle                        models/Fred/ropeanim2.md5anim
}

model env_branch {
	mesh								models/Fred/branchmesh.md5mesh

	anim idle                        models/Fred/branchanim.md5anim
}
