// ##################################
// #### Casey Shaders cas1-9 ########
// ##################################
// ########## Contents ##############
// ##################################
// ########## Common
// ########## Lights
// ########## Transparent
// ########## SFX
// ########## Liquid + Fog
// ########## Skies
// ########## Vertexlit
// ########## Experimental
// ##################################
// ##################################


// ##################################
// ########## Common ################
// ##################################

textures/ctf_cas_l/clippy
// same as common-clip,... 
// but for some reason clip keeps dissapearing from my editor texture window?
{
	qer_editorimage textures/common/clip.tga
	qer_trans 0.40
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm playerclip
	surfaceparm noimpact
}

textures/ctf_cas_l/grateclip
// clips, weapclips, metalsteps - all in one
{
	qer_trans 0.40
	qer_editorimage textures/common/clip.tga
	surfaceparm metalsteps
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodraw
}

textures/ctf_cas_l/grateclip2
// clips, metalsteps
{
	qer_trans 0.40
	qer_editorimage textures/common/clip.tga
	surfaceparm metalsteps	
	surfaceparm trans
	surfaceparm playerclip
	surfaceparm nodraw
}

textures/ctf_cas_l/grappleclip
// clips, and clips grapple
{
	qer_trans 0.40
	qer_editorimage textures/ctf_cas_l/grapclip.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodraw
	surfaceparm noimpact
}

textures/ctf_cas_l/slick_nograp
{
	qer_editorimage textures/common/slick.tga
	qer_trans 0.50
	surfaceparm nodraw
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm trans
	surfaceparm slick
}


// ^^^^^^^^^^^ Common ^^^^^^^^^^^^^^^
// ##################################
// ############ Lights  #############
// ##################################

