
textures/cpm24/redstatic
{
	nopicmip
	surfaceparm nolightmap
	surfaceparm nomarks
	qer_editorimage textures/cpm24/redstatic.tga
	{
		map textures/cpm24/redstatic.tga
		tcMod scale 1.5 1.5
		tcMod rotate 25
        }
	{
		map textures/cpm24/redstatic.tga

               // tcMod Scroll -0.4 0.2
		tcMod scale 1.5 1.5
                tcMod Scroll -0.2 -0.4
                blendFunc add
        }
}

textures/cpm24/redline
{
	nopicmip
	surfaceparm nolightmap
	surfaceparm nomarks
	qer_editorimage textures/cpm24/redline.tga
	{
		map textures/cpm24/redstatic.tga
		tcMod scale 1.5 1.5
		tcMod rotate 25
        }
	{
		map textures/cpm24/redstatic.tga
		tcMod scale 1.5 1.5
                tcMod Scroll -0.2 -0.4
                blendFunc add
        }
	{
		map textures/cpm24/redline.tga
		tcMod scale 0.5 0.5
                tcMod Scroll 3.0 -0.3
                blendFunc add
        }
}

textures/cpm24/telebeam
{
        surfaceparm trans	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
	qer_editorimage textures/cpm24/telebeam.tga
	cull none
	
	{
		map textures/cpm24/telebeam.tga
                tcMod Scroll .1 0
                blendFunc add
        }
     
}

textures/cpm24/teleblack
{	
	surfaceparm nolightmap
	//surfaceparm noimpact
	surfaceparm nomarks
	qer_editorimage textures/cpm24/blackness.tga
	{
		map textures/cpm24/blackness.tga
	}
}

textures/cpm24/litpan1_7k
   {
   surfaceparm nomarks
   q3map_surfacelight 7000
   light 1
   qer_editorimage textures/cpm24/litpan1.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/litpan1.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/litpan1fx.tga
      blendfunc GL_ONE GL_ONE
      }
   }

textures/cpm24/litpan1_7k_strobe
   {
   surfaceparm nomarks
   q3map_surfacelight 400
   light 1
   qer_editorimage textures/cpm24/litpan1.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/litpan1.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/litpan1fx.tga
      blendfunc GL_ONE GL_ONE
      rgbGen wave noise .3 1.6 180 4.5
      }
   }


textures/cpm24/litpan1_10k
   {
   surfaceparm nomarks
   q3map_surfacelight 10000
   light 1
   qer_editorimage textures/cpm24/litpan1.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/litpan1.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/litpan1fx.tga
      blendfunc GL_ONE GL_ONE
      }
   }

textures/cpm24/litpan2_7k
   {
   surfaceparm nomarks
   q3map_surfacelight 7000
   light 1
   qer_editorimage textures/cpm24/litpan2.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/litpan2.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/litpan2fx.tga
      blendfunc GL_ONE GL_ONE
      }
   }


textures/cpm24/litpan2_10k
   {
   surfaceparm nomarks
   q3map_surfacelight 10000
   light 1
   qer_editorimage textures/cpm24/litpan2.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/litpan2.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/litpan2fx.tga
      blendfunc GL_ONE GL_ONE
      }
   }

textures/cpm24/litpan2_10k_strobe
   {
   surfaceparm nomarks
   q3map_surfacelight 10000
   light 1
   qer_editorimage textures/cpm24/litpan2.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/litpan2.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/litpan2fx.tga
      blendfunc GL_ONE GL_ONE
      rgbGen wave noise .3 1.6 180 4.5
      }
   }


textures/cpm24/litpan3_7k
   {
   surfaceparm nomarks
   q3map_surfacelight 7000
   light 1
   qer_editorimage textures/cpm24/litpan3.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/litpan3.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/litpan3fx.tga
      blendfunc GL_ONE GL_ONE
      }
   }


textures/cpm24/litpan3_10k
   {
   surfaceparm nomarks
   q3map_surfacelight 10000
   light 1
   qer_editorimage textures/cpm24/litpan3.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/litpan3.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/litpan3fx.tga
      blendfunc GL_ONE GL_ONE
      }
   }

