textures/cptnt_newrace/slight_blue
{
	qer_editorimage textures/cptnt_newrace/slight_blue.tga
	q3map_lightimage textures/cptnt_newrace/slight_blue_blend.tga
	q3map_surfacelight 500
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/cptnt_newrace/slight_blue.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/cptnt_newrace/slight_blue_blend.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/cptnt_newrace/slight_red
{
	qer_editorimage textures/cptnt_newrace/slight_red.tga
	q3map_lightimage textures/cptnt_newrace/slight_red_blend.tga
	q3map_surfacelight 500
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/cptnt_newrace/slight_red.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/cptnt_newrace/slight_red_blend.tga
		blendFunc GL_ONE GL_ONE
	}
}



//==========| Moth Sprite - yoinked from sfx/wilsflame |=====================

textures/cptnt_newrace/moth_sprite
{
	qer_editorimage textures/cptnt_newrace/moth_01.tga
	cull none
	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	nopicmip
     	surfaceparm nolightmap 
      deformVertexes autosprite
	{
		animMap 10 textures/cptnt_newrace/moth_01.tga textures/cptnt_newrace/moth_02.tga textures/cptnt_newrace/moth_03.tga textures/cptnt_newrace/moth_04.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10
	}
	{
		animMap 10 textures/cptnt_newrace/moth_02.tga textures/cptnt_newrace/moth_03.tga textures/cptnt_newrace/moth_04.tga textures/cptnt_newrace/moth_01.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sawtooth 0 1 0 10
	}

}


textures/cptnt_newrace/fff
{
      qer_editorimage textures/cptnt_newrace/fff.tga
	qer_trans 0.60
	surfaceparm trans 
	surfaceparm nonsolid 
	surfaceparm pointlight
	surfaceparm nomarks
	polygonOffset

	{
		map textures/cptnt_newrace/fff.tga
		alphaFunc GE128
		rgbGen vertex
	}
}

textures/cptnt_newrace/glow_blue
{ 
	qer_editorimage textures/cptnt_newrace/glow_blue.tga
	qer_trans 0.85
      surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull disable
	nopicmip		
      surfaceparm nolightmap 
      deformVertexes autosprite
	{
		clampmap textures/cptnt_newrace/glow_blue.tga
            blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
            rgbGen identity
		tcMod rotate 16
	}
}

textures/cptnt_newrace/glow_red
{ 
	qer_editorimage textures/cptnt_newrace/glow_red.tga
	qer_trans 0.85
      surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull disable
	nopicmip		
      surfaceparm nolightmap 
      deformVertexes autosprite
	{
		clampmap textures/cptnt_newrace/glow_red.tga
            blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
            rgbGen identity
		tcMod rotate 16
	}
}

textures/cptnt_newrace/glow_green
{ 
	qer_editorimage textures/cptnt_newrace/glow_green.tga
	qer_trans 0.85
      surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull disable
	nopicmip		
      surfaceparm nolightmap 
      deformVertexes autosprite
	{
		clampmap textures/cptnt_newrace/glow_green.tga
            blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
            rgbGen identity
		tcMod rotate 16
	}
}

textures/cptnt_newrace/glow_purple
{ 
	qer_editorimage textures/cptnt_newrace/glow_purple.tga
	qer_trans 0.85
      surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull disable
	nopicmip		
      surfaceparm nolightmap 
      deformVertexes autosprite
	{
		clampmap textures/cptnt_newrace/glow_purple.tga
            blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
            rgbGen identity
		tcMod rotate 16
	}
}


textures/cptnt_newrace/bas_snow
{
    q3map_nonplanar
    q3map_shadeangle 180
    qer_editorimage textures/stone/mxsnow3.tga
    surfaceparm snowsteps
    surfaceparm landmine
    {
        map $lightmap
        rgbGen identity
    }
    {
        map textures/stone/mxsnow3.tga
        blendFunc filter
    }
}

