//***************************
//Transparent metal xcross grate
//***************************

textures/meat_metal/metal_xcrosssupport
{
	q3map_lightimage textures/meat_metal/metal_xcrosssupport.tga
	qer_trans .5
	//surfaceparm alphashadow
	surfaceparm trans
	surfaceparm metalsteps	
	cull none
	{
		map textures/meat_metal/metal_xcrosssupport.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//***************************
//Transparent metal grate with square tiny holes
//***************************

textures/meat_metal/metal_gratetiny
{
	q3map_lightimage textures/meat_metal/metal_gratetiny.tga
	qer_trans .5
	//surfaceparm alphashadow
	surfaceparm trans
	surfaceparm metalsteps	
	cull none
	{
		map textures/meat_metal/metal_gratetiny.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//*********************************
//Scrolling Blue panel wall (down)
//*********************************

textures/meat_concrete/concrete_bluepanelmove
{
	qer_editorimage textures/meat_concrete/concrete_bluepanelmove.tga
	surfaceparm nomarks
	{
		map textures/meat_concrete/concrete_bluepanelmove.tga
		rgbGen identity
		tcmod scroll 0 -6
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}	
}

//*********************************
//Scrolling bluesquare panel wall (down)
//*********************************

textures/meat_concrete/concrete_bluesquaremove
{
	qer_editorimage textures/meat_concrete/concrete_bluesquaremove.tga
	surfaceparm nomarks
	{
		map textures/meat_concrete/concrete_bluesquaremove.tga
		rgbGen identity
		tcmod scroll 0 -6
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}	
}

//*********************************
//Scrolling grey wall (down)
//*********************************

textures/meat_concrete/concrete_greymove
{
	qer_editorimage textures/meat_concrete/concrete_greymove.tga
	surfaceparm nomarks
	surfaceparm	nodrop
	{
		map textures/meat_concrete/concrete_greymove.tga
		rgbGen identity
		tcmod scroll 0 -3
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}	
}

//*********************************
//Scrolling Metal Girders (down)
//*********************************

textures/meat_metal/metal_girdermove
{
	qer_editorimage textures/meat_metal/metal_girdersupport.tga
	//qer_trans .5
	surfaceparm alphashadow
	surfaceparm nomarks
	surfaceparm trans	
	surfaceparm playerclip
	surfaceparm metalsteps
	cull none

	{
		map textures/meat_metal/metal_girdersupport.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
		tcmod scroll 0 -3
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//*********************************
//Metal Girders With green glass
//*********************************

textures/meat_metal/metal_girderglass
{
	qer_editorimage textures/meat_metal/metal_girdersupport.tga
	//qer_trans .5
	surfaceparm alphashadow
	surfaceparm nomarks
	surfaceparm trans	
	surfaceparm playerclip
	cull none

	{
		map textures/meat_sfx/sfx_glassgreen_reflection.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		tcGen environment
	}
	{
		map textures/meat_metal/metal_girdersupport.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
}

//*********************************
//Metal Girders Static small
//*********************************

textures/meat_metal/metal_girdersmall
{
	qer_editorimage textures/meat_metal/metal_girdersupportsmall.tga
	//qer_trans .5
	surfaceparm alphashadow
	surfaceparm nomarks
	surfaceparm trans	
	surfaceparm playerclip
	surfaceparm metalsteps
	cull none

	{
		map textures/meat_metal/metal_girdersupportsmall.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//*********************************
//Metal Girders Static
//*********************************

textures/meat_metal/metal_girderstatic
{
	qer_editorimage textures/meat_metal/metal_girdersupport.tga
	//qer_trans .5
	surfaceparm alphashadow
	surfaceparm nomarks
	surfaceparm trans	
	surfaceparm playerclip
	surfaceparm metalsteps
	cull none

	{
		map textures/meat_metal/metal_girdersupport.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//***************************
//Flashing Part of jumpad for Meatpatty
//***************************

textures/meat_objects/objects_sidepadflash
{
	qer_editorimage textures/meat_trim/trim_metalpadside.tga

	{
		map textures/meat_trim/trim_metalpadside.tga
		rgbGen identity
	}	
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}	
	{
		map textures/meat_trim/trim_metalpadsideglow.tga
		blendfunc add
		rgbGen wave sin .1 .5 .0 2.0
	}
}



//***************************
//Transparent metal support girder
//***************************

textures/meat_metal/metal_girdersupport
{
	q3map_lightimage textures/meat_metal/metal_girdersupport.tga
	//qer_trans .5
	surfaceparm alphashadow
	surfaceparm trans	
	cull none

	{
		map textures/meat_metal/metal_girdersupport.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//*********************************
//Rotating Wheel
//*********************************

textures/meat_objects/objects_wheel
{
	qer_editorimage textures/meat_objects/objects_wheel.tga
	surfaceparm nolightmap

	{
		clampmap textures/meat_objects/objects_wheel.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		depthWrite
		tcmod rotate 360
		rgbGen identity
	}
//	{
//		map $lightmap
//		rgbGen identity
//		blendfunc gl_dst_color gl_zero
//	}
}

//*********************************
//Wheel tread Scrolling 
//*********************************

textures/meat_objects/objects_wheeltread
{
	qer_editorimage textures/meat_objects/objects_wheeltread.tga
	cull none

	{
		map textures/meat_objects/objects_wheeltread.tga
		rgbGen identity
		depthWrite
		tcmod scroll 0 -5
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}	
}

//*********************************
//Scrolling metal Track (down)
//*********************************

textures/meat_metal/metal_trackmove
{
	qer_editorimage textures/meat_metal/metal_trackmove.tga

	{
		map textures/meat_metal/metal_trackmove.tga
		rgbGen identity
		tcmod scroll 0 -3
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}	
}


//***************************
//Flashing Health Pad
//***************************

textures/meat_objects/objects_healthpad
{
	qer_editorimage textures/meat_objects/objects_healthpad_base.tga

	{
		map textures/meat_objects/objects_healthpad_base.tga
		rgbGen identity
	}	
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}	
	{
		map textures/meat_objects/objects_healthpad.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .1 .5 .0 .8
	}
}

//***************************
//Target Shader For triggers
//***************************

textures/meat_objects/objects_target
{
	qer_editorimage textures/meat_objects/objects_target.tga

	{
		map textures/meat_objects/objects_target.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/meat_objects/objects_targetlight_01.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .1 2 .4 1	
	}
	{
		map textures/meat_objects/objects_targetlight_02.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .1 2 .2 1	
	}
	{
		map textures/meat_objects/objects_targetlight_03.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .1 2 .0 1	
	}
}

//***************************
//Transparent cyclone fence
//***************************

textures/meat_objects/objects_fence
{
	q3map_lightimage textures/meat_objects/objects_fence.tga
	qer_trans .5
	surfaceparm alphashadow
	surfaceparm trans	
	cull none
	nopicmip
	{
		map textures/meat_objects/objects_fence.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//***************************
//Transparent metal grate with round holes
//***************************

textures/meat_metal/metal_grateroundhole
{
	q3map_lightimage textures/meat_metal/metal_grateroundhole.tga
	qer_trans .5
	//surfaceparm alphashadow
	surfaceparm trans	
	cull none
	{
		map textures/meat_metal/metal_grateroundhole.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}



//***************************
//Red Flashing Skull
//***************************

textures/meat_objects/objects_bigredskull
{
	qer_editorimage textures/meat_objects/objects_bigredskull.tga

	{
		map textures/meat_tile/tile_bloody.tga
		rgbGen identity
	}	
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}	
	{
		clampmap textures/meat_objects/objects_bigredskull.tga
		blendfunc gl_one gl_one
		tcMod scale .32 .32
		rgbGen wave sin .1 .2 .0 1.5
	}
}

//***************************
//Red Rusty Girder
//***************************

textures/meat_metal/metal_girder
{
	q3map_lightimage textures/meat_metal/metal_girder.tga
	//qer_trans .5
	surfaceparm alphashadow
	surfaceparm trans	
	cull none
	{
		map textures/meat_metal/metal_girder.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//***************************
//Red Rusty Support Tall
//***************************

textures/meat_metal/metal_supporttall
{
	q3map_lightimage textures/meat_metal/metal_supporttall.tga
	//qer_trans .5
	surfaceparm alphashadow
	surfaceparm trans	
	cull none
	{
		map textures/meat_metal/metal_supporttall.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}

//***************************
//Rusty Grate rectangle holes
//***************************

textures/meat_metal/metal_rustygrate
{
	q3map_lightimage textures/meat_metal/metal_rustygrate.tga
	qer_trans .5
	//surfaceparm alphashadow
	surfaceparm trans	
	cull none
	{
		map textures/meat_metal/metal_rustygrate.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}		
}





textures/meat_objects/metal_grate_01
{
	surfaceparm	metalsteps
	surfaceparm playerclip
	surfaceparm alphashadow
	surfaceparm	trans	
	cull none


	{
		map textures/meat_objects/metal_grate_01.tga
		tcMod scale 2 2
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GT0
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/meat_objects/metal_grate_02
{
	surfaceparm	metalsteps
	surfaceparm	trans	
	cull none

	// A GRATE OR GRILL THAT CAN BE SEEN FROM BOTH SIDES
	{
		map textures/meat_objects/metal_grate_02.tga
		tcMod scale 2 2
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GT0
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/meat_objects/metal_grate_04
{
	surfaceparm	metalsteps
	surfaceparm	trans	
	cull none

	// A GRATE OR GRILL THAT CAN BE SEEN FROM BOTH SIDES
	{
		map textures/meat_objects/metal_grate_04.tga
		tcMod scale 2 2
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GT0
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}