//************************************************************//
// Square orange light with 10000 light value                 //
//************************************************************//
textures/cpm24/ceil_orange_10000
   {
   surfaceparm nomarks
   q3map_surfacelight 10000
   light 1
   qer_editorimage textures/cpm24/ceil_orange.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/ceil_orange.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/ceil_orangeglow.tga
      blendfunc GL_ONE GL_ONE
      }
   }


//************************************************************//
// Square red light with 5000 light value                    //
//************************************************************//
textures/cpm24/ceil_red_5000
   {
   surfaceparm nomarks
   q3map_surfacelight 5000
   light 1
   qer_editorimage textures/cpm24/ceil_red.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/ceil_red.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/ceil_redglow.tga
      blendfunc GL_ONE GL_ONE
      }
   }


//************************************************************//
// Flourescent white strip light with 5000 light value        //
//************************************************************//
textures/cpm24/baselt1_5000
   {
   surfaceparm nomarks
   q3map_surfacelight 5000
   q3map_lightsubdivide 32
   light 1
   qer_editorimage textures/cpm24/baselt1.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/baselt1.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/baselt1glow.tga
      blendfunc GL_ONE GL_ONE
      }
   }


//************************************************************//
// Flourescent white strip light with 2000 light value        //
//************************************************************//
textures/cpm24/baselt1_2000
   {
   surfaceparm nomarks
   q3map_surfacelight 2000
   q3map_lightsubdivide 32
   light 1
   qer_editorimage textures/cpm24/baselt1.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/baselt1.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/baselt1glow.tga
      blendfunc GL_ONE GL_ONE
      }
   }


//************************************************************//
// Flourescent orange strip light with 5000 light value       //
//************************************************************//
textures/cpm24/wastelt1_5000
   {
   surfaceparm nomarks
   q3map_surfacelight 5000
   q3map_lightsubdivide 32
   light 1
   qer_editorimage textures/cpm24/wastelt1.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/wastelt1.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/wastelt1glow.tga
      blendfunc GL_ONE GL_ONE
      }
   }


//************************************************************//
// Flourescent orange strip light with 2000 light value       //
//************************************************************//
textures/cpm24/wastelt1_2000
   {
   surfaceparm nomarks
   q3map_surfacelight 2000
   light 1
   qer_editorimage textures/cpm24/wastelt1.tga
      {
      map $lightmap
      rgbGen identity
      }
      {
      map textures/cpm24/wastelt1.tga
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
      }
      {
      map textures/cpm24/wastelt1glow.tga
      blendfunc GL_ONE GL_ONE
      }
   }


//************************************************************//
// Strogg emblem that hasn't been rusted and chipped off      //
//************************************************************//
textures/cpm24/metal4_1shiny
   {
      {
      map textures/effects/envmapgold.tga
      tcGen environment
      }
      {
      map textures/cpm24/metal4_1shiny.tga
      blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
      }
      {
      map $lightmap
      blendFunc GL_DST_COLOR GL_ZERO
      }
   }


//************************************************************//
// Greenish semi-transparent sludge                           //
//************************************************************//
textures/cpm24/goo1
   {
   qer_editorimage textures/cpm24/goo2.tga
   qer_trans 0.2
   surfaceparm water
   surfaceparm trans
   surfaceparm noimpact
   surfaceparm nomarks
   tesssize 64
   deformVertexes wave 100 sin 2 2 0 .125
      {
      map textures/cpm24/goo1.tga
      blendFunc GL_DST_COLOR GL_ZERO
      tcMod rotate 1
      tcMod scroll -0.025 -0.045
      }
      {
      map textures/cpm24/goo2.tga
      blendFunc GL_ONE GL_ONE
      tcMod scale 1 -1
      tcMod scroll 0.045 0.025
      }
      {
      map $lightmap
      blendFunc GL_DST_COLOR GL_ZERO
      }
   }


//************************************************************//
// Yellow flourescent strip light beam texture                //
//************************************************************//
textures/cpm24/orangebeam
   {
   surfaceparm trans	
   surfaceparm nomarks	
   surfaceparm nonsolid
   surfaceparm nolightmap
   cull none
      {
      map textures/cpm24/orangebeam.tga
      tcMod Scroll .3 0
      blendFunc add
      }
   }


