
textures/liquids/X4m_lava
{
	surfaceparm lava
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm trans
	cull disable
	deformVertexes bulge 1 10 1
	deformVertexes wave 100 sin 5 5 1 0.1 
	tessSize 128
	q3map_surfacelight 600
	q3map_globaltexture
	{
		map textures/liquids/protolava2.tga
		rgbGen identity
		tcMod scale 0.2 0.2
		tcMod scroll 0.04 0.03
		tcMod turb 0 0.1 0 0.01
	}
	{
		map textures/liquids/protolava.tga
		blendfunc blend
		tcMod turb 0 0.2 0 0.1
	}
}

textures/liquids/X4m_lava_300
{
	surfaceparm lava
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm trans
	cull disable
	deformVertexes bulge 1 10 1
	deformVertexes wave 100 sin 5 5 1 0.1 
	tessSize 128
	q3map_surfacelight 300
	q3map_globaltexture
	{
		map textures/liquids/protolava2.tga
		rgbGen identity
		tcMod scale 0.2 0.2
		tcMod scroll 0.04 0.03
		tcMod turb 0 0.1 0 0.01
	}
	{
		map textures/liquids/protolava.tga
		blendfunc blend
		tcMod turb 0 0.2 0 0.1
	}
}

textures/sfx/x4m_fog_black
{
qer_editorimage textures/sfx/fog_black.tga
qer_nocarve
surfaceparm	trans
surfaceparm	nonsolid
surfaceparm	fog
surfaceparm	nolightmap
qer_nocarve
fogparms ( 0 0 0 ) 400

}

textures/blue/blueteleporter_1k
{
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm nolightmap
	cull none
	qer_trans 10
	qer_editorimage textures/blue/blueteleporter.tga
	q3map_lightimage textures/blue/blueteleporter.tga
	q3map_surfaceLight 1000
	{
		map textures/blue/blueteleporter.tga
		tcmod stretch sawtooth 1 1 0.5 1
		rgbGen wave inverseSawtooth 0 1 0.5 1
		blendfunc add
	}
	{
		map textures/blue/blueteleporter.tga
		tcmod stretch sawtooth 1 1 1 1
		rgbGen wave inverseSawtooth 0 1 1 1
		blendfunc add
	}
}