textures/cptnt_newrace/bas_cliff
{
    q3map_nonplanar
    q3map_shadeangle 180
    qer_editorimage textures/stone/mxrock3h_snow.tga
    {
        map $lightmap
        rgbGen identity
    }
    {
        map textures/stone/mxrock3h_snow.tga
        blendFunc filter
    }
}

textures/cptnt_newrace/mine_stone
{
    q3map_nonplanar
    q3map_shadeangle 180
    qer_editorimage textures/cptnt_newrace/mine_stone.jpg
    {
        map $lightmap
        rgbGen identity
    }
    {
        map textures/cptnt_newrace/mine_stone.jpg
        blendFunc filter
    }
}

textures/cptnt_newrace/winterbranch01
{
	qer_alphafunc gequal 0.5
	cull twosided
	surfaceparm alphashadow
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	implicitMask -
}

textures/cptnt_newrace/wintertrunk01
{
	qer_alphafunc gequal 0.5
	surfaceparm alphashadow
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	implicitMask -
}

textures/cptnt_newrace/fog
{
	qer_editorimage textures/sfx/fog_grey1.tga
	
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm fog
	
	fogparms ( 1 1 1 ) 3000
}

textures/cptnt_newrace/fog2
{
	qer_editorimage textures/sfx/fog_grey1.tga
	
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm fog
	
	fogparms ( 1 1 1 ) 5000
}

textures/cptnt_newrace/icicle
{		
	qer_editorimage textures/snow/alpha_ice2s.tga
	surfaceparm alphashadow
	surfaceparm nomarks
	surfaceparm noimpact
	cull none
	{
		map textures/snow/alpha_ice2s.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
	}
}

textures/cptnt_newrace/newrace_skybox
{
	qer_editorimage textures/cptnt_newrace/env/sky_bk.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_globaltexture
	q3map_skylight 65 3
	q3map_sun 0.3 0.3 0.45 60 35 45
	q3map_lightsubdivide 256
	q3map_surfacelight 50
	surfaceparm sky
	nopicmip
	skyparms cptnt_newrace/env/sky - -
}

textures/cptnt_newrace/treeline
{
	qer_editorimage textures/cptnt_newrace/treeline.jpg
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm	nomarks
	nopicmip
	{
		map textures/cptnt_newrace/treeline.jpg
		rgbgen identity
	}
}

textures/cptnt_newrace/sentry_bullets
{
	qer_editorimage textures/cptnt_newrace/sentry_bullets.jpg
	cull disable
	surfaceparm nomarks
	surfaceparm metalsteps
	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity
	}

	{
		map textures/cptnt_newrace/sentry_bullets.jpg
		rgbgen identity
		tcmod scroll .00 -2.5
	}
}

textures/cptnt_newrace/snowyrock
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap textures/snow_sd/bigrock_rounded_faint.tga
}

textures/cptnt_newrace/sentry_ammobox
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/sentry_barrel
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/sentry_side
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/sentry_side2
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/sentry_rocketbarrel
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/redbarrel
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/redbarrel_top
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/coal_door
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/coal_window
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/coal_window2
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/vent_01
{
	surfaceparm metalsteps
	implicitMap -
}

textures/cptnt_newrace/net
{
	qer_editorimage textures/cptnt_newrace/net.tga
	surfaceparm alphashadow
	surfaceparm metalsteps
	nomipmaps
	nopicmip
	cull disable
	{
		map textures/cptnt_newrace/net.tga
		alphaFunc GE128
		depthWrite
		rgbGen vertex
    }
}

textures/cptnt_newrace/hazy_water
{
	qer_editorimage textures/cptnt_newrace/kc_fogcloud3.tga
	qer_trans 0.5
	surfaceparm	trans
	surfaceparm	nonsolid
	surfaceparm	water
	q3map_globaltexture
	q3map_surfacelight 1

	{
		map textures/cptnt_newrace/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.08
		tcmod scroll .01 -.06
		rgbgen identity
	}

	{
		map textures/cptnt_newrace/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .02 .05
		tcmod scroll .01 -.06
		rgbgen identity
	}
}