//************************************************************//
// Bounce pad on dark diamond floor                           //
//************************************************************//
textures/cpm24/bounce_floor1
   {
   surfaceparm nodamage
   q3map_lightimage textures/sfx/jumppadsmall.tga	
   q3map_surfacelight 400
      {
      map textures/cpm24/bounce_floor1.tga
      rgbGen identity
      }
      {
      map $lightmap
      rgbGen identity
      blendfunc filter
      }
      {
      map textures/sfx/bouncepad01b_layer1.tga
      blendfunc add
      rgbGen wave sin .5 .5 0 1.5
      }
      {
      clampmap textures/sfx/jumppadsmall.tga
      blendfunc add
      tcMod stretch sin 1.2 .8 0 1.5
      rgbGen wave square .5 .5 .25 1.5
      }
   }


//************************************************************//
// Shrub texture shader copied from lundesert.shader          //
// http://lunaran.fragland.net                                //
//************************************************************//
textures/cpm24/lun_scrub1
   {
   qer_editorimage textures/cpm24/lun_scrub1.tga
   cull disable
   surfaceparm trans
   surfaceparm nomarks
   surfaceparm alphashadow
      {
      map textures/cpm24/lun_scrub1.tga
      alphaFunc GE128
      depthWrite
      rgbGen identity
      }
      {
      map $lightmap
      depthFunc equal
      blendFunc GL_DST_COLOR GL_ZERO
      rgbgen identity
      }
   }


//************************************************************//
// Sky teexture shader copied from ik_sky.shader              //
// http://www.planetquake.com/ikq                             //
//************************************************************//
textures/cpm24/ik_sky_night
   {
   surfaceparm noimpact
   surfaceparm nolightmap
   surfaceparm sky
   qer_editorimage textures/cpm24/ik_sky_night_back.tga
   q3map_lightimage textures/cpm24/ik_sky_night_back.tga
   q3map_surfacelight 200
   skyparms - 512 -
      {
      map textures/cpm24/ik_sky_night_back.tga
      tcMod scale 2 2
      tcMod scroll 0.01 0.01
      depthWrite
      }
      {
      map textures/cpm24/ik_sky_night_front.tga
      blendFunc GL_ONE GL_ONE
      tcMod scale 3 3
      tcMod scroll 0.02 0.02
      }
   }

//======================================//
//-------------SKY TEXTURES-------------//
//======================================//

textures/cpm24/toxicskydim
{
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_surfacelight 100
	q3map_sun	1 1 0.5 60 30 70

	q3map_lightimage textures/skies/toxicsky.tga
	qer_editorimage textures/skies/inteldimredclouds.tga
	skyparms - 512 -
	{
		map textures/skies/inteldimclouds.tga
		tcMod scroll 0.05 0.05
		tcMod scale 3 2
		depthWrite
	}
	{
		map textures/skies/intelredclouds.tga
		blendFunc GL_ONE GL_ONE
		tcMod scroll 0.025 0.025
		tcMod scale 3 3
	}
}

//======================================//
//----------TELEPORT TEXTURES-----------//
//======================================//

textures/cpm24/lun_stars
	{
		qer_editorimage textures/cpm24/lun_stars.jpg
		q3map_lightimage textures/cpm24/lun_stars.jpg
		q3map_globaltexture
		qer_trans .5

		surfaceparm trans
		surfaceparm nonsolid
		surfaceparm water
		surfaceparm nolightmap
		q3map_surfacelight 450

		cull disable
		tesssize 64
		deformVertexes wave 100 sin 1 4 1 .25
		{
			map textures/cpm24/lun_stars.jpg
			tcMod scroll -.1 .125
			tcMod rotate 16
		}
                {
			map textures/sfx/bolts.tga
			blendfunc GL_ONE GL_ONE
			tcMod scale .25 .25
			tcMod scroll .1 .1
                        tcmod rotate 290

		}
	}

//======================================//
//-----------NORMAL TEXTURES------------//
//======================================//

textures/cpm24/floorbrok02b
{
	qer_editorimage textures/cpm24/floorbrok02
	surfaceparm metalsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/cpm24/floorbrok02.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/cpm24/floorbrok02_glow2.jpg
		rgbGen wave sin 0.5 0.5 1 0.8
		blendfunc GL_ONE GL_ONE
	}
}