textures/x4m/clear_calm1_100
	{
		qer_editorimage textures/liquids/pool3d_3e.tga
		qer_trans .5
		q3map_globaltexture
		q3map_surfaceLight 100
		surfaceparm trans
		surfaceparm nonsolid
		surfaceparm water
	
		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/x4m/13black_mtrune
{
	qer_editorimage textures/13black/metaltech_rune.tga
	q3map_lightimage textures/13black/metaltech_rune_glow.tga
	q3map_surfacelight 500
	surfaceparm nomarks
	{
		map textures/13black/metaltech_rune.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/13black/metaltech_rune_glow.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth 0 1 1 0.5
	}
}


textures/x4m/clear_ripple1_100
	{
		qer_editorimage textures/liquids/pool3d_3.tga
		qer_trans .5
		q3map_globaltexture
		q3map_surfaceLight 100
		surfaceparm trans
		surfaceparm nonsolid
		surfaceparm water

		cull disable
		deformVertexes wave 64 sin .5 .5 0 .5	
	
		
		{ 
			map textures/liquids/pool3d_5.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .5 .5
			tcmod transform 1.5 0 1.5 1 1 2
			tcmod scroll -.05 .001
		}
	
		{ 
			map textures/liquids/pool3d_6.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .5 .5
			tcmod transform 0 1.5 1 1.5 2 1
			tcmod scroll .025 -.001
		}

		{ 
			map textures/liquids/pool3d_3.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .25 .5
			tcmod scroll .001 .025
		}	

		{
			map $lightmap
			blendFunc GL_dst_color GL_zero
			rgbgen identity		
		}

}

textures/x4m/clear_ripple1_50
	{
		qer_editorimage textures/liquids/pool3d_3.tga
		qer_trans .5
		q3map_globaltexture
		q3map_surfaceLight 50
		surfaceparm trans
		surfaceparm nonsolid
		surfaceparm water

		cull disable
		deformVertexes wave 64 sin .5 .5 0 .5	
	
		
		{ 
			map textures/liquids/pool3d_5.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .5 .5
			tcmod transform 1.5 0 1.5 1 1 2
			tcmod scroll -.05 .001
		}
	
		{ 
			map textures/liquids/pool3d_6.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .5 .5
			tcmod transform 0 1.5 1 1.5 2 1
			tcmod scroll .025 -.001
		}

		{ 
			map textures/liquids/pool3d_3.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .25 .5
			tcmod scroll .001 .025
		}	

		{
			map $lightmap
			blendFunc GL_dst_color GL_zero
			rgbgen identity		
		}

}

textures/D3_base_wall/skpanel3b
{
	qer_editorimage textures/D3_base_wall/skpanel3b.tga
	q3map_lightimage textures/D3_base_wall/skpanel3_add.tga
	q3map_surfacelight 200
	surfaceparm nomarks
	{
		map textures/D3_base_wall/skpanel3b.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/D3_base_wall/skpanel3_add.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/D3_base_wall/skpanel3a_dust
{
	qer_editorimage textures/D3_base_wall/skpanel3a_dust.tga
	q3map_lightimage textures/D3_base_wall/skpanel3a_add.tga
	q3map_surfacelight 200
	surfaceparm nomarks
	{
		map textures/D3_base_wall/skpanel3a_dust.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/D3_base_wall/skpanel3a_add.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/D3_base_light/reactorlight1
{
	qer_editorimage textures/D3_base_light/reactorlight1.tga
	q3map_lightimage textures/D3_base_light/reactorlight1_add.tga
	q3map_surfacelight 3500
	surfaceparm nomarks
	{
		map textures/D3_base_light/reactorlight1.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/D3_base_light/reactorlight1_add.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/D3_base_light/stehalllight
{
	qer_editorimage textures/D3_base_light/stehalllight.tga
	q3map_lightimage textures/D3_base_light/stehalllight_add.tga
	q3map_surfacelight 2000
	surfaceparm nomarks
	{
		map textures/D3_base_light/stehalllight.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/D3_base_light/stehalllight_add.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/1_x4m_tech/raindrop
{
        surfaceparm trans	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
        qer_trans .5
        
	cull none
	deformvertexes autosprite2
       
	{
		map textures/1_x4m_tech/raindrop.tga
                tcMod Scroll 0 -0.5
                blendFunc GL_ONE GL_ONE
        }
}

textures/1_x4m_tech/raindrop2
{
        surfaceparm trans	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
        qer_trans .5
        
	cull none
	deformvertexes autosprite2
       
	{
		map textures/1_x4m_tech/raindrop.tga
                tcMod Scroll 0 -0.7
                blendFunc GL_ONE GL_ONE
        }
}

textures/1_x4m_tech/t_window_alpha_01extra_d
{
     cull none
     surfaceparm trans
	surfaceparm nolightmap
	qer_trans .9
		{
                  map textures/tech1soc_mat/mat5c.tga
                  blendfunc GL_ONE GL_ONE
			rgbGen identity
			tcmod scale 1 1
			alphaFunc GE128
                depthWrite
             }
 		{
		map textures/effects/tinfx3.tga
                blendFunc GL_ONE GL_ONE
                tcgen environment
                rgbGen identity
		}
        	{
		map textures/1_x4m_tech/t_window_alpha_01extra_d.tga
                alphaFunc GE128
                depthWrite
		//rgbGen vertex
                //blendfunc blend	
		}
        {
		map $lightmap
		rgbGen identity
		blendFunc filter
	}

}

textures/1_x4m_tech/t_window_alpha_01extra_d_cracked
{
	qer_editorimage textures/1_x4m_tech/t_window_alpha_01extra_d.tga
     cull none
     surfaceparm trans
	surfaceparm nolightmap
	qer_trans .9
		{
                  map textures/tech1soc_mat/mat5c.tga
                  blendfunc GL_ONE GL_ONE
			rgbGen identity
			tcmod scale 1 1
			alphaFunc GE128
                depthWrite
             }		
		{
                  map textures/1q4_glass/fattyglass_broken.tga
                  blendfunc GL_ONE GL_ONE
			rgbGen identity
			tcmod scale 1 1
			alphaFunc GE128
                depthWrite
             }
 		{
		map textures/effects/tinfx3.tga
                blendFunc GL_ONE GL_ONE
                tcgen environment
                rgbGen identity
		}
        	{
		map textures/1_x4m_tech/t_window_alpha_01extra_d.tga
                alphaFunc GE128
                depthWrite
		//rgbGen vertex
                //blendfunc blend	
		}
        {
		map $lightmap
		rgbGen identity
		blendFunc filter
	}

}

textures/1_x4m_tech/t_window_alpha_01extra_d_cracked_2
{
     qer_editorimage textures/1_x4m_tech/t_window_alpha_01extra_d.tga
     cull none
     surfaceparm trans
	surfaceparm nolightmap
	qer_trans .9
		{
                  map textures/1q4_glass/harv_crack.tga
                  blendfunc GL_ONE GL_ONE
			rgbGen identity
			tcmod scale 1 1
			alphaFunc GE128
                depthWrite
             }
 		{
		map textures/effects/tinfx3.tga
                blendFunc GL_ONE GL_ONE
                tcgen environment
                rgbGen identity
		}
        	{
		map textures/1_x4m_tech/t_window_alpha_01extra_d.tga
                alphaFunc GE128
                depthWrite
		//rgbGen vertex
                //blendfunc blend	
		}
        {
		map $lightmap
		rgbGen identity
		blendFunc filter
	}

}

textures/1q4_decals/glass_on_floor
{
	qer_editorimage textures/1q4_decals/glass_on_floor.tga
        surfaceparm trans
	surfaceparm	nolightmap
	cull none
	qer_trans 	0.5
     
        {
		map textures/1q4_decals/glass_on_floor.tga
		blendFunc GL_ONE GL_ONE
		rgbGen identity
	}
        {
		map $lightmap
		rgbGen identity
		blendFunc filter
	}
           
}

textures/skies/tim_hell_2
{
	qer_editorimage textures/skies/killsky_1.tga
	surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nolightmap

	q3map_sun 1 .77 .77 100 315 70
	q3map_surfacelight 200
	skyparms - 512 -


	{
		map textures/skies/killsky_1.tga
		tcMod scroll 0.05 .1
		tcMod scale 2 2
	}
	{
		map textures/skies/killsky_2.tga
		blendfunc GL_ONE GL_ONE
		tcMod scroll 0.05 0.06
		tcMod scale 3 2
	}
}

textures/1_x4m_tech/comp3_text
{
	qer_editorimage textures/base_wall/comp3_qer.tga
	q3map_lightimage textures/base_wall/comp3env.tga
	q3map_surfacelight 1000
	
	{
		map textures/1_x4m_tech/logo512.tga
		rgbGen identity
		tcMod scroll 0 0.2
	}
	{
		map textures/effects/tinfx3.tga
		blendfunc add
		rgbGen wave sin 0.98 0.02 0 5 
		tcGen environment 
	}
	{
		map $lightmap 
		blendfunc gl_dst_color gl_one
		tcGen environment 
	}
	{
		map textures/base_wall/comp3.tga
		blendfunc blend
		rgbGen identity
	}
	{
		map $lightmap 
		blendfunc gl_dst_color gl_one_minus_dst_alpha
		rgbGen identity
		tcGen lightmap 
	}
}

textures/1_x4m_tech/halzap2
{
	cull none
	q3map_lightimage textures/1_x4m_tech/halzap2lm.tga	
	q3map_surfacelight 75
	qer_editorimage textures/1_x4m_tech/halzap2a.tga
	deformvertexes autosprite2
	{
		map $lightmap
		rgbgen identity
		tcgen environment
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}

	{
		map textures/1_x4m_tech/halzap2a.tga
		blendfunc blend
		alphafunc GT0
		depthWrite
		rgbgen identity
		tcmod scale 1 1
		tcMod scroll 0 -10
	}
	{
		map textures/1_x4m_tech/halzap2a.tga
		blendfunc blend
		alphafunc GT0
		depthWrite
		rgbgen identity
		tcmod scale 1 1
		tcMod scroll 0 10
	}

}

textures/common/collision
{
	surfaceparm nodraw
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm playerclip
	qer_trans 	0.1
}

textures/1_x4m_tech/comp3_text2
{
	q3map_lightimage textures/effects/tinfx3.tga
	qer_editorimage textures/base_wall/comp3_qer.tga
        q3map_surfacelight 1000
        {
		map textures/base_trim/logo512.tga
	        rgbGen identity
		tcMod scroll 0 0.2
	}
	      
        {
		map textures/effects/tinfx3.tga
                tcGen environment
                blendFunc GL_ONE GL_ONE
                rgbGen wave sin .98 .02 0 5
	}
	
	{
		map $lightmap
                tcGen environment
                blendFunc GL_DST_COLOR GL_ONE
	}


	{
		map textures/base_wall/comp3.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/skies/tim_hell_3
{
	qer_editorimage textures/skies/killsky_1.tga
	surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nolightmap

	q3map_sun 1 .77 .77 100 315 90
	q3map_surfacelight 150
	skyparms - 512 -


	{
		map textures/skies/killsky_1.tga
		tcMod scroll 0.05 .1
		tcMod scale 2 2
	}
	{
		map textures/skies/killsky_2.tga
		blendfunc GL_ONE GL_ONE
		tcMod scroll 0.05 0.06
		tcMod scale 3 2
	}
}

textures/1_x4m_tech/w_door_off
{
	qer_editorimage textures/1_x4m_tech/w_door.tga
	q3map_lightimage textures/1_x4m_tech/w_door_glw.tga
	q3map_lightimage textures/1_x4m_tech/w_door_onoffr.tga
	q3map_surfacelight 75
	surfaceparm nomarks
	{
		map textures/1_x4m_tech/w_door.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/1_x4m_tech/w_door_glw.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
	{
		map textures/1_x4m_tech/w_door_onoffr.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}

}

textures/1_x4m_tech/w_door_on
{
	qer_editorimage textures/1_x4m_tech/w_door.tga
	q3map_lightimage textures/1_x4m_tech/w_door_glw.tga
	q3map_lightimage textures/1_x4m_tech/w_door_onoffg.tga
	q3map_surfacelight 75
	surfaceparm nomarks
	{
		map textures/1_x4m_tech/w_door.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/1_x4m_tech/w_door_glw.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
	{
		map textures/1_x4m_tech/w_door_onoffg.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}

}

textures/skies/tim_hell_4
{
	q3map_lightimage textures/skies/stars_red.tga
	qer_editorimage textures/skies/killsky_1.tga
	surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nolightmap

	q3map_sun 250 125 125 80 315 70
	q3map_surfacelight 350
	skyparms - 384 -
	{
		map textures/skies/killsky_1.tga
		tcMod scroll 0.05 .1
		tcMod scale 2 2
		depthWrite
	}
	{
		map textures/skies/killsky_2.tga
		blendfunc GL_ONE GL_ONE
		tcMod scroll 0.05 0.06
		tcMod scale 3 2
	}
}