textures/ctf_cas_l/caslite_1k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 1000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_3k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 5000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_5k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 5000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_6k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 6000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_8k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 8000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_10k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 10000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_15k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 15000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_15k_nonsolid
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 15000
	surfaceparm nomarks
	surfaceparm nonsolid

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_20k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 20000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_20k_nonsolid
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 20000
	surfaceparm nomarks
	surfaceparm nonsolid

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_25k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 25000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_25k_nonsolid
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 25000
	surfaceparm nomarks
	surfaceparm nonsolid

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/caslite_40k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	q3map_surfacelight 40000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/borderlight_blue_200
{
	qer_editorimage textures/ctf_cas_l/borderlight_b.tga
	q3map_lightimage textures/ctf_cas_l/borderlight_glow.tga
//	q3map_backsplash 3 32
	q3map_surfacelight 200

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/borderlight_red_200
{
	qer_editorimage textures/ctf_cas_l/borderlight_r.tga
	q3map_lightimage textures/ctf_cas_l/borderlight_glow.tga
//	q3map_lightsubdivide 60
//	q3map_backsplash 10 24
	q3map_surfacelight 200	

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/borderlight_blue_300
{
	qer_editorimage textures/ctf_cas_l/borderlight_b.tga
	q3map_lightimage textures/ctf_cas_l/borderlight_glow.tga
//	q3map_backsplash 3 32
	q3map_surfacelight 300	

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/borderlight_red_300
{
	qer_editorimage textures/ctf_cas_l/borderlight_r.tga
	q3map_lightimage textures/ctf_cas_l/borderlight_glow.tga
//	q3map_lightsubdivide 60
//	q3map_backsplash 10 24
	q3map_surfacelight 300	

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/borderlight_blue_500
{
	qer_editorimage textures/ctf_cas_l/borderlight_b.tga
	q3map_lightimage textures/ctf_cas_l/borderlight_glow.tga
//	q3map_backsplash 3 32
	q3map_surfacelight 500	

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/borderlight_red_500
{
	qer_editorimage textures/ctf_cas_l/borderlight_r.tga
	q3map_lightimage textures/ctf_cas_l/borderlight_glow.tga
//	q3map_backsplash 3 32
	q3map_surfacelight 500	

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/borderlight_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wsupprt1_12_50
{
	qer_editorimage textures/base_light/wsupprt1_12.tga
	surfaceparm nomarks
	q3map_surfacelight 50
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.blend.tga
		// rgbGen wave sin 0.5 0.3 1 .5
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wsupprt1_12_200
{
	qer_editorimage textures/base_light/wsupprt1_12.tga
	surfaceparm nomarks
	q3map_surfacelight 200
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.blend.tga
		// rgbGen wave sin 0.5 0.3 1 .5
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wsupprt1_12_400
{
	qer_editorimage textures/base_light/wsupprt1_12.tga
	surfaceparm nomarks
	q3map_surfacelight 400
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.blend.tga
		// rgbGen wave sin 0.5 0.3 1 .5
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wsupprt1_12_500
{
	qer_editorimage textures/base_light/wsupprt1_12.tga
	surfaceparm nomarks
	q3map_surfacelight 500
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.blend.tga
		// rgbGen wave sin 0.5 0.3 1 .5
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wsupprt1_12_800
{
	qer_editorimage textures/base_light/wsupprt1_12.tga
	surfaceparm nomarks
	q3map_surfacelight 800
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/wsupprt1_12.blend.tga
		// rgbGen wave sin 0.5 0.3 1 .5
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wstlt1_3k
{
	qer_editorimage textures/ctf_cas_l/wstlt1_5.tga
	q3map_lightimage textures/ctf_cas_l/wstlt1_5.blend.tga
	q3map_surfacelight 3000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wstlt1_5k
{
	qer_editorimage textures/ctf_cas_l/wstlt1_5.tga
	q3map_lightimage textures/ctf_cas_l/wstlt1_5.blend.tga
	q3map_surfacelight 5000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wstlt1_5k_white
{
	qer_editorimage textures/ctf_cas_l/wstlt1_5.tga
	q3map_lightimage textures/ctf_cas_l/white_glow.tga
	q3map_surfacelight 5000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wstlt1_8k
{
	qer_editorimage textures/ctf_cas_l/wstlt1_5.tga
	q3map_lightimage textures/ctf_cas_l/wstlt1_5.blend.tga
	q3map_surfacelight 8000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wstlt1_8k_white
{
	qer_editorimage textures/ctf_cas_l/wstlt1_5.tga
	q3map_lightimage textures/ctf_cas_l/white_glow.tga
	q3map_surfacelight 8000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wstlt1_10k
{
	qer_editorimage textures/ctf_cas_l/wstlt1_5.tga
	q3map_lightimage textures/ctf_cas_l/wstlt1_5.blend.tga
	q3map_surfacelight 10000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wstlt1_15k
{
	qer_editorimage textures/ctf_cas_l/wstlt1_5.tga
	q3map_lightimage textures/ctf_cas_l/wstlt1_5.blend.tga
	q3map_surfacelight 15000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/wstlt1_15k_white
{
	qer_editorimage textures/ctf_cas_l/wstlt1_5.tga
	q3map_lightimage textures/ctf_cas_l/white_glow.tga
	q3map_surfacelight 15000
	surfaceparm nomarks
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/wstlt1_5.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/plite1_3glow_3000
{
	qer_editorimage textures/base_light/PLITE1_3.tga
	q3map_lightimage textures/ctf_cas_l/PLITE1_3glow.tga
	surfaceparm nomarks
	q3map_surfacelight 3000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/PLITE1_3.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/PLITE1_3glow.tga
		blendfunc GL_ONE GL_ONE
	}
	
}

textures/ctf_cas_l/plite1_3glow_3000
{
	qer_editorimage textures/base_light/PLITE1_3.tga
	q3map_lightimage textures/ctf_cas_l/PLITE1_3glow.tga
	surfaceparm nomarks
	q3map_surfacelight 3000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/PLITE1_3.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/PLITE1_3glow.tga
		blendfunc GL_ONE GL_ONE
	}
	
}

textures/ctf_cas_l/plite1_3glow_6000
{
	qer_editorimage textures/base_light/PLITE1_3.tga
	q3map_lightimage textures/ctf_cas_l/PLITE1_3glow.tga
	surfaceparm nomarks
	q3map_surfacelight 6000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/PLITE1_3.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/PLITE1_3glow.tga
		blendfunc GL_ONE GL_ONE
	}
	
}

textures/ctf_cas_l/proto_blueflash_a_400
{
	q3map_lightimage textures/ctf_cas_l/proto_lightblue.tga
	qer_editorimage textures/ctf_cas_l/proto_lightblue.tga
	surfaceparm nomarks
	q3map_surfacelight 400

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc add
		rgbGen wave square .5 .5 0 1
	}
	
}

textures/ctf_cas_l/proto_blueflash_b_400
{
	q3map_lightimage textures/ctf_cas_l/proto_lightblue.tga
	qer_editorimage textures/ctf_cas_l/proto_lightblue.tga
	surfaceparm nomarks
	q3map_surfacelight 400

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc add
		rgbGen wave square .5 .5 .3 1
	}
	
}

textures/ctf_cas_l/proto_blueflash_c_400
{
	q3map_lightimage textures/ctf_cas_l/proto_lightblue.tga
	qer_editorimage textures/ctf_cas_l/proto_lightblue.tga
	surfaceparm nomarks
	q3map_surfacelight 400

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc add
		rgbGen wave square .5 .5 .6 1
	}
	
}

textures/ctf_cas_l/proto_lightblue_3
{
	qer_editorimage textures/ctf_cas_l/proto_lightblue.tga
	q3map_lightimage textures/ctf_cas_l/proto_lightblue.tga
	surfaceparm nomarks
	q3map_surfacelight 300

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc add
	}
	
}

textures/ctf_cas_l/proto_redflash_a_400
{
	q3map_lightimage textures/base_light/proto_lightred.tga
	qer_editorimage textures/base_light/proto_lightred.tga
	surfaceparm nomarks
	q3map_surfacelight 400

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/proto_lightred.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/base_light/proto_lightred.tga
		blendFunc add
		rgbGen wave square .5 .5 0.5 1
	}
	
}

textures/ctf_cas_l/proto_redflash_b_400
{
	q3map_lightimage textures/base_light/proto_lightred.tga
	qer_editorimage textures/base_light/proto_lightred.tga
	surfaceparm nomarks
	q3map_surfacelight 400

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/proto_lightred.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/base_light/proto_lightred.tga
		blendFunc add
		rgbGen wave square .5 .5 0.8 1
	}
	
}

textures/ctf_cas_l/proto_redflash_c_400
{
	q3map_lightimage textures/base_light/proto_lightred.tga
	qer_editorimage textures/base_light/proto_lightred.tga
	surfaceparm nomarks
	q3map_surfacelight 400

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/proto_lightred.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/base_light/proto_lightred.tga
		blendFunc add
		rgbGen wave square .5 .5 0.2 1
	}
	
}

textures/ctf_cas_l/proto_lightamber_3
{
	qer_editorimage textures/ctf_cas_l/proto_lightamber.tga
	q3map_lightimage textures/ctf_cas_l/proto_lightamber.tga
	surfaceparm nomarks
	q3map_surfacelight 300

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/proto_lightamber.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/proto_lightamber.tga
		blendFunc add
	}
	
}

textures/ctf_cas_l/proto_lightamber_1500
{
	qer_editorimage textures/ctf_cas_l/proto_lightamber.tga
	q3map_lightimage textures/ctf_cas_l/proto_lightamber.tga
	surfaceparm nomarks
	// q3map_lightsubdivide 8
	q3map_surfacelight 1500

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/proto_lightamber.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/ctf_cas_l/proto_lightamber.tga
		blendFunc add
	}
	
}

textures/ctf_cas_l/jaildr_b
{
	qer_editorimage textures/base_light/jaildr03_1.tga
	q3map_lightimage textures/ctf_cas_l/jaildr_b_glow.tga
	surfaceparm nomarks
	q3map_surfacelight 500

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/jaildr03_1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/jaildr_b_glow.tga
		blendfunc GL_ONE GL_ONE
	}

}

textures/ctf_cas_l/jaildr_b_1k
{
	qer_editorimage textures/base_light/jaildr03_1.tga
	q3map_lightimage textures/ctf_cas_l/jaildr_b_glow.tga
	surfaceparm nomarks
	q3map_surfacelight 1000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/jaildr03_1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/jaildr_b_glow.tga
		blendfunc GL_ONE GL_ONE
	}

}

textures/ctf_cas_l/patch10lite_b_100
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	q3map_surfacelight 100
	// q3map_lightsubdivide 8
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_b_300
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	q3map_surfacelight 300
	// q3map_lightsubdivide 8
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_b_500
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	q3map_surfacelight 500
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_b_700
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	q3map_surfacelight 700
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_b_1500
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	q3map_surfacelight 1500
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_b_3k
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	q3map_surfacelight 3000
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_r_100
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	q3map_surfacelight 100
	// q3map_lightsubdivide 8
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_r_300
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	q3map_surfacelight 300
	// q3map_lightsubdivide 8
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_r_500
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	q3map_surfacelight 500
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_r_700
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	q3map_surfacelight 700
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_r_1500
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	q3map_surfacelight 1500
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/patch10lite_r_3k
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	q3map_surfacelight 3000
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_r.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/geolight_fix
{
	qer_editorimage textures/base_light/geolight.tga
	q3map_lightimage textures/ctf_cas_l/geolight_glow_fix.tga
	surfaceparm nomarks
	q3map_surfacelight 1000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/geolight.tga
		blendFunc GL_DST_COLOR GL_SRC_ALPHA
		rgbGen identity
		alphaGen lightingSpecular
	}
        {
		map textures/ctf_cas_l/geolight_glow_fix.tga
		blendFunc add
		rgbgen wave sin .575 .025 0 10
	}
	
}

textures/ctf_cas_l/ceil1_22a_300
{
	surfaceparm nomarks
	qer_editorimage textures/base_light/ceil1_22a
	q3map_surfacelight 300

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_22a.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_22a.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/ceil1_22a_500
{
	surfaceparm nomarks
	qer_editorimage textures/base_light/ceil1_22a
	q3map_surfacelight 500

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_22a.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_22a.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/ceil1_22a_800
{
	surfaceparm nomarks
	qer_editorimage textures/base_light/ceil1_22a
	q3map_surfacelight 800

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_22a.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_22a.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/ceil1_30_300
{
	surfaceparm nomarks
	qer_editorimage textures/base_light/ceil1_30
	q3map_surfacelight 300

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_30.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_30.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/ceil1_30_500
{
	surfaceparm nomarks
	qer_editorimage textures/base_light/ceil1_30
	q3map_surfacelight 500

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_30.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_30.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/ceil1_30_800
{
	surfaceparm nomarks
	qer_editorimage textures/base_light/ceil1_30
	q3map_surfacelight 800

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_30.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_30.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/ironcrosslt1_500
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 500
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/lt2_500
{
	qer_editorimage textures/base_light/light2.tga
	surfaceparm nomarks
	q3map_surfacelight 500

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/light2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/light2.blend.tga
		rgbGen wave sin 0.6 0.1 .1 .1
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/lt2_1000
{
	qer_editorimage textures/base_light/light2.tga
	surfaceparm nomarks
	q3map_surfacelight 1000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/light2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/light2.blend.tga
		rgbGen wave sin 0.6 0.1 .1 .1
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/lt2_6000
{
	qer_editorimage textures/base_light/light2.tga
	surfaceparm nomarks
	q3map_surfacelight 6000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/light2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/light2.blend.tga
		rgbGen wave sin .6 .1 .1 .1
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/lt2_12000
{
	qer_editorimage textures/base_light/light2.tga
	surfaceparm nomarks
	q3map_surfacelight 12000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/light2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/light2.blend.tga
		rgbGen wave sin .6 .1 .1 .1
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/lt2_20000
{
	qer_editorimage textures/base_light/light2.tga
	surfaceparm nomarks
	q3map_surfacelight 20000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/light2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/light2.blend.tga
		rgbGen wave sin .6 .1 .1 .1
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/metalsupport2clight_1500
{
	qer_editorimage textures/base_wall/bluemetalsupport2clight.tga
	surfaceparm nomarks
	q3map_surfacelight 1500

	{
		map textures/base_wall/chrome_env.tga
	        rgbGen identity
		tcGen environment
		tcmod scale .25 .25
	}
	{
		map textures/base_wall/bluemetalsupport2clight.tga
		blendFunc blend	
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc filter
		rgbGen identity
	}
	{
		map textures/base_wall/bluemetalsupport2clight.glow.tga
		blendFunc add
		rgbgen wave sawtooth .6 .1 0 4
	}
}

textures/ctf_cas_l/baslt4_1_6k
{
	qer_editorimage textures/base_light/baslt4_1.tga
	surfaceparm nomarks
	q3map_surfacelight 6000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/baslt4_1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/baslt4_1.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/pewterlight_r_3000
{
	qer_editorimage textures/base_light/light2.tga
	surfaceparm nomarks
	q3map_lightimage textures/base_light/light1red.blend.tga
	q3map_surfacelight 3000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/light2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/light1red.blend.tga
		rgbGen wave sin .6 .1 .1 .1
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/pewterlight_b_3000
{
	qer_editorimage textures/ctf_cas_l/light2_b.tga
	surfaceparm nomarks
	q3map_lightimage textures/base_light/light1blue.blend.tga
	q3map_surfacelight 3000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/light2_b.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/light1blue.blend.tga
		rgbGen wave sin .6 .1 .1 .1
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/flare1 
{
	qer_editorimage textures/ctf_cas_l/flare.tga
	DeformVertexes autosprite
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	{
		clampmap textures/ctf_cas_l/flare.tga
                blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.95 0.1 0 20
	}
}

textures/ctf_cas_l/flare2 
{
	qer_editorimage textures/ctf_cas_l/flare2.tga
	DeformVertexes autosprite
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	{
		clampmap textures/ctf_cas_l/flare2.tga
                blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.95 0.1 0 20
	}
}

textures/ctf_cas_l/flare1_nosprite 
{
	qer_editorimage textures/ctf_cas_l/flare.tga
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	{
		map textures/ctf_cas_l/flare.tga
                blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.95 0.1 0 20
	}
}

textures/ctf_cas_l/flare_blue1
{
	qer_editorimage textures/ctf_cas_l/flare_blue.tga
	DeformVertexes autosprite
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	{
		map textures/ctf_cas_l/flare_blue.tga
                blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.95 0.1 0 20
	}
}

textures/ctf_cas_l/flare_red1
{
	qer_editorimage textures/ctf_cas_l/flare_red.tga
	DeformVertexes autosprite
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	{
		map textures/ctf_cas_l/flare_red.tga
                blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.95 0.1 0 20
	}
}

textures/ctf_cas_l/flare_blue_flash
{
	qer_editorimage textures/ctf_cas_l/flare_blue.tga
	DeformVertexes autosprite
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	{
		map textures/ctf_cas_l/flare_blue.tga
                blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.95 0.1 0 20
		rgbGen wave square .95 1 0 1
	}
}

textures/ctf_cas_l/flare_red_flash
{
	qer_editorimage textures/ctf_cas_l/flare_red.tga
	DeformVertexes autosprite
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	{
		map textures/ctf_cas_l/flare_red.tga
                blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.95 0.1 0 20
		rgbGen wave square .95 1 0.5 1
	}
}

textures/ctf_cas_l/patchlitedecal_r_500
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 500

	{
		map textures/ctf_cas_l/patch10lite_r.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_r_1000
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 1000

	{
		map textures/ctf_cas_l/patch10lite_r.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_r_1500
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 1500

	{
		map textures/ctf_cas_l/patch10lite_r.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_r_3k
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 3000

	{
		map textures/ctf_cas_l/patch10lite_r.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_r_4k
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 4000

	{
		map textures/ctf_cas_l/patch10lite_r.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_r_5k
{
	qer_editorimage textures/ctf_cas_l/patch10lite_r.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 5000

	{
		map textures/ctf_cas_l/patch10lite_r.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise .8 .15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_b_500
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 500

	{
		map textures/ctf_cas_l/patch10lite_b.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_b_1000
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 1000

	{
		map textures/ctf_cas_l/patch10lite_b.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_b_1500
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 1500

	{
		map textures/ctf_cas_l/patch10lite_b.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_b_3k
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 3000

	{
		map textures/ctf_cas_l/patch10lite_b.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_b_4k
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 4000

	{
		map textures/ctf_cas_l/patch10lite_b.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise 0.8 0.15 0 40
	}
}

textures/ctf_cas_l/patchlitedecal_b_5k
{
	qer_editorimage textures/ctf_cas_l/patch10lite_b.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 5000

	{
		map textures/ctf_cas_l/patch10lite_b.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/patch10lite_glow.tga
		blendfunc add
		rgbGen wave noise .8 .15 0 40
	}
}

textures/ctf_cas_l/bulbybulb
{
	qer_editorimage textures/ctf_cas_l/bulb1.tga
	cull disable
	deformVertexes autoSprite2
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap

	{
		map textures/ctf_cas_l/bulb1.tga
		blendFunc Add
		rgbGen identity
	}
}

textures/ctf_cas_l/bulbybulb2
{
	qer_editorimage textures/ctf_cas_l/bulb2.tga
	cull disable
	deformVertexes autoSprite
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap

	{
		map textures/ctf_cas_l/bulb2.tga
		blendFunc Add
		rgbGen identity
	}
}

textures/ctf_cas_l/ironcrossltblue_2000
{
	qer_editorimage textures/ctf_cas_l/ironcrossltblue.tga
	q3map_lightimage textures/ctf_cas_l/ironcrossltblue.blend.tga
	q3map_surfacelight 2000
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/ironcrossltblue.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/ctf_cas_l/ironcrossltblue.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/ironcrossltred_2000
{
	qer_editorimage textures/ctf_cas_l/ironcrossltred.tga
	q3map_lightimage textures/ctf_cas_l/ironcrossltred.blend.tga
	q3map_surfacelight 2000
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_l/ironcrossltred.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/ctf_cas_l/ironcrossltred.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/g_light_1k
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 1000

	{
		map textures/ctf_cas_l/g_light.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/g_light_glow.tga
		blendfunc add
		rgbGen wave noise 0.65 0.05 0.1 .3
	}
}

textures/ctf_cas_l/g_light_1500
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 1500

	{
		map textures/ctf_cas_l/g_light.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/g_light_glow.tga
		blendfunc add
		rgbGen wave noise 0.65 0.05 0.1 .3
	}
}

textures/ctf_cas_l/g_light_2k
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 2000

	{
		map textures/ctf_cas_l/g_light.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/g_light_glow.tga
		blendfunc add
		rgbGen wave noise 0.65 0.05 0.1 .3
	}
}

textures/ctf_cas_l/g_light_3k
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 3000

	{
		map textures/ctf_cas_l/g_light.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/g_light_glow.tga
		blendfunc add
		rgbGen wave noise 0.65 0.05 0.1 .3
	}
}

textures/ctf_cas_l/g_light_4k
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 4000

	{
		map textures/ctf_cas_l/g_light.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/g_light_glow.tga
		blendfunc add
		rgbGen wave noise 0.65 0.05 0.1 .3
	}
}

textures/ctf_cas_l/g_light_5k
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 5000

	{
		map textures/ctf_cas_l/g_light.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/g_light_glow.tga
		blendfunc add
		rgbGen wave noise 0.65 0.05 0.1 .3
	}
}

textures/ctf_cas_l/g_light_6k
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 6000

	{
		map textures/ctf_cas_l/g_light.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/g_light_glow.tga
		blendfunc add
		rgbGen wave noise 0.65 0.05 0.1 .3
	}
}

textures/ctf_cas_l/g_light_10k
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	q3map_surfacelight 10000

	{
		map textures/ctf_cas_l/g_light.tga
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}	
        {
		map textures/ctf_cas_l/g_light_glow.tga
		blendfunc add
		rgbGen wave noise 0.65 0.05 0.1 .3
	}
}

textures/ctf_cas_l/gothic_light2_6k
{
	qer_editorimage textures/gothic_light/gothic_light2.tga
	q3map_surfacelight 6000
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/gothic_light/gothic_light2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/gothic_light/gothic_light2_blend.tga
		rgbGen wave sin .6 .1 .1 .1
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/gothic_light3_500
{
	qer_editorimage textures/gothic_light/gothic_light3.tga
	q3map_lightimage textures/gothic_light/gothic_light2_blend.tga
	q3map_surfacelight 500
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/gothic_light/gothic_light3.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/gothic_light/gothic_light2_blend.tga
		rgbGen wave sin .6 .1 .1 .1
		blendfunc GL_ONE GL_ONE
	}

}

textures/ctf_cas_l/light1red_8000
{
	qer_editorimage textures/base_light/light1red.tga
	q3map_lightimage textures/base_light/light1red.blend.tga
	surfaceparm nomarks
	q3map_surfacelight 8000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/light1red.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{	
		map textures/base_light/light1red.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}
textures/ctf_cas_l/light1blue_8000
{
	qer_editorimage textures/base_light/light1blue.tga
	q3map_lightimage textures/base_light/light1blue.blend.tga
	surfaceparm nomarks
	q3map_surfacelight 8000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/light1blue.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{	
		map textures/base_light/light1blue.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/flourescent_1000
{
	qer_editorimage textures/base_light/light5.tga
	surfaceparm nomarks
	q3map_surfacelight 500

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/xlight5.tga
		blendFunc filter
		rgbGen identity
	}
	{
		map textures/base_light/xlight5.blend.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.8 0.07 0 40
	}
}

textures/ctf_cas_l/flourescent_5k
{
	qer_editorimage textures/base_light/light5.tga
	surfaceparm nomarks
	q3map_surfacelight 5000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/xlight5.tga
		blendFunc filter
		rgbGen identity
	}
	{
		map textures/base_light/xlight5.blend.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.8 0.07 0 40
	}
}

textures/ctf_cas_l/flourescent_10k
{
	qer_editorimage textures/base_light/light5.tga
	surfaceparm nomarks
	q3map_surfacelight 10000

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/xlight5.tga
		blendFunc filter
		rgbGen identity
	}
	{
		map textures/base_light/xlight5.blend.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave noise 0.8 0.07 0 40
	}
}

// ^^^^^^^^^^^^^ Lights ^^^^^^^^^^^^^
// ##################################
// ########## Transparent ###########
// ##################################

textures/ctf_cas_l/caslite_grille
{
	qer_editorimage textures/ctf_cas_l/caslite_grille.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nonsolid
	q3map_novertexshadows
	cull none
	nopicmip
	nomipmaps

	{
		map textures/ctf_cas_l/caslite_grille.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen vertex
	}
}

textures/ctf_cas_b/grate1_1
{
	qer_editorimage textures/ctf_cas_b/grate1.tga
	surfaceparm metalsteps	
	surfaceparm trans	
	surfaceparm alphashadow
	surfaceparm nomarks	
	nopicmip

	{
		map textures/ctf_cas_b/grate1.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GT0
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/ctf_cas_b/grate3_1
{
	qer_editorimage textures/ctf_cas_b/grate3.tga
	surfaceparm metalsteps
	surfaceparm trans		
//	surfaceparm nonsolid
	cull none
        nopicmip

	{
		map textures/ctf_cas_b/grate3.tga
		//tcMod scale 2 2
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/ctf_cas_b/grate3_dark
{
	qer_editorimage textures/ctf_cas_b/grate3dark.tga
	surfaceparm metalsteps
	surfaceparm trans		
//	surfaceparm nonsolid
	cull none
        nopicmip

	{
		map textures/ctf_cas_b/grate3dark.tga
		//tcMod scale 2 2
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/ctf_cas_b/grate3_dark_nontrans
{
	qer_editorimage textures/ctf_cas_b/grate3dark.tga
	surfaceparm metalsteps

	{
		map textures/ctf_cas_b/grate3dark.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/ctf_cas_b/grate3_nontrans
{
	qer_editorimage textures/ctf_cas_b/grate3.tga
	surfaceparm metalsteps

	{
		map textures/ctf_cas_b/grate3.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/ctf_cas_b/grate2_trans
{
	qer_editorimage textures/ctf_cas_b/grate2.tga
	surfaceparm metalsteps	
	surfaceparm trans	
	surfaceparm alphashadow
	surfaceparm nomarks	
	nopicmip
	cull none
	{
		map textures/ctf_cas_b/grate2.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GT0
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/ctf_cas_b/proto_grate4_nomark
{
	qer_editorimage textures/base_floor/proto_grate4.tga
	surfaceparm	metalsteps	
	surfaceparm trans		
	surfaceparm nonsolid
	surfaceparm nomarks
	cull none
	nopicmip

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

textures/ctf_cas_b/metal2_2_cas
{
	qer_editorimage textures/base_trim/metal2_2.tga
	surfaceparm trans	
	surfaceparm nomarks	
	nopicmip
	cull none

	{
		map textures/base_trim/metal2_2.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GT0
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/ctf_cas_b/girder_r
{
	qer_editorimage textures/ctf_cas_b/girder_256_r.tga
	surfaceparm metalsteps	
    	surfaceparm trans	
	surfaceparm alphashadow
	surfaceparm playerclip
   	surfaceparm nonsolid
	surfaceparm nomarks	
	cull none
        nopicmip

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

textures/ctf_cas_b/girder_b
{
	qer_editorimage textures/ctf_cas_b/girder_256_b.tga
	surfaceparm metalsteps	
    	surfaceparm trans	
	surfaceparm alphashadow
	surfaceparm playerclip
   	surfaceparm nonsolid
	surfaceparm nomarks	
	cull none
        nopicmip

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

textures/ctf_cas_b/railing
{
	qer_editorimage textures/ctf_cas_dc/rail01.tga
	surfaceparm trans
	surfaceparm alphashadow
	cull none
	{
		map textures/ctf_cas_dc/rail01.tga
		alphafunc ge128
		depthwrite
		rgbgen identity
	}
	{
		map $lightmap
		rgbgen identity
		blendFunc gl_dst_color gl_zero
		depthFunc equal
	}
}

textures/ctf_cas_b/railing02
{
	qer_editorimage textures/ctf_cas_dc/rail02.tga
	surfaceparm trans
	surfaceparm alphashadow
	cull none
	{
		map textures/ctf_cas_dc/rail02.tga
		alphafunc ge128
		depthwrite
		rgbgen identity
	}
	{
		map $lightmap
		rgbgen identity
		blendFunc gl_dst_color gl_zero
		depthFunc equal
	}
}

textures/ctf_cas_b/railing03
{
	qer_editorimage textures/ctf_cas_dc/rail03.tga
	surfaceparm trans
	surfaceparm alphashadow
	cull none
	{
		map textures/ctf_cas_dc/rail03.tga
		alphafunc ge128
		depthwrite
		rgbgen identity
	}
	{
		map $lightmap
		rgbgen identity
		blendFunc gl_dst_color gl_zero
		depthFunc equal
	}
}

textures/ctf_cas_b/railing_sprite
{
	qer_editorimage textures/ctf_cas_dc/rail01.tga
	surfaceparm trans
//	surfaceparm alphashadow
	deformVertexes autosprite2
	cull none
	{
		map textures/ctf_cas_dc/rail01.tga
		alphafunc ge128
		depthwrite
		rgbgen identity
	}
	{
		map $lightmap
		rgbgen identity
		blendFunc gl_dst_color gl_zero
		depthFunc equal
	}
}

textures/ctf_cas_b/e_grate5
{
	qer_editorimage textures/ctf_cas_b/e_grate5.tga
	surfaceparm trans
	surfaceparm nonsolid
	cull none
	{
		map textures/ctf_cas_b/e_grate5.tga
		tcMod scale 2 2
		blendFunc gl_one gl_zero
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc gl_dst_color gl_zero
		depthFunc equal
	}
}

textures/ctf_cas_b/e_grate5_2
{
	qer_editorimage textures/ctf_cas_b/e_grate5.tga
	surfaceparm trans
	surfaceparm nonsolid
	cull none
	{
		map textures/ctf_cas_b/e_grate5.tga
//		tcMod scale 2 2
		blendFunc gl_one gl_zero
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc gl_dst_color gl_zero
		depthFunc equal
	}
}

textures/ctf_cas_l/wires01
{
	qer_editorimage textures/base_trim/wires01
	surfaceparm alphashadow
	surfaceparm trans
	cull disable

	{
		map textures/base_trim/wires01.tga
		alphaFunc GE128
		depthWrite
		rgbGen vertex
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc filter
		depthFunc equal
	}
}

textures/ctf_cas_l/proto_fence_nomarks
{
	qer_editorimage textures/base_trim/proto_fence.tga
	surfaceparm trans
	surfaceparm nomarks
	cull none
	nopicmip

	{
		map textures/base_trim/proto_fence.tga
		tcMod scale 3 3
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}


// ^^^^^^^^^^ Transparent ^^^^^^^^^^^
// ##################################
// ########## SFX ###################
// ##################################

textures/ctf_cas_l/c_puppet
{ 
    
	qer_editorimage textures/ctf_cas_l/caseyalpha.tga
	surfaceparm trans	
	surfaceparm alphashadow
	surfaceparm nomarks	
	cull none
        nopicmip

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

textures/ctf_cas_l/teslacoilxx
{
	qer_editorimage textures/sfx/teslacoil.tga
	q3map_lightimage textures/sfx/tesla1.tga	
	q3map_surfacelight 150

	{
		map $lightmap
		tcgen environment
		blendfunc filter
	}
	{
		map textures/sfx/tesla1.tga
		blendfunc add
		rgbgen wave sawtooth 0 1 0 5
		tcmod scale 1 .5
		tcmod turb 0 .1 0 1
		tcMod scroll -1 -1
	}
	{
		map textures/sfx/electricslime.tga
		blendfunc add
		rgbgen wave sin 0 .5 0 1
		tcmod scale .5 .5
		tcmod turb 0 .1 0 1
		tcmod rotate 180
		tcmod scroll -1 -1
	}
	{
		map textures/sfx/cabletest2.tga
		blendfunc blend
	}
}

textures/ctf_cas_b/atech1_alpha_off
{
	qer_editorimage textures/base_wall/atech1_alpha.tga

	{
		map textures/base_wall/atech1_alpha.tga
		rgbGen identity
	}
	{	map $lightmap
		rgbgen identity
		blendfunc filter
	}
}

textures/ctf_cas_b/atech1_alpha_b
{
	qer_editorimage textures/ctf_cas_b/qer_atech1_b.tga

	{
		map textures/ctf_cas_l/hologirl_b.tga
                tcmod scale 2 .4
                tcmod scroll 6 .6
                //tcMod turb 0 .1 0 .01
                blendFunc GL_ONE GL_ZERO
                rgbGen identity
	}
	{
		map textures/base_wall/atech1_alpha.tga
                blendfunc blend
                rgbGen identity
	}
        {
		map $lightmap
		rgbGen identity
		blendFunc filter
	}
}

textures/ctf_cas_b/atech1_alpha_r
{
	qer_editorimage textures/ctf_cas_b/qer_atech1_r.tga

	{
		map textures/ctf_cas_l/hologirl_r.tga
                tcmod scale 2 .4
                tcmod scroll 6 .6
                //tcMod turb 0 .1 0 .01
                blendFunc GL_ONE GL_ZERO
                rgbGen identity
	}
	{
		map textures/base_wall/atech1_alpha.tga
                blendfunc blend
                rgbGen identity
	}
        {
		map $lightmap
		rgbGen identity
		blendFunc filter
	}

}

textures/ctf_cas_b/clangdark_bounce_r
{
	qer_editorimage textures/sfx/clangdark_bounce.tga
	q3map_lightimage textures/ctf_q3w/jumppadsmall_r.tga	
	q3map_surfacelight 150
	surfaceparm nodamage

	{
		map textures/sfx/clangdark_bounce.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_cas_b/bouncepad01b_layer1_r.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_r.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_cas_b/clangdark_bounce_b
{
	qer_editorimage textures/sfx/clangdark_bounce.tga
	q3map_lightimage textures/ctf_q3w/jumppadsmall_b.tga	
	q3map_surfacelight 150
	surfaceparm nodamage

	{
		map textures/sfx/clangdark_bounce.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_cas_b/bouncepad01b_layer1_b.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_b.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_cas_l/b_largeblock3b_b
{
	qer_editorimage textures/sfx/bounce_largeblock3b.tga
	q3map_lightimage textures/ctf_q3w/jumppadsmall_b.tga
	q3map_surfacelight 400
	surfaceparm nodamage

	{
		map textures/sfx/bounce_largeblock3b.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_b.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_b.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_cas_l/b_largeblock3b_r
{
	qer_editorimage textures/sfx/bounce_largeblock3b.tga
	q3map_lightimage textures/ctf_q3w/jumppadsmall_r.tga
	q3map_surfacelight 400
	surfaceparm nodamage

	{
		map textures/sfx/bounce_largeblock3b.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_r.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_r.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_cas_l/cascomp_red
{
	qer_editorimage textures/base_trim/proto_comp2.tga
	surfaceparm nomarks

	{
		map textures/base_trim/proto_comp2.tga
		tcmod scroll 0 -.2
		rgbGen wave sin .5 .5 0 3
		rgbGen identity
	}
	{
		map textures/effects/tinfx2c.tga
		tcGen environment
		blendfunc add
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc filter
		rgbGen identity
	}
}

textures/ctf_cas_l/cascomp_blue
{
	qer_editorimage textures/ctf_cas_l/proto_comp2_b.tga
	surfaceparm nomarks

	{
		map textures/ctf_cas_l/proto_comp2_b.tga
		tcmod scroll 0 -.2
		rgbGen wave sin .5 .5 0 3
		rgbGen identity
	}
	{
		map textures/effects/tinfx2c.tga
		tcGen environment
		blendfunc add
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc filter
		rgbGen identity
	}
}

textures/ctf_cas_l/swirly_red
{
	qer_editorimage textures/ctf_cas_l/console_r.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	q3map_surfacelight 150
	q3map_lightimage textures/ctf_cas_l/console_r.tga
	cull none

	{
		clampmap textures/sfx/console02.tga
		tcMod rotate -200
		blendFunc GL_ONE GL_ONE
	}
	{
		clampmap textures/ctf_cas_l/console_r.tga
		tcMod rotate 30
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/swirly_blue
{
	qer_editorimage textures/ctf_cas_l/console_b.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	q3map_surfacelight 150
	q3map_lightimage textures/ctf_cas_l/console_b.tga
	cull none

	{
		clampmap textures/sfx/console02.tga
		tcMod rotate -200
		blendFunc GL_ONE GL_ONE
	}
	{
		clampmap textures/ctf_cas_l/console_b.tga
		tcMod rotate 30
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/border11cx_r
{
	qer_editorimage textures/ctf_q3w/qer_border11c.tga
	q3map_lightimage textures/base_trim/border11c_light.tga
	q3map_surfacelight 200
	
	{
		map textures/base_trim/border11c.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/base_trim/border11c_light.tga
		blendfunc gl_one gl_one
		rgbgen wave sin 1 .1 0 5
	}
	{
		map textures/ctf_q3w/border11c_pulse1b_r.tga
		blendfunc gl_one gl_one
		tcmod scale .035 1
		tcmod scroll -0.65 0
	}
}

textures/ctf_cas_l/border11cx_b
{
	qer_editorimage textures/ctf_q3w/qer_border11c.tga
	q3map_lightimage textures/base_trim/border11c_light.tga
	q3map_surfacelight 200
	
	{
		map textures/base_trim/border11c.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/base_trim/border11c_light.tga
		blendfunc gl_one gl_one
		rgbgen wave sin 1 .1 0 5
	}
	{
		map textures/base_trim/border11c_pulse1b.tga
		blendfunc gl_one gl_one
		tcmod scale .035 1
		tcmod scroll -0.65 0

	}
}

textures/ctf_cas_l/glow_stripe_b
{
	qer_editorimage textures/ctf_cas_b/striperust128_b.tga

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_b/striperust128_b.tga
		blendFunc blend
		rgbGen identity
	}
        {
		map textures/ctf_cas_b/striperust128_b.tga
		blendFunc filter
	}
}

textures/ctf_cas_l/glow_stripe_r
{
	qer_editorimage textures/ctf_cas_b/striperust128_r.tga

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_b/striperust128_r.tga
		blendFunc blend
		rgbGen identity
	}
        {
		map textures/ctf_cas_b/striperust128_r.tga
		blendFunc filter
	}
}

textures/ctf_cas_l/numdecal_1
{       	
	qer_editorimage textures/ctf_cas_l/1.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_l/1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_l/numdecal_2
{       	
	qer_editorimage textures/ctf_cas_l/2.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_l/2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_l/numdecal_3
{       	
	qer_editorimage textures/ctf_cas_l/3.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_l/3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_l/numdecal_4
{       	
	qer_editorimage textures/ctf_cas_l/4.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_l/4.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_l/numdecal_5
{       	
	qer_editorimage textures/ctf_cas_l/5.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_l/5.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_l/numdecal_6
{       	
	qer_editorimage textures/ctf_cas_l/6.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_l/6.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_l/numdecal_7
{       	
	qer_editorimage textures/ctf_cas_l/7.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_l/7.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_l/myportal
{
	qer_editorimage textures/common/qer_portal.tga
	surfaceparm nolightmap
	surfaceparm nomarks
	portal
	{
		map textures/common/mirror1.tga
		blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		alphagen portal 96
		depthWrite
	}
}

textures/ctf_cas_l/rain_01
{
	qer_editorimage textures/sfx/rain.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm nolightmap
	qer_trans .4
//	deformVertexes move 3 1 0  sin 0 5 0 0.2
//	deformVertexes move .6 3.3 0  sin 0 5 0 0.4
//	deformVertexes wave 30 sin 0 10 0 .2
	cull none
//	nopicmip

	{
		map textures/sfx/rain.tga
		tcMod Scroll .1 -8
//		tcMod turb .1 .25 0 -.1
		blendFunc GL_ONE GL_ONE
	}
	{
		map textures/sfx/rain.tga
		tcMod Scroll .05 -6
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/spinlight_amber
{
	qer_editorimage textures/ctf_cas_l/spin_fx_amber.tga
	qer_trans 0.4
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans

	{
		clampmap textures/ctf_cas_l/spin_fx_amber.tga
		blendfunc add
		tcMod rotate 360
	}
}

textures/ctf_cas_l/spinflare_amber 
{
	qer_editorimage textures/ctf_cas_l/flare_amber.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm noimpact
	surfaceparm nolightmap
	deformVertexes autosprite
	cull none
	{
		map textures/ctf_cas_l/flare_amber.tga
                blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/spinflare_amber_2 
{
	qer_editorimage textures/ctf_cas_l/flare_amber.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm nonsolid
	surfaceparm nolightmap
	DeformVertexes autosprite

	{
		map textures/ctf_cas_l/flare_amber.tga
                blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/spinflare_amber_3
{
	qer_editorimage textures/ctf_cas_l/flare_amber.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm nonsolid
	surfaceparm nolightmap

	{
		map textures/ctf_cas_l/flare_amber.tga
                blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_cas_l/glass_amber
{
	qer_editorimage textures/ctf_cas_l/transparency2.tga
	surfaceparm nomarks
	surfaceparm trans
	cull none
	qer_trans 0.5
     
        {
		map textures/ctf_cas_l/transparency2.tga
		tcgen environment
		blendFunc GL_ONE GL_ONE
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc filter
	}
}

textures/ctf_cas_l/bounce_b_150
{
	qer_editorimage textures/ctf_unified/qer_bounce_blue.tga
	q3map_lightimage textures/ctf_unified/bounce_fx_blue.tga
	q3map_surfacelight 150
	surfaceparm nodamage
	surfaceparm nomarks
	surfaceparm trans

	{
		map textures/ctf_unified/bounce_base.tga
		rgbGen identity
		alphaFunc GE128
	}
	{
		map $lightmap
		blendfunc filter
		rgbGen identity
		depthFunc equal
	}
	{
		map textures/ctf_unified/bounce_glow_blue.tga
		blendfunc add
		rgbGen wave sin 0.5 0.5 0 1.5
	}
	{
		clampmap textures/ctf_unified/bounce_fx_blue.tga
		blendfunc add
		tcMod stretch sin 1.2 0.8 0 1.5
		rgbGen wave square 0.5 0.5 0.25 1.5
	}
	{
		map textures/ctf_unified/bounce_shadow.tga
		blendfunc filter
		rgbGen identity
	}
}

textures/ctf_cas_l/bounce_r_150
{
	qer_editorimage textures/ctf_unified/qer_bounce_red.tga
	q3map_lightimage textures/ctf_unified/bounce_fx_red.tga
	q3map_surfacelight 150
	surfaceparm nodamage
	surfaceparm nomarks
	surfaceparm trans

	{
		map textures/ctf_unified/bounce_base.tga
		rgbGen identity
		alphaFunc GE128
	}
	{
		map $lightmap
		blendfunc filter
		rgbGen identity
		depthFunc equal
	}
	{
		map textures/ctf_unified/bounce_glow_red.tga
		blendfunc add
		rgbGen wave sin 0.5 0.5 0 1.5
	}
	{
		clampmap textures/ctf_unified/bounce_fx_red.tga
		blendfunc add
		tcMod stretch sin 1.2 0.8 0 1.5
		rgbGen wave square 0.5 0.5 0.25 1.5
	}
	{
		map textures/ctf_unified/bounce_shadow.tga
		blendfunc filter
		rgbGen identity
	}
}

textures/ctf_cas_l/dpewter_bounce_n
{
	qer_editorimage textures/ctf_cas_l/bounce_pewter.tga
	q3map_lightimage textures/ctf_unified/bounce_fx.tga	
	q3map_surfacelight 200
	surfaceparm nodamage

	{
		map textures/ctf_cas_l/bounce_pewter.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_unified/bounce_glow.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_unified/bounce_fx.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}


textures/ctf_cas_l/bsmcdecal_1
{       	
	qer_editorimage textures/ctf_cas_b/bsmc1.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_b/bsmc1.tga
//		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		blendfunc gl_dst_color gl_one_minus_src_alpha
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_l/bsmcdecal_2
{       	
	qer_editorimage textures/ctf_cas_b/bsmc2.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_cas_b/bsmc2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc filter
	}
}

textures/ctf_cas_g/pitted_rust3_nonsolid
{
	qer_editorimage textures/ctf_cas_g/qer_rust3_nonsolid.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/gothic_trim/pitted_rust3.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ctf_cas_b/concrete_dfloor_nonsolid
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_floor.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_b/concrete_dark_floor.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ctf_cas_b/concrete_dseams_nonsolid
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_seams.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_cas_b/concrete_dark_seams.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ctf_cas_b/pewter_nonsolid
{
	qer_editorimage textures/base_trim/pewter.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_trim/pewter.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ctf_cas_b/dirty_pewter_nonsolid
{
	qer_editorimage textures/base_trim/dirty_pewter.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_trim/dirty_pewter.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ctf_cas_b/pewter_shiney_xx
{   
	qer_editorimage textures/ctf_cas_b/qer_shiney_p.tga 

	{
                map textures/effects/tinfx.tga       
                tcGen environment
                rgbGen identity
	}   
	{
		map textures/base_trim/pewter_shiney.tga
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	} 
	{
		map $lightmap
                blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}
}

textures/ctf_cas_l/padwall_r
	{
	q3map_surfacelight 100
	q3map_lightimage textures/ctf_cas_l/padwallglow_r.tga
	qer_editorimage textures/sfx/xian_dm3padwall.tga
	
	{
		map textures/sfx/xian_dm3padwall.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_cas_l/padwallglow_r.tga
		blendfunc gl_one gl_one
		rgbgen wave sin 0 1 0 .5
		tcmod scale 1 .05
		tcmod scroll 0 1
	}
}

textures/ctf_cas_l/pentfloor_the
{
	qer_editorimage textures/sfx/pentfloorq1metal7_99.tga

	{
		map textures/sfx/pentfloorq1metal7_99.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_cas_l/pentfloor_glow.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin .5 .5 0 .5	
		depthfunc equal
	}
}

textures/ctf_cas_l/tele_zap
{
	qer_editorimage textures/sfx/zap_ball.tga
	deformVertexes autoSprite
        q3map_surfacelight 150
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none

	{
		clampmap textures/ctf_cas_l/zap_ball.tga
		blendFunc GL_ONE GL_ONE
		rgbgen wave triangle 1 2 0 7
		tcMod rotate 103
	}
	{
		clampmap textures/ctf_cas_l/zap_ball2.tga
		blendFunc GL_ONE GL_ONE
		rgbgen wave sin 1 2 0 8
		tcMod rotate -180
	}
	{
		map textures/ctf_cas_l/flare03.tga
		blendFunc GL_ONE GL_ONE
		rgbgen wave sin 1 2 0 9
	}
}

textures/ctf_cas_l/ring_fx
{
	qer_editorimage textures/sfx/portal_sfx1.tga
	surfaceparm nomarks

	{
		clampmap textures/sfx/portal_sfx1.tga
		blendfunc blend
		rgbGen wave sin 0.9 0.1 0 1 
		tcMod rotate 360
	}
}

textures/ctf_cas_l/firewall
{
	qer_editorimage textures/sfx/firewall.tga
	surfaceparm nonsolid
	surfaceparm nomarks
	surfaceparm nolightmap
	q3map_surfacelight 200

	{
		map textures/sfx/firewalla.tga
		blendfunc gl_one gl_zero
		tcMod scale 0.25 0.25
		tcMod scroll 0.2 1.1
	}
	{
		map textures/ctf_cas_l/firewallb.tga
		blendFunc GL_dst_color gl_src_alpha
		tcMod scale .1 .1
		tcMod turb .2 .1 .1 1
		tcMod scroll 0 4
	}
}

textures/ctf_cas_l/steam_fx_3_nosprite
{
	qer_editorimage textures/ctf_unified/steam_fx_03.tga
	qer_trans 0.4
	cull none
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm pointlight


	{
		map textures/ctf_unified/steam_fx_03.tga
		blendFunc GL_ONE GL_ONE
		tcMod scale 1 .4
		tcMod scroll 0 .3
	}
	{
		map textures/ctf_unified/steam_fx_03.tga
		blendFunc GL_ONE GL_ONE
		tcMod scale -1 .2
		tcMod scroll 0 .3
	}

}

textures/ctf_cas_l/logodecal
{    
	qer_editorimage textures/ctf_cas_l/logo256.tga 
	surfaceparm nomarks   
	surfaceparm trans
	surfaceparm pointlight
   
	{
		map textures/ctf_cas_l/logo256.tga
                blendFunc add
		rgbGen vertex
	}
}

textures/ctf_cas_l/trippy02
{
	qer_editorimage textures/ctf_cas_l/bluestuff.tga
	surfaceparm nolightmap

	{
		map textures/ctf_cas_l/bluestuff.tga
		blendFunc GL_ONE GL_ONE
		tcGen environment
		tcMod scroll 0.3 1
		tcMod turb 0 0.25 0 0.05
	}
	{
		map textures/ctf_cas_l/redstuff.tga
		blendFunc GL_ONE GL_ONE
		tcGen environment
		tcMod scroll 0.5 0.1
	}
	{
		map textures/ctf_cas_l/greenstuff.tga
		blendFunc GL_ONE GL_ONE
		tcGen environment
		tcMod scroll -0.2 0.5
		tcMod turb 0 0.25 0 0.05
	}
}

textures/ctf_cas_l/whiteflash
{
	qer_editorimage textures/ctf_cas_l/white.tga
	surfaceparm nodlight
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm nomarks

	{
		map textures/ctf_cas_l/white.tga
		rgbGen wave inversesawtooth 0.3 0.8 0 3 
	}

}

// ^^^^^^^^^^^^^^ SFX ^^^^^^^^^^^^^^^
// ##################################
// ########## Liquid + Fog ##########
// ##################################

textures/ctf_cas_l/flatripplewater_80
{
	qer_editorimage textures/liquids/pool2.tga
	q3map_globaltexture
	q3map_lightsubdivide 32
	surfaceparm noimpact
	surfaceparm lava
	surfaceparm nolightmap
	q3map_surfacelight 80
//	cull disable
	deformVertexes wave 100 sin 3 2 .1 0.1
	
	{
		map textures/liquids/pool2.tga
		tcMod turb 0 .2 0 .1
	}
}

textures/ctf_cas_l/clear_calm1_nomark
{
	qer_editorimage textures/liquids/pool3d_3e.tga
	qer_trans .5
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm nomarks
	cull disable
	deformVertexes wave 64 sin .25 .25 0 .5	

	{ 
		map textures/liquids/pool3d_5e.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .5 .5
		tcmod scroll .025 .01
	}
	{ 
		map textures/liquids/pool3d_3e.tga
		blendFunc GL_dst_color GL_one
		tcmod scale -.5 -.5
		tcmod scroll .025 .025
	}
	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity		
	}
}

textures/ctf_cas_l/clear_directional
{
	qer_editorimage textures/liquids/pool3d_3e.tga
	qer_trans .5
	q3map_globaltexture
	q3map_surfacelight 10
	q3map_lightsubdivide 16
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm nomarks
	cull disable
//	deformVertexes wave 64 sin .25 .25 0 .5	

	{ 
		map textures/liquids/pool3d_5e.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .5 .5
		tcmod scroll .035 .01
	}
	{ 
		map textures/liquids/pool3d_3e.tga
		blendFunc GL_dst_color GL_one
		tcmod scale -.5 -.5
		tcmod scroll .025 -.02
	}
	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity		
	}
}

textures/ctf_cas_l/flow01
{
	qer_editorimage textures/ctf_cas_l/flow02.tga
	surfaceparm noimpact
	surfaceparm nonsolid
	surfaceparm water
	deformVertexes wave 100 sin 3 2 0.1 0.1 
	cull none
	{
		map textures/ctf_cas_l/flow01.tga
		rgbGen wave noise 0.9 0.15 0 0.5 
		tcMod scroll 0.1 -5
	}
	{
		map textures/ctf_cas_l/flow02.tga
		blendfunc gl_dst_color gl_one
		rgbGen wave sin 0.8 0.03 0 0.4
		tcMod scroll -0.15 -1.5
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
	}
}

textures/ctf_cas_l/fog_b_256_20
{
	qer_editorimage textures/sfx/xbluelightimage.tga
	q3map_lightimage textures/sfx/xbluelightimage.tga
	q3map_surfacelight 20
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( 0.3 0.3 0.9 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_cas_l/fog_b_256_60
{
	qer_editorimage textures/sfx/xbluelightimage.tga
	q3map_lightimage textures/sfx/xbluelightimage.tga
	q3map_surfacelight 60
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( 0.3 0.3 0.9 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_cas_l/fog_r_256_20
{
	qer_editorimage textures/sfx/hellfog.tga
	q3map_lightimage textures/sfx/hellfog.tga
	q3map_surfacelight 20
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( .55 .11 .1 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_cas_l/fog_r_256_60
{
	qer_editorimage textures/sfx/hellfog.tga
	q3map_lightimage textures/sfx/hellfog.tga
	q3map_surfacelight 60
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( .55 .11 .1 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_cas_l/fog_grey_256_60
{
	qer_editorimage textures/sfx/xdensegreyfog.tga
	q3map_lightimage textures/sfx/xdensegreyfog.tga
	q3map_surfacelight 60
//	q3map_lightsubdivide 64
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( 0.7 0.7 0.7 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_cas_l/fog_dk_grey_256_50
{
	qer_editorimage textures/sfx/xdensegreyfog.tga
	q3map_lightimage textures/sfx/xdensegreyfog.tga
	q3map_surfacelight 50
//	q3map_lightsubdivide 64
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( 0.1 0.1 0.1 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}
	
textures/ctf_cas_l/naughtyfog
{
	qer_editorimage textures/sfx/xdensegreyfog.tga
	qer_nocarve
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	fogparms ( 0 0 0 ) 1024

}

textures/ctf_cas_l/naughtyfog_512
{
	qer_editorimage textures/sfx/xdensegreyfog.tga
	qer_nocarve
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	fogparms ( 0 0 0 ) 512

}

textures/ctf_cas_l/whitefog
{
	qer_editorimage textures/ctf_cas_l/fogskylight.tga
	qer_trans 0.4
	qer_nocarve
	surfaceparm trans
	surfaceparm nodlight
	surfaceparm nonsolid
//	surfaceparm nolightmap
	surfaceparm fog
	fogparms ( 0.8 0.8 0.8 ) 1280
}

textures/ctf_cas_l/whitefog2
{
	qer_editorimage textures/ctf_cas_l/fogskylight.tga
	qer_trans 0.4
	qer_nocarve
	surfaceparm trans
	surfaceparm nodlight
	surfaceparm nonsolid
//	surfaceparm nolightmap
	surfaceparm fog
	fogparms ( 0.8 0.8 0.8 ) 2048
}

// ^^^^^^^^^ Liquid + Fog ^^^^^^^^^^^
// ##################################
// ########## Skies #################
// ##################################

textures/ctf_cas_l/cas3_sky
{
	qer_editorimage textures/ctf_cas_l/qer_bigblacksky.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_backsplash -1 32
	q3map_lightsubdivide 512
	q3map_surfacelight 20
	q3map_sun .6 .6 .6 30 35 78
	skyparms env/dek1 - -
}

textures/ctf_cas_l/cas3_sky2
{
	qer_editorimage textures/ctf_cas_l/qer_bigblacksky.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_backsplash -1 32
	q3map_lightsubdivide 1024
	q3map_surfacelight 15
	q3map_sun .6 .6 .6 30 35 78
	skyparms env/dek1 - -
}

textures/ctf_cas_l/cas3_sky3
{
	qer_editorimage textures/ctf_cas_l/qer_bigblacksky.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	skyparms env/dek1 - -
}


textures/ctf_cas_g/cas6_sky
{
	surfaceparm noimpact
	surfaceparm nolightmap
	qer_editorimage textures/skies/toxicbluesky.tga
	q3map_backsplash -1 32
	q3map_lightimage textures/skies/toxicskyb.tga 
	q3map_surfacelight 150
	q3map_sun 1 1 0.8 90 100 40
	skyparms - 128 -

	{
		map textures/skies/bluedimclouds.tga
		tcMod scale 3 2
		tcMod scroll 0.15 0.15
		depthWrite
	}
	{
		map textures/skies/topclouds.tga
		blendFunc GL_ONE GL_ONE
		tcMod scale 3 3
		tcMod scroll 0.05 0.05
	}
}

textures/ctf_cas_l/whitefogsky
{
	qer_editorimage textures/ctf_cas_l/fogskylight.tga
	surfaceparm nomarks
	surfaceparm nodlight
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_backsplash -1 32
	q3map_novertexshadows

	{
		map textures/ctf_cas_l/white.tga
		rgbGen vertex
	}
}

textures/ctf_cas_l/scrollclouds
{
	qer_editorimage textures/ctf_cas_l/qer_dimclouds.tga
	qer_trans 0.4
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_novertexshadows

	{
		map textures/ctf_cas_l/dimclouds.tga
		blendfunc add
		rgbGen vertex
		tcMod scale 0.05 0.05
		tcmod scroll -0.06 0.03
	}
}


// ^^^^^^^^^^^^^^ Skies ^^^^^^^^^^^^^
// ##################################
// ########## Vertexlit #############
// ##################################

// v_basic + walls

textures/ctf_cas_v/mountainterrain
{
	qer_editorimage textures/ctf_cas_v/qer_rock1.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight

	{
		map textures/ctf_cas_v/rock1_v.tga
//		rgbGen vertex
		rgbGen wave sin 0.7 0 0 1
	}
}

textures/ctf_cas_v/mountain_slick
{
	qer_editorimage textures/ctf_cas_v/qer_rock1.tga
//	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm slick

	{
		map textures/ctf_cas_v/rock1_v.tga
//		rgbGen vertex
		rgbGen wave sin 0.7 0 0 1
	
	}
}

textures/ctf_cas_v/mountain_nograp
{
	qer_editorimage textures/ctf_cas_v/qer_rock1.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm noimpact
	surfaceparm slick

	{
		map textures/ctf_cas_v/rock1_v.tga
//		rgbGen vertex
		rgbGen wave sin 0.7 0 0 1
	}
}

textures/ctf_cas_v/blocks17_v
{
	qer_editorimage textures/gothic_block/blocks17.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight

	{
		map textures/gothic_block/blocks17.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/diamond2c_v
{
	qer_editorimage textures/ctf_cas_v/qerv_diamond2c.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps

	{
		map textures/base_floor/diamond2c.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/diamond2c_shade_v
{
	qer_editorimage textures/ctf_cas_v/qerv_diamond2c.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps

	{
		map textures/base_floor/diamond2c.tga
//		rgbGen vertex
		rgbGen wave sin 0.4 0 0 1
	}
}

textures/ctf_cas_v/clangdark_v
{
	qer_editorimage textures/base_floor/clangdark.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps

	{
		map textures/base_floor/clangdark.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/clangdark_mid_v
{
	qer_editorimage textures/base_floor/clangdark.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps

	{
		map textures/base_floor/clangdark.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/clangdark_shade_v
{
	qer_editorimage textures/base_floor/clangdark.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps

	{
		map textures/base_floor/clangdark.tga
//		rgbGen vertex
		rgbGen wave sin 0.4 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_mid_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_lowmid_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark.tga
//		rgbGen vertex
		rgbGen wave sin 0.7 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_shade_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark.tga
//		rgbGen vertex
		rgbGen wave sin 0.4 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_trim_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_trim.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps

	{
		map textures/ctf_cas_b/concrete_dark_trim.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_seams_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark_seams.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_seams.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_seams_mid_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark_seams.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_seams.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_seams_shade_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark_seams.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_seams_shadow.tga
//		rgbGen vertex
		rgbGen wave sin 0.4 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_seams_b_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_seam_b.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_seam_b.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_seams_mid_b_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_seam_b.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_seam_b.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_seams_r_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_seam_r.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_seam_r.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_seams_mid_r_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_seam_r.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_seam_r.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_floor_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_floor.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_floor.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_indent_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark_indent.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_indent.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_indent_mid_v
{
	qer_editorimage textures/ctf_cas_v/qerv_concrete_dark_indent.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_indent.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/rust_plate_b_v
{
	qer_editorimage textures/ctf_cas_b/rust_plate_b.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/rust_plate_b.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/rust_plate_r_v
{
	qer_editorimage textures/ctf_cas_b/rust_plate_r.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/rust_plate_r.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/pitted_rust_v
{
	qer_editorimage textures/ctf_cas_v/qerv_pitted_rust.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/gothic_trim/pitted_rust.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/pitted_rust_mid_v
{
	qer_editorimage textures/ctf_cas_v/qerv_pitted_rust_mid.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/gothic_trim/pitted_rust.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/pitted_rust_shade_v
{
	qer_editorimage textures/ctf_cas_v/qerv_pitted_rust_shade.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/gothic_trim/pitted_rust.tga
//		rgbGen vertex
		rgbGen wave sin 0.4 0 0 1
	}
}

textures/ctf_cas_v/pewter_shiney_v
{   
	qer_editorimage textures/ctf_cas_b/qer_shiney_p.tga 
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
                map textures/effects/tinfx.tga       
                tcGen environment
                rgbGen identity
	}   
	{
		map textures/base_trim/pewter_shiney.tga
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen wave sin 0.8 0 0 1
	} 
}

textures/ctf_cas_v/pewter_nonsolid_v
{
	qer_editorimage textures/ctf_cas_v/qerv_pewter.tga
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/base_trim/dirty_pewter.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/pewter_v
{
	qer_editorimage textures/ctf_cas_v/qerv_pewter.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/base_trim/dirty_pewter.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/pewter_mid_v
{
	qer_editorimage textures/ctf_cas_v/qerv_pewter.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/base_trim/dirty_pewter.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/pewter_shade_v
{
	qer_editorimage textures/ctf_cas_v/qerv_pewter.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/base_trim/dirty_pewter.tga
//		rgbGen vertex
		rgbGen wave sin 0.4 0 0 1
	}
}

textures/ctf_cas_v/teleporter_x_v
{
	qer_editorimage textures/ctf_cas_b/teleporter_x.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/teleporter_x.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/pipe_blue_v
{
	qer_editorimage textures/ctf_cas_b/pipe1_blue.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/pipe1_blue.tga
		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/pipe_red_v
{
	qer_editorimage textures/ctf_cas_b/pipe1_red.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/pipe1_red.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/cable_x_v
{
	qer_editorimage textures/ctf_cas_b/cable_x.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/cable_x.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/cable_x2_v
{
	qer_editorimage textures/ctf_cas_b/cable_x2.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/cable_x2.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/cable_v
{
	qer_editorimage textures/base_support/cable.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/base_support/cable.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/bluestuff_v
{
	qer_editorimage textures/ctf_q3w/metalfloor_wall_5b.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows


	{
		map textures/ctf_q3w/metalfloor_wall_5b.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/bluestuff_mid_v
{
	qer_editorimage textures/ctf_q3w/metalfloor_wall_5b.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows


	{
		map textures/ctf_q3w/metalfloor_wall_5b.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/bluestuff_shade_v
{
	qer_editorimage textures/ctf_q3w/metalfloor_wall_5b.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows


	{
		map textures/ctf_q3w/metalfloor_wall_5b.tga
//		rgbGen vertex
		rgbGen wave sin 0.4 0 0 1
	}
}

textures/ctf_cas_v/redstuff_v
{
	qer_editorimage textures/ctf_cas_b/metalfloor_9b_dark.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows


	{
		map textures/ctf_cas_b/metalfloor_9b_dark.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/redstuff_mid_v
{
	qer_editorimage textures/ctf_cas_b/metalfloor_9b_dark.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows


	{
		map textures/ctf_cas_b/metalfloor_9b_dark.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/redstuff_shade_v
{
	qer_editorimage textures/ctf_cas_b/metalfloor_9b_dark.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows


	{
		map textures/ctf_cas_b/metalfloor_9b_dark.tga
//		rgbGen vertex
		rgbGen wave sin 0.4 0 0 1
	}
}

textures/ctf_cas_v/dangertrim_v
{
	qer_editorimage textures/ctf_cas_dc/dangertrim.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_dc/dangertrim.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_trim_b_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_trim_b.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_trim_b.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_trim_mid_b_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_trim_b.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_trim_b.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_trim_r_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_trim_r.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_trim_r.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/concrete_dark_trim_mid_r_v
{
	qer_editorimage textures/ctf_cas_b/concrete_dark_trim_r.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/concrete_dark_trim_r.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/solid_blue_v
{
	qer_editorimage textures/ctf_cas_b/solid_blue.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/solid_blue.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/solid_red_v
{
	qer_editorimage textures/ctf_cas_b/solid_red.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_b/solid_red.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

textures/ctf_cas_v/metwall_dark_v
{
	qer_editorimage textures/ctf_cas_dc/metwall_dark.tga
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_dc/metwall_dark.tga
//		rgbGen vertex
		rgbGen wave sin 0.6 0 0 1
	}
}

// v_sfx

textures/ctf_cas_v/bounce_blue_v
{
	qer_editorimage textures/ctf_unified/qer_bounce_blue.tga
//	q3map_lightimage textures/ctf_unified/bounce_fx_blue.tga
//	q3map_surfacelight 400
	surfaceparm nodamage
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_l/bounce_concrete_dk.tga
		rgbGen wave sin 0.8 0 0 1
		alphaFunc GE128
	}
	{
		map textures/ctf_unified/bounce_glow_blue.tga
		blendfunc add
		rgbGen wave sin 0.5 0.5 0 1.5
	}
	{
		clampmap textures/ctf_unified/bounce_fx_blue.tga
		blendfunc add
		tcMod stretch sin 1.2 0.8 0 1.5
		rgbGen wave square 0.5 0.5 0.25 1.5
	}
}

textures/ctf_cas_v/bounce_red_v
{
	qer_editorimage textures/ctf_unified/qer_bounce_red.tga
//	q3map_lightimage textures/ctf_unified/bounce_fx_red.tga
//	q3map_surfacelight 400
	surfaceparm nodamage
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/ctf_cas_l/bounce_concrete_dk.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		alphaFunc GE128
	}
	{
		map textures/ctf_unified/bounce_glow_red.tga
		blendfunc add
		rgbGen wave sin 0.5 0.5 0 1.5
	}
	{
		clampmap textures/ctf_unified/bounce_fx_red.tga
		blendfunc add
		tcMod stretch sin 1.2 0.8 0 1.5
		rgbGen wave square 0.5 0.5 0.25 1.5
	}
}

textures/ctf_cas_v/girder_v_r
{
	qer_editorimage textures/ctf_cas_b/girder_256_r.tga
	surfaceparm metalsteps	
    	surfaceparm trans	
//	surfaceparm alphashadow
//   	surfaceparm nonsolid
	surfaceparm playerclip
	surfaceparm nomarks	
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	cull none
        nopicmip

	{
		map textures/ctf_cas_b/girder_256_r.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
}

textures/ctf_cas_v/girder_v_b
{
	qer_editorimage textures/ctf_cas_b/girder_256_b.tga
	surfaceparm metalsteps	
    	surfaceparm trans	
//	surfaceparm alphashadow
//   	surfaceparm nonsolid
	surfaceparm playerclip
	surfaceparm nomarks	
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	cull none
        nopicmip

	{
		map textures/ctf_cas_b/girder_256_b.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
}

textures/ctf_cas_v/proto_rustygrate_v
{
	qer_editorimage textures/ctf_cas_v/qerv_rustygrate.tga
	surfaceparm metalsteps
	surfaceparm trans	
//	surfaceparm alphashadow
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	cull none
	nopicmip

	{
		map textures/base_floor/proto_rustygrate.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
}



textures/ctf_cas_v/blueflash_a_400
{
	q3map_lightimage textures/ctf_cas_l/proto_lightblue.tga
	qer_editorimage textures/ctf_cas_l/proto_lightblue.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	q3map_surfacelight 400

	{
		map textures/ctf_cas_l/proto_darkblue.tga
		rgbGen vertex
	}
        {
		map textures/ctf_cas_l/proto_lightblue.tga
		blendFunc add
		rgbGen wave square .5 .5 0 1
	}
}

textures/ctf_cas_v/redflash_a_400
{
	q3map_lightimage textures/base_light/proto_lightred.tga
	qer_editorimage textures/base_light/proto_lightred.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	q3map_surfacelight 400

	{
		map textures/ctf_cas_l/proto_darkred.tga
		rgbGen vertex
	}
        {
		map textures/base_light/proto_lightred.tga
		blendFunc add
		rgbGen wave square .5 .5 .5 1
	}
}

textures/ctf_cas_l/darkblue_noflash
{
	q3map_lightimage textures/ctf_cas_l/proto_darkblue.tga
	qer_editorimage textures/ctf_cas_l/proto_darkblue.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	q3map_surfacelight 400

	{
		map textures/ctf_cas_l/proto_lightblue.tga
		rgbGen vertex
	}
}

textures/ctf_cas_l/darkred_noflash
{
	q3map_lightimage textures/ctf_cas_l/proto_darkred.tga
	qer_editorimage textures/ctf_cas_l/proto_darkred.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	q3map_surfacelight 400

	{
		map textures/base_light/proto_lightred.tga
		rgbGen vertex
	}
}

textures/ctf_cas_l/transparency2_x
{
	qer_editorimage textures/ctf_cas_l/transparency2.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	cull none

	{
		map textures/ctf_cas_l/transparency2.tga
		blendfunc GL_ONE GL_ONE
		tcMod scroll .1 .2
	}
}

textures/ctf_cas_l/energy_fx
{
	qer_editorimage textures/ctf_cas_l/energy.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm pointlight
	q3map_novertexshadows
	cull none

	{
		map textures/ctf_cas_l/energy.tga
		blendfunc GL_ONE GL_ONE
		tcMod scroll 1.5 1.3
		rgbGen wave inversesawtooth -.3 1.3 0 1.3
	}
}

textures/ctf_cas_v/caslite_v_5k
{
	qer_editorimage textures/ctf_cas_l/caslite_01.tga
	q3map_lightimage textures/ctf_cas_l/caslite_glow.tga
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm pointlight
	q3map_surfacelight 5000
	q3map_novertexshadows

	{
		map textures/ctf_cas_l/caslite_01.tga
//		rgbGen Vertex
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
	{
		map textures/ctf_cas_l/caslite_glow.tga
		blendfunc add
		rgbGen wave noise 0.99 0.05 0 30
	}
}

textures/ctf_cas_v/x_support_v
{
	qer_editorimage textures/base_support/x_support.tga
	q3map_novertexshadows
	surfaceparm metalsteps
	surfaceparm trans
	surfaceparm alphashadow
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	cull none
	nopicmip

	{
		map textures/base_support/x_support.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/weapfloor_neutral_v
{
	qer_editorimage textures/ctf_unified/qer_weapfloor.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps
	surfaceparm nomarks
	surfaceparm trans
	nopicmip

	{
		clampmap textures/ctf_unified/weapfloor_fx.tga
		rgbGen wave sin 0.9 0.2 0 0.7
		tcMod rotate 180
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthWrite
		alphaFunc GE128
	}
	{
		map textures/ctf_cas_v/weapfloor_1_v.tga
		blendfunc blend
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthFunc equal
	}
}

textures/ctf_cas_v/weapfloor_blue_v
{
	qer_editorimage textures/ctf_unified/qer_weapfloor_blue.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps
	surfaceparm nomarks
	surfaceparm trans
	nopicmip

	{
		clampmap textures/ctf_unified/weapfloor_fx_blue.tga
		rgbGen wave sin 0.9 0.2 0 0.7
		tcMod rotate 180
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthWrite
		alphaFunc GE128
	}
	{
		map textures/ctf_cas_v/weapfloor_1_v.tga
		blendfunc blend
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthFunc equal
	}
}

textures/ctf_cas_v/weapfloor_red_v
{
	qer_editorimage textures/ctf_unified/qer_weapfloor_red.tga
	q3map_novertexshadows
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm metalsteps
	surfaceparm nomarks
	surfaceparm trans
	nopicmip

	{
		clampmap textures/ctf_unified/weapfloor_fx_red.tga
		rgbGen wave sin 0.9 0.2 0 0.7
		tcMod rotate 180
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthWrite
		alphaFunc GE128
	}
	{
		map textures/ctf_cas_v/weapfloor_1_v.tga
		blendfunc blend
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
		depthFunc equal
	}

}

textures/ctf_cas_v/railing03_v
{
	qer_editorimage textures/ctf_cas_dc/rail03.tga
	surfaceparm trans
//	surfaceparm alphashadow
	cull none
	{
		map textures/ctf_cas_dc/rail03.tga
		rgbGen wave sin 0.8 0 0 1
		alphafunc ge128
		depthwrite
	}
}

textures/ctf_cas_l/txt_wind01
{       	
	qer_editorimage textures/ctf_cas_l/txt_wind.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	cull none

	{
		map textures/ctf_cas_l/txt_wind.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
//		depthWrite
	}
//	{
//		map $lightmap
//		blendFunc filter
//	}
}

textures/ctf_cas_l/txt_acme01
{       	
	qer_editorimage textures/ctf_cas_l/txt_acme.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
//	cull none
	nopicmip

	{
		map textures/ctf_cas_l/txt_acme.tga
//		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
//		rgbGen wave sin 0.8 0 0 1
//		depthWrite
	}
//	{
//		map $lightmap
//		blendFunc filter
//	}
}

textures/ctf_cas_l/txt_mckinley01
{       	
	qer_editorimage textures/ctf_cas_l/txt_mckinley.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	cull none

	{
		map textures/ctf_cas_l/txt_mckinley.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
//		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
//	{
//		map $lightmap
//		blendFunc filter
//	}
}

textures/ctf_cas_l/txt_tele01
{       	
	qer_editorimage textures/ctf_cas_l/txt_tele.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	cull none

	{
		map textures/ctf_cas_l/txt_tele.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
//		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
//	{
//		map $lightmap
//		blendFunc filter
//	}
}

textures/ctf_cas_l/txt_tele02
{       	
	qer_editorimage textures/ctf_cas_l/txt_tele2.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	cull none

	{
		map textures/ctf_cas_l/txt_tele2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
//		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
//	{
//		map $lightmap
//		blendFunc filter
//	}
}

textures/ctf_cas_l/txt_tele03
{       	
	qer_editorimage textures/ctf_cas_l/txt_tele3.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	cull none

	{
		map textures/ctf_cas_l/txt_tele3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
//		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
//	{
//		map $lightmap
//		blendFunc filter
//	}
}

textures/ctf_cas_l/txt_tele04
{       	
	qer_editorimage textures/ctf_cas_l/txt_tele4.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	cull none

	{
		map textures/ctf_cas_l/txt_tele4.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
//		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
//	{
//		map $lightmap
//		blendFunc filter
//	}
}

textures/ctf_cas_l/txt_portal01
{       	
	qer_editorimage textures/ctf_cas_l/txt_portal1.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	cull none

	{
		map textures/ctf_cas_l/txt_portal1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
//		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
//	{
//		map $lightmap
//		blendFunc filter
//	}
}


textures/ctf_cas_v/plaque_shiny_blue_v
{
	qer_editorimage textures/ctf_unified/plaque_alpha_blue.tga
	surfaceparm nolightmap
	surfaceparm pointlight

	{
		map textures/ctf_unified/blueenvmap.tga
		tcGen environment
	}
	{
		map textures/ctf_unified/plaque_alpha_blue.tga
		blendFunc GL_ONE_MINUS_DST_COLOR GL_ONE_MINUS_SRC_ALPHA
		rgbGen wave sin 0.7 0 0 1
	}
} 

textures/ctf_cas_v/plaque_shiny_red_v
{
	qer_editorimage textures/ctf_unified/plaque_alpha_red.tga
	surfaceparm nolightmap
	surfaceparm pointlight

	{
		map textures/ctf_unified/redenvmap.tga
		tcGen environment
	}
	{
		map textures/ctf_unified/plaque_alpha_red.tga
		blendFunc GL_ONE_MINUS_DST_COLOR GL_ONE_MINUS_SRC_ALPHA
		rgbGen wave sin 0.7 0 0 1
	}
} 

textures/ctf_cas_v/banner01_blue
{
	qer_editorimage textures/ctf_unified/banner01_blue.tga
	surfaceparm alphashadow
	surfaceparm nonsolid
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none
	tessSize 64
	deformVertexes wave 194 sin 0 3 0 .4
	deformVertexes normal .3 .2

	{
		map textures/ctf_unified/banner01_blue.tga
		rgbGen wave sin 0.8 0 0 1
	}
	{
		map textures/sfx/shadow.tga
		tcGen environment
		blendFunc filter
	}
}

textures/ctf_cas_v/banner01_red
{
	qer_editorimage textures/ctf_unified/banner01_red.tga
	surfaceparm alphashadow
	surfaceparm nonsolid
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull none
	tessSize 64
	deformVertexes wave 194 sin 0 3 0 .4
	deformVertexes normal .3 .2

	{
		map textures/ctf_unified/banner01_red.tga
		rgbGen wave sin 0.8 0 0 1
	}
	{
		map textures/sfx/shadow.tga
		tcGen environment
		blendFunc filter
	}
}

textures/ctf_cas_v/floor_decal_blue_v
{       	
	qer_editorimage textures/ctf_unified/floor_logo_blue.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_unified/floor_logo_blue.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
}

textures/ctf_cas_v/floor_decal_red_v
{       	
	qer_editorimage textures/ctf_unified/floor_logo_red.tga
	qer_trans 0.4
	surfaceparm nolightmap
	surfaceparm pointlight
	surfaceparm nomarks
	surfaceparm trans
	cull none

	{
		map textures/ctf_unified/floor_logo_red.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen wave sin 0.8 0 0 1
		depthWrite
	}
}

textures/ctf_cas_v/ceil_blue
{
	qer_editorimage textures/base_light/ceil1_30.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows

	{
		map textures/base_light/ceil1_30.tga
//		rgbGen vertex
		rgbGen wave sin 0.8 0 0 1
	}
}

textures/ctf_cas_v/grate3_dark_v
{
	qer_editorimage textures/ctf_cas_b/grate3dark.tga
	surfaceparm metalsteps
	surfaceparm trans		
//	surfaceparm nonsolid
	surfaceparm nolightmap
	surfaceparm pointlight
	q3map_novertexshadows
	cull none
        nopicmip

	{
		map textures/ctf_cas_b/grate3dark.tga
		//tcMod scale 2 2
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
//		rgbGen identity
		rgbGen wave sin 0.8 0 0 1
	}
}

// ^^^^^^^^^^^ Vertexlit ^^^^^^^^^^^^
// ##################################
// ########## Experimental ##########
// ##################################



// ^^^^^^^^^ Experimental ^^^^^^^^^^^
// ##################################
// ########## Models ################
// ##################################

// Skeleton from skeletons mapmodel pak
models/mapobjects/skeletons/skeleton

{
    cull disable
    surfaceparm alphashadow
        {
                map models/mapobjects/Skeletons/skeleton.tga
                alphaFunc GE128
		depthWrite
		rgbGen vertex
        }
}