textures/cpm24/trim20
{
	qer_editorimage textures/cpm24/trim20.tga
	{
		map textures/effects/tinfx2.tga
		tcGen environment
	}
	{
		map textures/cpm24/trim20.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/cpm24/trim21
{
	qer_editorimage textures/cpm24/trim21.tga
	{
		map textures/effects/tinfx2.tga
		tcGen environment
	}
	{
		map textures/cpm24/trim21.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

//======================================//
//-----------MASKED TEXTURES------------//
//======================================//

textures/cpm24/msksupport02
{
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm metalsteps
	surfaceparm alphashadow
	cull none
	nopicmip
	{
		map textures/cpm24/msksupport02.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/cpm24/mskfloor01
{
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm metalsteps
	surfaceparm alphashadow
	cull none
	nopicmip
	{
		map textures/cpm24/mskfloor01.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

//======================================//
//----------------LIGHTS----------------//
//======================================//

//PLAIN LIGHTS

textures/cpm24/trlight03_500
{
	qer_editorimage textures/cpm24/trlight03.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_lightsubdivide 64
	q3map_surfacelight 500
	q3map_lightimage textures/cpm24/trlight03.tga
	{
		map textures/cpm24/trlight03.tga
		rgbGen identity
	}
//	{
//		map $lightmap
//		blendFunc GL_DST_COLOR GL_ZERO
//	}
//	{
//		map textures/cpm24/trlight03_glow.tga
//		blendfunc GL_ONE GL_ONE
//	}
}

textures/cpm24/trlight03_1k
{
	qer_editorimage textures/cpm24/trlight03.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_lightsubdivide 64
	q3map_surfacelight 1000
	q3map_lightimage textures/cpm24/trlight03.tga
	{
		map textures/cpm24/trlight03.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/cpm24/trlight03_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/cpm24/trlight04_1k
{
	qer_editorimage textures/cpm24/trlight04.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_surfacelight 1000
	q3map_lightsubdivide 32
	q3map_lightimage textures/cpm24/trlight04.tga
	{
		map textures/cpm24/trlight04.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/cpm24/trlight04_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/cpm24/trlight05_1k
{
	qer_editorimage textures/cpm24/trlight05.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_lightsubdivide 32
	q3map_surfacelight 1000
	q3map_lightimage textures/cpm24/trlight05_glow.tga
	{
		map textures/cpm24/trlight05.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/cpm24/trlight05_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/cpm24/trlight08_1k
{
	qer_editorimage textures/cpm24/trlight08.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_surfacelight 1000
	q3map_lightimage textures/cpm24/trlight08.tga
	{
		map textures/cpm24/trlight08.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/cpm24/trlight08_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}


//=======

textures/cpm24/light01_500
{
	qer_editorimage textures/cpm24/light01.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_surfacelight 500
	q3map_lightimage textures/cpm24/light01.tga
	{
		map textures/cpm24/light01.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/cpm24/light01_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/cpm24/light01_1k
{
	qer_editorimage textures/cpm24/light01.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_surfacelight 1000
	q3map_lightimage textures/cpm24/light01.tga
	{
		map textures/cpm24/light01.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/cpm24/light01_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/cpm24/light02_2k
{
	qer_editorimage textures/cpm24/light02.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_surfacelight 2000
	q3map_lightimage textures/cpm24/light02.tga
	{
		map textures/cpm24/light02.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/cpm24/light02_glow.tga
		blendfunc GL_ONE GL_ONE
	}
}

//GLOWING LIGHTS

textures/cpm24/trlight05glow_500
{
	qer_editorimage textures/cpm24/trlight05.tga
	surfaceparm nomarks
	surfaceparm nodlight
	q3map_surfacelight 500
	q3map_lightimage textures/cpm24/trlight05_glow.tga
	{
		map textures/cpm24/trlight05.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/cpm24/trlight05_glow.tga
		rgbGen wave sin 0.5 0.5 1 0.5
		blendfunc GL_ONE GL_ONE
	}
}

//======================================//
//-------------FLOOR SOUNDS-------------//
//======================================//

textures/cpm24/floor04
{	
	surfaceparm metalsteps
	{
		map $lightmap
		rgbGen identity
	}
	{	
		map textures/cpm24/floor04.tga
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/cpm24/floor05
{	
	surfaceparm metalsteps
	{
		map $lightmap
		rgbGen identity
	}
	{	
		map textures/cpm24/floor05.tga
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

