shader of target_smoke


(Zer0Cool) #1

i am looking for the shaders which are used for te target_smoke entity:

this are for black smoke:

smokepuffblack1
{
	cull none
	{
		map gfx/misc/smokepuff_b1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
	}
}

smokepuffblack2
{
	cull none
	{
		map gfx/misc/smokepuff_b2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
	}
}

smokepuffblack3
{
	cull none
	{
		map gfx/misc/smokepuff_b3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
	}
}

smokepuffblack4
{
	cull none
	{
		map gfx/misc/smokepuff_b4.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
	}
}

smokepuffblack5
{
	cull none
	{
		map gfx/misc/smokepuff_b5.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
	}
}

but which are used for white smoke?


(IndyJones) #2

i think it’s just server setting… like in noquarter - server can set (RGB?) color for airstrikes for each team.


(Zer0Cool) #3

if you would take a look at the target-smoke you would see that you can choose
black[] white[]
so what should this have to do with server settings? i am talking about target_smokes and not about airstrike-marker.


(IndyJones) #4

… and who are you talking to? :smiley:


(Pegazus) #5

Nicely done Indy, you deleted your old post and now your making him look like a crazy person… :rolleyes:

Edit: You did it again Indy, your an excellent example of support around here :slight_smile:


(Wezelkrozum) #6

I think this one:


blacksmokeanimb1
{
	cull none
	nofog
	{
		map sprites/explode1/spr000.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb2
{
	cull none
	nofog
	{
		map sprites/explode1/spr001.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb3
{
	cull none
	nofog
	{
		map sprites/explode1/spr002.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb4
{
	cull none
	nofog
	{
		map sprites/explode1/spr003.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb5
{
	cull none
	nofog
	{
		map sprites/explode1/spr004.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb6
{
	cull none
	nofog
	{
		map sprites/explode1/spr005.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb7
{
	cull none
	nofog
	{
		map sprites/explode1/spr006.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb8
{
	cull none
	nofog
	{
		map sprites/explode1/spr007.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb9
{
	cull none
	nofog
	{
		map sprites/explode1/spr008.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb10
{
	cull none
	nofog
	{
		map sprites/explode1/spr009.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb11
{
	cull none
	nofog
	{
		map sprites/explode1/spr010.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb12
{
	cull none
	nofog
	{
		map sprites/explode1/spr011.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb13
{
	cull none
	nofog
	{
		map sprites/explode1/spr012.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb14
{
	cull none
	nofog
	{
		map sprites/explode1/spr013.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb15
{
	cull none
	nofog
	{
		map sprites/explode1/spr014.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb16
{
	cull none
	nofog
	{
		map sprites/explode1/spr015.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb17
{
	cull none
	nofog
	{
		map sprites/explode1/spr016.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb18
{
	cull none
	nofog
	{
		map sprites/explode1/spr017.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb19
{
	cull none
	nofog
	{
		map sprites/explode1/spr018.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb20
{
	cull none
	nofog
	{
		map sprites/explode1/spr019.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb21
{
	cull none
	nofog
	{
		map sprites/explode1/spr020.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb22
{
	cull none
	nofog
	{
		map sprites/explode1/spr021.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb23
{
	cull none
	nofog
	{
		map sprites/explode1/spr022.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimb24
{
	cull none
	nofog
	{
		map sprites/explode1/spr022.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanimc1
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr000.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc2
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr001.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc3
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr002.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc4
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr003.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc5
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr004.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc6
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr005.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc7
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr006.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc8
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr007.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc9
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr008.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc10
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr009.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc11
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr010.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc12
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr011.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc13
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr012.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc14
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr013.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc15
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr014.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc16
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr015.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc17
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr016.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc18
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr017.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc19
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr018.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc20
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr019.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc21
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr020.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc22
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr021.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanimc23
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr022.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.5
	}
}

blacksmokeanim1
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr000.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim2
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr001.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim3
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr002.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim4
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr003.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim5
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr004.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim6
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr005.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim7
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr006.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim8
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr007.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim9
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr008.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim10
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr009.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim11
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr010.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim12
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr011.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim13
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr012.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim14
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr013.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim15
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr014.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim16
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr015.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim17
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr016.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim18
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr017.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim19
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr018.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim20
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr019.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim21
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr020.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim22
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr021.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

blacksmokeanim23
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr022.tga
		blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
		alphaGen const 0.2
	}
}

alphaGen const. filters the black colors. One is grey (alphaGen const 0.5) and one is white (0.2). You could change the texture to check it?


(Zer0Cool) #7

I tried to change the white smoke by remapshadering (as i did for the black already and it worked) your posted shaders but it didnt work so there must be something else. Mayby Pegazus is right and it is done by the gamecode ? :X
My further problem (and one of the reasons why i do remapshader) is that when i use the shader-key of the entity i get a thin smokeline … instead of what i am used to see from custom smoke-entities. fixable?


(Pegazus) #8

I did not suggsest anything, it was indyjones who did, but he deleted his posts for some reason
Sorry but i cant help you :frowning: but i wish i could.


(Zer0Cool) #9

No one an idea? :frowning:


(ailmanki) #10

smokeparticle
{
	cull none
	{
		map sprites/smokepuff.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
	}
}

smokepuff
{
	cull none
	entityMergable
	nofog
	{
		map gfx/misc/smokepuff.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
	}
}

I guess its the second one… - just a guess…


(Zer0Cool) #11

guessed correctly! Thank you very much!