textures/cptnt_newrace/underground_pool
{
	qer_editorimage textures/cptnt_newrace/pool3d_3.tga
	qer_trans .5
	q3map_globaltexture
	cull disable
	deformVertexes wave 64 sin .5 .5 0 .5
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm water
	{
		map textures/cptnt_newrace/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/cptnt_newrace/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/cptnt_newrace/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/cptnt_newrace/underground_pools
{
	qer_editorimage textures/cptnt_newrace/pool3d_3.tga
	qer_trans .5
	cull disable
	deformVertexes wave 64 sin .5 .5 0 .5
	surfaceparm nonsolid
	surfaceparm water
	{
		map textures/cptnt_newrace/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 -.15 .001
		fog on
	}
	{
		map textures/cptnt_newrace/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
		fog on
	}
	{
		map textures/cptnt_newrace/pool3d_3.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .25 .5
		tcmod scroll .001 .03
		fog on
	}
	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity
		fog on
	}
}

textures/cptnt_newrace/water_flow
{
	qer_editorimage textures/cptnt_newrace/pool3d_3.tga
	qer_trans .5
	cull disable
	deformVertexes wave 64 sin .5 .5 0 .5
	surfaceparm nonsolid
	surfaceparm water
	{
		map textures/cptnt_newrace/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 -.15 .04
		fog on
	}
	{
		map textures/cptnt_newrace/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
		fog on
	}
	{
		map textures/cptnt_newrace/pool3d_3.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .25 .5
		tcmod scroll -.02 .2
		fog on
	}
	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity
		fog on
	}
}

textures/cptnt_newrace/darkwater_new
{
	qer_editorimage textures/cptnt_newrace/darkwater_01.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm water
	cull disable
	nopicmip
	deformVertexes wave 128 sin 0.5 2 5 1 
	deformVertexes wave 30 sin 0 2 0 0.1 
	//deformVertexes wave 64 sin 0.25 0.25 0 0.5 
	qer_trans 0.5
	q3map_globaltexture
	{
		map textures/cptnt_newrace/wdfx4.tga
		blendfunc blend
		rgbGen identity
		tcMod scale 0.5 0.5
		tcMod scroll 0.025 0.01
		tcGen environment 
	}
	{
		map textures/cptnt_newrace/darkwater_01.tga
		blendfunc blend
		rgbGen identity
		tcMod scale 0.5 0.5
		tcMod scroll 0.025 0.01
	}
	{
		map textures/cptnt_newrace/darkwater_02.tga
		blendfunc blend
		rgbGen identity
		tcMod scale -1 -1
		tcMod scroll 0.025 0.025
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
	}
}

textures/cptnt_newrace/toxic_water
{
	qer_editorimage textures/cptnt_newrace/toxic_01.tga
	qer_trans 0.8
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm water
	cull disable
	nopicmip
	deformVertexes wave 128 sin 0.5 2 5 1 
	deformVertexes wave 30 sin 0 2 0 0.1 
	q3map_globaltexture
	{
		map textures/cptnt_newrace/toxic_reflect.jpg
		blendfunc blend
		rgbGen identity
		tcMod scale 0.5 0.5
		tcMod scroll 0.025 0.01
		tcGen environment 
	}
	{
		map textures/cptnt_newrace/toxic_01.tga
		blendfunc blend
		rgbGen identity
		tcMod scale 0.35 0.5
		tcMod scroll 0.025 0.01
	}
	{
		map textures/cptnt_newrace/toxic_02.tga
		blendfunc blend
		rgbGen identity
		tcMod scale -.85 -1
		tcMod scroll 0.035 0.02
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
	}
}